All Javascript benchmarks

Current benchmark data was generated on Fri Jul 01 2022, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8171M CPU @ 2.60GHz (Model 85)

* -m in a file name stands for multi-threading or multi-processing

* -i in a file name stands for direct intrinsics usage. (Usage of simd intrinsics via libraries is not counted)

* -ffi in a file name stands for non-stdlib FFI usage

* (You may find time < time(user) + time(sys) for some non-parallelized programs, the overhead is from GC or JIT compiler, which are allowed to take advantage of multi-cores as that's more close to real-world scenarios.)

binarytrees

Input: 18

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.js 4297ms 951ms 359.6MB 3590ms 1303ms node 18.4.0

Input: 15

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.js 275ms 2.0ms 83.9MB 250ms 33ms node 18.4.0

coro-prime-sieve

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.js 2845ms 39ms 81.0MB 2903ms 70ms node 18.4.0

Input: 1000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.js 274ms 12ms 61.5MB 250ms 27ms node 18.4.0

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.js 66ms 1.6ms 41.4MB 46ms 6ms node 18.4.0

http-server

Input: 3000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.js 3925ms 127ms 157.6MB 2070ms 470ms node 18.4.0

Input: 500

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.js 460ms 19ms 72.2MB 423ms 107ms node 18.4.0

json-serde

Input: sample 5000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.js 222ms 7.2ms 73.6MB 193ms 23ms node 18.4.0

Input: canada 15

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.js 1477ms 39ms 288.1MB 1503ms 157ms node 18.4.0

lru

Input: 1000 1000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2.js 1050ms 10ms 59.5MB 1030ms 20ms node 18.4.0
1.js 1392ms 4.0ms 60.9MB 1363ms 20ms node 18.4.0

Input: 1000 3000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2.js 2884ms 13ms 62.4MB 2867ms 20ms node 18.4.0
1.js 4009ms 31ms 60.9MB 3977ms 30ms node 18.4.0

Input: 100 500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
2.js 550ms 15ms 50.0MB 533ms 13ms node 18.4.0
1.js 573ms 2.6ms 46.8MB 550ms 17ms node 18.4.0

merkletrees

Input: 17

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.js 1162ms 8.6ms 121.0MB 1193ms 73ms node 18.4.0

Input: 15

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.js 347ms 7.3ms 88.4MB 323ms 40ms node 18.4.0

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
6.js 920ms 17ms 46.3MB 903ms 3ms node 18.4.0

Input: 500000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
6.js 165ms 2.0ms 46.4MB 147ms 7ms node 18.4.0

pidigits

Input: 8000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
3.js timeout 0.0ms 0.0MB 0ms 0ms node 18.4.0

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
3.js 2000ms 1.1ms 62.5MB 1977ms 27ms node 18.4.0

secp256k1

Input: 2000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.js timeout 0.0ms 0.0MB 0ms 0ms node 18.4.0

Input: 500

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
1.js 1326ms 5.9ms 50.0MB 1327ms 23ms node 18.4.0

spectral-norm

Input: 8000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
6-m.js 3672ms 38ms 70.5MB 6907ms 37ms node 18.4.0

Input: 4000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
6-m.js 1123ms 6.3ms 69.4MB 1980ms 47ms node 18.4.0

Input: 2000

code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
6-m.js 488ms 8.0ms 69.0MB 713ms 43ms node 18.4.0