Hacker News new | ask | show | jobs
by tmaly 1068 days ago
I can see C having 1.00 in table 4 in the article.

But how does Python get 71.90 and JavaScript 4.45 ?

Something seems off there.

2 comments

JS has a JIT compiler, so for long running programs it can very well execute native machine code in the exact same way as C (plus a GC occasionally meddling with things). Also, it’s not even a bad JIT compiler, huge amount of development went into making it good.

Standard Python is interpreted all the time, going from instruction to instruction giving a layer of abstraction that never disappears.

I agree a JIT works well for long running programs, but is that the situation we have here with these tests?
71.90 arithmetic average more than the 10 selected C programs.

6.52 arithmetic average more than the 10 selected C programs.

Seems off because?