Re:Node.js 14 is over 20x faster than Python3.8 for fib(n)
by meetups323 on Tuesday February 09, 2021 @01:27PM
(#26080904)
Numba (asked by a commenter that haas since deleted:
638.8082504272461 ms
Re:Node.js 14 is over 20x faster than Python3.8 for fib(n)
by PartiallyTyped on Tuesday February 09, 2021 @01:29PM
(#26080931)
I asked, run it twice. The first time is for compilation. The second time it reaches 90ms on my machine.
Re:Node.js 14 is over 20x faster than Python3.8 for fib(n)
by meetups323 on Tuesday February 09, 2021 @01:37PM
(#26081013)
Second run was 200ms for me, still 2x node.
Re:Node.js 14 is over 20x faster than Python3.8 for fib(n)
by whimsicalism on Tuesday February 09, 2021 @01:38PM
(#26081016)
I would expect numba to win, but I also do not think it is a fair comparison.
Re:Node.js 14 is over 20x faster than Python3.8 for fib(n)
by PartiallyTyped on Tuesday February 09, 2021 @02:16PM
(#26081398)
To be fair, python itself isn't jitting anything, while node is.
Re:Node.js 14 is over 20x faster than Python3.8 for fib(n)
by meetups323 on Tuesday February 09, 2021 @06:46PM
(#26084104)
Numba doesn't really qualify as JIT if what it's really doing is compiling it and caching the results to disk then reading from them in the future for faster execution... that's just a compiler.
Node still wins by a healthy margin.