3 ms·
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.
by tmaly 3y 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.
- igouy 3y ago71.90 arithmetic average more than the 10 selected C programs. 6.52 arithmetic average more than the 10 selected C programs. Seems off because?
- kaba0 3y agoJS 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.
- tmaly 3y agoI agree a JIT works well for long running programs, but is that the situation we have here with these tests?