3 ms·
Let me help you detox that: > An interpreter with a JIT is faster than one without. Especially when dealing with CPU bound work. Would be interesting to compar
by danfo 6y ago
Let me help you detox that:
> An interpreter with a JIT is faster than one without. Especially when dealing with CPU bound work. Would be interesting to compare to pypy.
Sure, here is pypy:
> pypy3 main.py
282 ms
> node main.js
105 ms
Without JIT:
> python3 main.py
2818 ms
> node --jitless main.js
998 ms
For fun:
> cargo run --release -q
20 ms
I enjoy brrrrrm's post for its brevity and the acknowledgement of common folk tools.
- trog 6y agoTried it in PHP v8 (on Windows): .\php fib.php 1402.1289348602 ms and with PHP8's new JIT opcache on: .\php -dopcache.enable_cli=1 -dopcache.jit_buffer_size=200M fib.php 219.55609321594 ms