JS Performance Debate

The cluster centers on debates about JavaScript's performance compared to native or compiled languages like C++, Rust, and Go, including discussions on JIT compilation, memory usage, and suitability for high-performance tasks.

📉 Falling 0.4x Programming Languages
3,925
Comments
20
Years Active
5
Top Authors
#8920
Topic ID

Activity Over Time

2007
6
2008
32
2009
46
2010
101
2011
156
2012
200
2013
326
2014
213
2015
185
2016
228
2017
275
2018
236
2019
187
2020
325
2021
292
2022
327
2023
273
2024
263
2025
234
2026
20

Keywords

e.g PHP CPU JIT JS CLI DO V8 ASM BEAM js javascript performance language fast slower faster jit languages speed

Sample Comments

bestouff Nov 24, 2021 View on HN

In my experience JS is not as fast as compiled languages.

WhereIsTheTruth Dec 15, 2023 View on HN

I would be surprised and worried if a native tool would be slower than a javascript one, even with JIT, wich is useless for short lived programs

npigrounet Sep 30, 2021 View on HN

Nowadays JS is as fast as C++, if not faster.

PudgePacket Jan 19, 2018 View on HN

Maybe a naive question but did you consider writing it in language that is typically faster (C++/Go/Rust)? I understand the many benefits of it being written in JS but there is an inherent maximum level of performance that JS can achieve in certain workloads.

phpnode Aug 28, 2014 View on HN

it would probably still be fast enough, the difference between JS perf and native perf is surprisingly slim.

TazeTSchnitzel Jan 26, 2017 View on HN

JS is still slower than native code, and has worse memory consumption.

mschuetz May 10, 2020 View on HN

You'll never get faster code out of JS, though. Language design matters a lot.

bullen Oct 1, 2021 View on HN

Javascript is not usable, you wont be able to make anything useful if that is your underlying VM.You need fast turnaround AND performance at the same time.You are sinking your cost into a dead-end proving the articles point.

vbit Mar 18, 2016 View on HN

Javascript runtimes these days are plenty fast. You can definitely have a snappy editor and in only rare cases might need C. The issue is probably reducing the browser overhead, i.e. rendering DOM updates and the memory weight of the entire browser stack, etc.

bluGill Jan 14, 2026 View on HN

Is Javascript significantly slower? It is extremely common in the real world and so a lot of effort has gone into optimizing it - v8 is very good. Yes C and Rust enable more optimizations: they will be slightly faster, but javascript has had a lot of effort put into making it run fast.