Hacker News new | ask | show | jobs
by danfo 1962 days 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.
1 comments

Tried 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