DEV Community

Cover image for JavaScript vs C++ vs WebAssembly: Speed, Speed, Speed
I am a Programmer
I am a Programmer

Posted on

JavaScript vs C++ vs WebAssembly: Speed, Speed, Speed

In Node.js, we can use WebAssembly modules and native C++ addons. If your app has performance critical parts, should you stay in JavaScript? Or write a native C++ addon? Or use WebAssembly? Let’s have a look at how these options compare performance wise and which one is best for different workloads. So the next time you need to optimize for speed, you know your options.

What’s happening under the hood at the compiler level in JavaScript? In this keynote session, Franziska Hinkelmann talks about JavaScript compilers specifically and see how modern JS performance compares to C++ performance. Then, see where WebAssembly fits into this performance story. The concepts that Franziska Hinkelmann will show you are fundamental JS concepts and they apply no matter what framework you are using – so doesn’t matter if you are using Angular, Node.js or anything else.

Moreover, as we go through this journey, the questions like how can dynamically typed JS be so fast, when it became faster than before will be answered as well.

Franziska Hinkelmann spoke at CovalenceConf 2019 about how JavaScript stacks up against C++ and WebAssembly, what kind of code is actually fast, and the performance considerations one should account for when building apps with web technologies.

Top comments (0)