Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
meetups323
on Feb 9, 2021
|
parent
|
context
|
favorite
| on:
Node.js 14 is over 20x faster than Python3.8 for f...
pypy test.py
305.4699897766113 ms
node test.js
111.49054491519928 ms
python3 test.py
3576.0366916656494 ms
Node still wins by a healthy margin.
meetups323
on Feb 9, 2021
[–]
Numba (asked by a commenter that haas since deleted:
638.8082504272461 ms
PartiallyTyped
on Feb 9, 2021
|
parent
[–]
I asked, run it twice. The first time is for compilation. The second time it reaches 90ms on my machine.
meetups323
on Feb 9, 2021
|
root
|
parent
|
next
[–]
Second run was 200ms for me, still 2x node.
whimsicalism
on Feb 9, 2021
|
root
|
parent
|
prev
[–]
I would expect numba to win, but I also do not think it is a fair comparison.
PartiallyTyped
on Feb 9, 2021
|
root
|
parent
[–]
To be fair, python itself isn't jitting anything, while node is.
meetups323
on Feb 9, 2021
|
root
|
parent
[–]
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.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Node still wins by a healthy margin.