DEV Community

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

Posted on

2

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.

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →