Tuesday, March 17, 2020

Performance: JavaScript vs Python vs Rust vs WASM

NodeJS vs. Python 3 Performance - DEV Community 

Problem 7 - Project Euler
What is the 10 001st prime number?

nodejs vs python 3

LanguageVersionTime
JS10.7.31.64s
Python3.7.126.24s
Rust1.35.00.78s
On another machine
JS: getPrime(10001)=104743 elelapsedTime=5633 ms
RS WASM: get_prime(10001)=104743 elelapsedTime=5176 ms