Wasm VS Java benchmarks

Current benchmark data was generated on Thu Sep 22 2022, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz (Model 106)

* -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

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
java 2.java 664ms 1.0ms 413.9MB 690ms 83ms openjdk 20
java 2.java 690ms 43ms 602.5MB 673ms 120ms openjdk 19
java 2.java 744ms 45ms 680.0MB 807ms 163ms graal/jvm 17.0.4
java 2.java 1277ms 28ms 1069.2MB 903ms 583ms openjdk/zgc 19
wasm 3.rs 1991ms 14ms 51.1MB 1967ms 7ms wasmedgec 0.11.0
wasm 3.rs 2042ms 6.2ms 37.8MB 2010ms 17ms wasmer/llvm 2.3.0
wasm 5.rs 2143ms 150ms 35.0MB 2123ms 0ms wasmedgec 0.11.0
wasm 4.rs 2223ms 3.6ms 34.4MB 2203ms 7ms wasmedgec 0.11.0
wasm 4.rs 2416ms 8.0ms 21.7MB 2390ms 7ms wasmer/llvm 2.3.0
wasm 3.rs 2477ms 19ms 42.5MB 2457ms 0ms wasmtime 1.0.0
wasm 5.rs 2565ms 1.4ms 21.9MB 2547ms 10ms wasmer/llvm 2.3.0
wasm 5.rs 2651ms 56ms 59.5MB 2637ms 17ms node 16.17.0
wasm 4.rs 2771ms 42ms 58.6MB 2777ms 13ms node 16.17.0
wasm 3.rs 2796ms 31ms 78.0MB 2793ms 20ms node 16.17.0
wasm 5.rs 2916ms 20ms 26.6MB 2893ms 7ms wasmtime 1.0.0
wasm 4.rs 3153ms 28ms 26.5MB 3130ms 7ms wasmtime 1.0.0

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
java 2.java 164ms 6.4ms 109.4MB 170ms 23ms openjdk 19
java 2.java 174ms 14ms 111.4MB 163ms 37ms openjdk 20
java 2-m.java 182ms 6.2ms 168.4MB 240ms 40ms graal/jvm 17.0.4
wasm 3.rs 192ms 0.5ms 9.8MB 173ms 0ms wasmer/llvm 2.3.0
wasm 3.rs 194ms 7.6ms 23.0MB 180ms 0ms wasmedgec 0.11.0
wasm 5.rs 211ms 19ms 21.0MB 197ms 0ms wasmedgec 0.11.0
wasm 4.rs 222ms 11ms 20.8MB 210ms 0ms wasmedgec 0.11.0
wasm 4.rs 227ms 0.3ms 8.0MB 217ms 0ms wasmer/llvm 2.3.0
wasm 3.rs 234ms 1.5ms 14.5MB 220ms 0ms wasmtime 1.0.0
wasm 5.rs 244ms 0.1ms 7.9MB 230ms 0ms wasmer/llvm 2.3.0
wasm 5.rs 280ms 8.4ms 12.6MB 263ms 0ms wasmtime 1.0.0
java 2.java 300ms 5.7ms 243.7MB 187ms 153ms openjdk/zgc 19
wasm 4.rs 301ms 4.3ms 12.6MB 283ms 3ms wasmtime 1.0.0
wasm 3.rs 332ms 5.2ms 46.4MB 340ms 3ms node 16.17.0
wasm 4.rs 339ms 8.9ms 44.0MB 353ms 7ms node 16.17.0
wasm 5.rs 369ms 16ms 45.6MB 347ms 10ms node 16.17.0

coro-prime-sieve

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 3.rs 1268ms 0.5ms 8.0MB 1257ms 0ms wasmer/llvm 2.3.0
wasm 3.rs 1530ms 20ms 48.2MB 1570ms 20ms node 16.17.0
wasm 3.rs 1588ms 41ms 12.6MB 1573ms 0ms wasmtime 1.0.0
wasm 3.rs 1938ms 4.0ms 22.6MB 1920ms 3ms wasmedgec 0.11.0
java 1-m.java 4259ms 124ms 932.0MB 7657ms 480ms openjdk/zgc 19
java 1.java timeout 0.0ms 0.0MB 0ms 0ms openjdk 19
java 1.java timeout 0.0ms 0.0MB 0ms 0ms openjdk 20

Input: 1000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 3.rs 84ms 0.8ms 7.0MB 70ms 0ms wasmer/llvm 2.3.0
wasm 3.rs 105ms 3.6ms 11.2MB 93ms 0ms wasmtime 1.0.0
wasm 3.rs 134ms 0.6ms 19.8MB 123ms 0ms wasmedgec 0.11.0
wasm 3.rs 216ms 4.3ms 48.2MB 267ms 7ms node 16.17.0
java 1-m.java 737ms 38ms 107.3MB 1317ms 30ms openjdk 19
java 1-m.java 840ms 118ms 99.6MB 1487ms 40ms openjdk 20
java 1-m.java 958ms 20ms 311.7MB 1573ms 170ms openjdk/zgc 19

edigits

Input: 250001

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 1.rs 465ms 0.4ms 7.4MB 453ms 0ms wasmer/llvm 2.3.0
wasm 1.rs 479ms 1.1ms 20.2MB 463ms 3ms wasmedgec 0.11.0
wasm 1.rs 636ms 30ms 12.1MB 627ms 0ms wasmtime 1.0.0
java 1-m.java 707ms 9.0ms 265.3MB 1220ms 77ms graal/jvm 17.0.4
wasm 1.rs 708ms 1.5ms 49.7MB 747ms 13ms node 16.17.0
java 1-m.java 855ms 53ms 199.0MB 1527ms 47ms openjdk 19
java 1-m.java 865ms 87ms 204.6MB 1517ms 80ms openjdk 20
java 1-m.java 1039ms 68ms 472.6MB 1557ms 310ms openjdk/zgc 19

Input: 100000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 1.rs 121ms 0.4ms 6.5MB 110ms 0ms wasmer/llvm 2.3.0
wasm 1.rs 131ms 0.8ms 21.6MB 120ms 0ms wasmedgec 0.11.0
wasm 1.rs 167ms 8.2ms 11.6MB 160ms 0ms wasmtime 1.0.0
wasm 1.rs 272ms 3.4ms 48.8MB 317ms 7ms node 16.17.0
java 1-m.java 376ms 7.7ms 183.4MB 617ms 47ms graal/jvm 17.0.4
java 1-m.java 417ms 22ms 115.4MB 690ms 43ms openjdk 19
java 1-m.java 456ms 17ms 118.7MB 757ms 37ms openjdk 20
java 1-m.java 547ms 23ms 209.2MB 777ms 153ms openjdk/zgc 19

fannkuch-redux

Input: 11

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
java 1-m.java 1676ms 23ms 100.6MB 3180ms 33ms graal/jvm 17.0.4
java 1-m.java 1702ms 47ms 43.8MB 3257ms 17ms openjdk 20
java 1-m.java 1722ms 18ms 43.8MB 3290ms 13ms openjdk 19
java 1-m.java 1731ms 12ms 42.4MB 3233ms 50ms openjdk/zgc 19
wasm 1.rs 4694ms 29ms 44.0MB 4713ms 0ms node 16.17.0
wasm 1.rs 4954ms 1.8ms 4.9MB 4940ms 0ms wasmer/llvm 2.3.0
wasm 1.rs timeout 0.0ms 0.0MB 0ms 0ms wasmedgec 0.11.0
wasm 1.rs timeout 0.0ms 0.0MB 0ms 0ms wasmtime 1.0.0

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
java 1-m.java 272ms 3.4ms 42.5MB 443ms 13ms openjdk 20
java 1-m.java 273ms 6.2ms 42.2MB 437ms 10ms openjdk 19
java 1-m.java 285ms 13ms 91.6MB 450ms 17ms graal/jvm 17.0.4
java 1-m.java 315ms 4.4ms 42.5MB 450ms 50ms openjdk/zgc 19
wasm 1.rs 416ms 3.6ms 4.8MB 403ms 0ms wasmer/llvm 2.3.0
wasm 1.rs 426ms 3.1ms 9.4MB 413ms 0ms wasmtime 1.0.0
wasm 1.rs 447ms 0.8ms 18.6MB 433ms 0ms wasmedgec 0.11.0
wasm 1.rs 516ms 84ms 45.8MB 527ms 7ms node 16.17.0

fasta

Input: 2500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 1.rs 347ms 0.2ms 6.1MB 333ms 0ms wasmer/llvm 2.3.0
wasm 1.rs 350ms 2.0ms 9.5MB 337ms 0ms wasmtime 1.0.0
wasm 1.rs 359ms 0.2ms 18.9MB 340ms 0ms wasmedgec 0.11.0
wasm 1.rs 465ms 1.2ms 43.7MB 480ms 3ms node 16.17.0
java 4.java 510ms 2.3ms 44.0MB 587ms 17ms openjdk 20
java 4.java 515ms 7.4ms 43.3MB 590ms 17ms openjdk 19
java 4.java 558ms 6.8ms 41.8MB 587ms 67ms openjdk/zgc 19
java 4-m.java 618ms 4.2ms 119.8MB 937ms 27ms graal/jvm 17.0.4

Input: 250000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 1.rs 38ms 0.2ms 6.1MB 30ms 0ms wasmer/llvm 2.3.0
wasm 1.rs 42ms 0.6ms 9.2MB 30ms 0ms wasmtime 1.0.0
wasm 1.rs 44ms 0.5ms 18.5MB 37ms 0ms wasmedgec 0.11.0
wasm 1.rs 126ms 2.2ms 47.5MB 143ms 3ms node 16.17.0
java 4.java 141ms 1.4ms 42.9MB 160ms 20ms openjdk 20
java 4.java 144ms 4.0ms 41.2MB 177ms 7ms openjdk 19
java 4.java 154ms 7.2ms 90.9MB 193ms 23ms graal/jvm 17.0.4
java 4.java 184ms 4.4ms 43.1MB 167ms 50ms openjdk/zgc 19

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 1.rs 2.7ms 0.5ms 4.9MB 0ms 0ms wasmer/llvm 2.3.0
wasm 1.rs 6.0ms 0.9ms 9.2MB 0ms 0ms wasmtime 1.0.0
wasm 1.rs 8.5ms 2.6ms 18.4MB 0ms 0ms wasmedgec 0.11.0
java 1.java 70ms 3.1ms 63.4MB 70ms 10ms graal/jvm 17.0.4
java 1.java 78ms 5.0ms 42.7MB 78ms 6ms openjdk 20
java 1.java 82ms 3.6ms 40.8MB 78ms 8ms openjdk 19
wasm 1.rs 83ms 1.1ms 43.5MB 94ms 6ms node 16.17.0
java 1.java 119ms 4.8ms 39.9MB 78ms 52ms openjdk/zgc 19

lru

Input: 1000 1000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 1.rs 126ms 1.6ms 6.3MB 113ms 0ms wasmer/llvm 2.3.0
wasm 1.rs 137ms 0.8ms 18.6MB 127ms 0ms wasmedgec 0.11.0
wasm 1.rs 149ms 1.7ms 10.9MB 140ms 0ms wasmtime 1.0.0
wasm 1.rs 227ms 4.3ms 44.6MB 243ms 7ms node 16.17.0

Input: 1000 3000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 1.rs 368ms 1.6ms 6.3MB 360ms 0ms wasmer/llvm 2.3.0
wasm 1.rs 401ms 6.7ms 19.2MB 387ms 0ms wasmedgec 0.11.0
wasm 1.rs 434ms 5.4ms 10.9MB 423ms 0ms wasmtime 1.0.0
wasm 1.rs 505ms 4.3ms 44.6MB 520ms 10ms node 16.17.0

Input: 100 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 1.rs 62ms 1.3ms 4.9MB 50ms 0ms wasmer/llvm 2.3.0
wasm 1.rs 71ms 0.5ms 18.6MB 60ms 0ms wasmedgec 0.11.0
wasm 1.rs 76ms 0.7ms 11.3MB 63ms 3ms wasmtime 1.0.0
wasm 1.rs 158ms 1.7ms 44.6MB 173ms 7ms node 16.17.0

mandelbrot

Input: 5000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 8.rs 1065ms 1.1ms 47.9MB 1080ms 3ms node 16.17.0
wasm 8.rs 1098ms 0.8ms 21.8MB 1083ms 0ms wasmedgec 0.11.0
wasm 8.rs 1171ms 1.3ms 9.1MB 1160ms 0ms wasmer/llvm 2.3.0
wasm 8.rs 1296ms 0.4ms 13.8MB 1280ms 0ms wasmtime 1.0.0
java 1b.java 1401ms 6.2ms 50.4MB 1487ms 10ms openjdk 20
java 1b.java 1420ms 20ms 50.1MB 1510ms 17ms openjdk 19
java 1b.java 1461ms 14ms 47.6MB 1520ms 50ms openjdk/zgc 19
java 1b.java 1467ms 10ms 120.7MB 1620ms 37ms graal/jvm 17.0.4
java 1a.java 1529ms 0.9ms 48.5MB 1617ms 10ms openjdk 19
java 1a.java 1537ms 4.1ms 50.9MB 1610ms 20ms openjdk 20
java 1a.java 1573ms 2.7ms 47.6MB 1617ms 53ms openjdk/zgc 19
java 1a.java 1577ms 3.0ms 112.9MB 1680ms 27ms graal/jvm 17.0.4
java 1.java 2025ms 21ms 165.5MB 2130ms 30ms graal/jvm 17.0.4
java 1.java 2115ms 8.5ms 198.3MB 2173ms 37ms openjdk 20
java 1.java 2138ms 4.5ms 192.1MB 2200ms 33ms openjdk 19
java 1.java 2503ms 14ms 581.3MB 2243ms 367ms openjdk/zgc 19
java 2.java timeout 0.0ms 0.0MB 0ms 0ms openjdk 19
java 2.java timeout 0.0ms 0.0MB 0ms 0ms openjdk 20
java 2.java timeout 0.0ms 0.0MB 0ms 0ms openjdk/zgc 19

Input: 1000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 8.rs 53ms 0.8ms 6.0MB 40ms 0ms wasmer/llvm 2.3.0
wasm 8.rs 55ms 0.2ms 18.9MB 40ms 0ms wasmedgec 0.11.0
wasm 8.rs 62ms 1.0ms 11.0MB 50ms 0ms wasmtime 1.0.0
wasm 8.rs 127ms 3.0ms 44.2MB 147ms 3ms node 16.17.0
java 1b.java 210ms 4.8ms 46.6MB 283ms 17ms openjdk 19
java 1b.java 210ms 4.2ms 46.7MB 287ms 10ms openjdk 20
java 1a.java 214ms 1.9ms 47.1MB 280ms 10ms openjdk 19
java 1a.java 215ms 15ms 46.8MB 283ms 13ms openjdk 20
java 1.java 216ms 6.0ms 95.9MB 263ms 23ms openjdk 19
java 1.java 218ms 4.9ms 99.6MB 270ms 17ms openjdk 20
java 1a.java 222ms 4.8ms 101.7MB 293ms 30ms graal/jvm 17.0.4
java 1.java 241ms 3.5ms 107.0MB 307ms 40ms graal/jvm 17.0.4
java 1b.java 260ms 24ms 45.7MB 300ms 57ms openjdk/zgc 19
java 1a.java 274ms 51ms 47.2MB 320ms 50ms openjdk/zgc 19
java 1b-m.java 281ms 24ms 118.7MB 413ms 43ms graal/jvm 17.0.4
java 1.java 287ms 18ms 113.1MB 293ms 77ms openjdk/zgc 19
java 2.java 761ms 27ms 547.8MB 943ms 127ms openjdk 19
java 2.java 766ms 10ms 566.9MB 947ms 110ms openjdk 20
java 2.java 1367ms 20ms 1026.7MB 1000ms 660ms openjdk/zgc 19

merkletrees

Input: 17

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
java 1.java 495ms 5.0ms 291.5MB 513ms 73ms openjdk 20
java 1.java 512ms 13ms 367.3MB 520ms 83ms openjdk 19
java 1.java 549ms 9.4ms 361.3MB 697ms 87ms graal/jvm 17.0.4
java 1.java 932ms 20ms 758.5MB 643ms 430ms openjdk/zgc 19
wasm 1.rs 1079ms 4.2ms 42.4MB 1055ms 10ms wasmedgec 0.11.0
wasm 1.rs 1246ms 3.1ms 29.8MB 1213ms 17ms wasmer/llvm 2.3.0
wasm 1.rs 1372ms 11ms 67.5MB 1373ms 17ms node 16.17.0
wasm 1.rs 1434ms 9.1ms 34.5MB 1407ms 7ms wasmtime 1.0.0

Input: 15

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
java 1.java 219ms 2.1ms 173.3MB 243ms 37ms openjdk 19
java 1.java 223ms 6.1ms 174.3MB 237ms 43ms openjdk 20
wasm 1.rs 235ms 1.5ms 24.4MB 217ms 3ms wasmedgec 0.11.0
java 1-m.java 267ms 8.9ms 245.9MB 380ms 60ms graal/jvm 17.0.4
wasm 1.rs 267ms 1.0ms 11.7MB 257ms 0ms wasmer/llvm 2.3.0
wasm 1.rs 308ms 0.9ms 16.7MB 297ms 0ms wasmtime 1.0.0
wasm 1.rs 355ms 5.1ms 49.2MB 363ms 7ms node 16.17.0
java 1.java 433ms 6.0ms 353.0MB 260ms 230ms openjdk/zgc 19

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 1.rs 469ms 1.1ms 4.9MB 457ms 0ms wasmer/llvm 2.3.0
wasm 1.rs 497ms 0.9ms 9.6MB 487ms 0ms wasmtime 1.0.0
wasm 1.rs 501ms 1.0ms 18.5MB 483ms 0ms wasmedgec 0.11.0
java 1.java 539ms 2.8ms 86.1MB 583ms 20ms graal/jvm 17.0.4
java 1.java 558ms 2.9ms 44.4MB 563ms 23ms openjdk 20
java 1.java 558ms 2.6ms 42.4MB 577ms 13ms openjdk 19
wasm 1.rs 571ms 3.9ms 48.3MB 593ms 7ms node 16.17.0
java 1.java 614ms 4.4ms 42.3MB 590ms 57ms openjdk/zgc 19
wasm 2.rs 678ms 0.6ms 18.9MB 667ms 0ms wasmedgec 0.11.0
wasm 2.rs 679ms 1.0ms 9.7MB 663ms 0ms wasmtime 1.0.0
wasm 2.rs 688ms 0.2ms 4.9MB 677ms 0ms wasmer/llvm 2.3.0
wasm 2.rs 758ms 12ms 48.3MB 783ms 10ms node 16.17.0
java 2.java 1887ms 33ms 538.3MB 1923ms 107ms openjdk 19
java 2.java 1923ms 9.6ms 563.7MB 1950ms 127ms openjdk 20
java 2.java 2582ms 4.7ms 1219.4MB 2027ms 753ms openjdk/zgc 19

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 1.rs 51ms 0.6ms 4.8MB 40ms 0ms wasmer/llvm 2.3.0
wasm 1.rs 57ms 0.8ms 11.5MB 47ms 0ms wasmtime 1.0.0
wasm 1.rs 59ms 0.3ms 18.9MB 47ms 0ms wasmedgec 0.11.0
wasm 2.rs 72ms 0.5ms 4.8MB 60ms 0ms wasmer/llvm 2.3.0
wasm 2.rs 75ms 0.2ms 11.4MB 60ms 0ms wasmtime 1.0.0
wasm 2.rs 78ms 3.4ms 18.7MB 63ms 0ms wasmedgec 0.11.0
java 1.java 142ms 3.9ms 42.7MB 157ms 17ms openjdk 20
java 1.java 144ms 1.6ms 86.4MB 190ms 20ms graal/jvm 17.0.4
java 1.java 146ms 5.8ms 42.7MB 167ms 10ms openjdk 19
wasm 1.rs 150ms 5.2ms 48.3MB 177ms 7ms node 16.17.0
wasm 2.rs 171ms 3.2ms 47.7MB 193ms 7ms node 16.17.0
java 1.java 190ms 3.5ms 42.2MB 160ms 57ms openjdk/zgc 19
java 2.java 414ms 4.9ms 363.3MB 493ms 70ms openjdk 20
java 2.java 417ms 2.1ms 355.0MB 483ms 73ms openjdk 19
java 2.java 676ms 0.7ms 455.4MB 547ms 290ms openjdk/zgc 19

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 2.rs 510ms 2.9ms 10.8MB 493ms 0ms wasmer/llvm 2.3.0
wasm 2.rs 560ms 2.5ms 23.3MB 543ms 3ms wasmedgec 0.11.0
wasm 2.rs 698ms 2.2ms 15.5MB 683ms 0ms wasmtime 1.0.0
wasm 2.rs 721ms 8.6ms 48.3MB 733ms 7ms node 16.17.0
java 1.java 781ms 22ms 88.1MB 807ms 23ms openjdk 20
wasm 1.rs 858ms 1.8ms 44.9MB 823ms 23ms wasmer/llvm 2.3.0
wasm 1.rs 871ms 40ms 57.0MB 850ms 10ms wasmedgec 0.11.0
java 1.java 922ms 29ms 84.4MB 943ms 23ms openjdk 19
java 1.java 982ms 26ms 110.6MB 940ms 87ms openjdk/zgc 19
java 2.java 1003ms 4.6ms 52.7MB 1043ms 13ms openjdk 20
wasm 1.rs 1014ms 62ms 83.3MB 1027ms 10ms node 16.17.0
java 2.java 1028ms 5.3ms 52.2MB 1010ms 60ms openjdk/zgc 19
java 2.java 1039ms 37ms 54.3MB 1077ms 17ms openjdk 19
wasm 1.rs 1338ms 34ms 49.7MB 1320ms 3ms wasmtime 1.0.0
java 1-m.java 1472ms 70ms 163.9MB 2240ms 53ms graal/jvm 17.0.4
java 2-m.java 1848ms 24ms 128.2MB 3400ms 50ms graal/jvm 17.0.4

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 2.rs 119ms 0.7ms 7.3MB 107ms 0ms wasmer/llvm 2.3.0
wasm 2.rs 139ms 1.1ms 20.1MB 123ms 0ms wasmedgec 0.11.0
wasm 1.rs 147ms 2.1ms 15.7MB 127ms 3ms wasmer/llvm 2.3.0
wasm 1.rs 151ms 0.2ms 29.6MB 140ms 0ms wasmedgec 0.11.0
wasm 2.rs 168ms 0.0ms 12.0MB 157ms 0ms wasmtime 1.0.0
wasm 1.rs 223ms 2.2ms 20.3MB 210ms 0ms wasmtime 1.0.0
wasm 1.rs 233ms 3.5ms 59.3MB 240ms 7ms node 16.17.0
wasm 2.rs 235ms 0.8ms 44.3MB 250ms 0ms node 16.17.0
java 1.java 236ms 2.7ms 62.5MB 270ms 13ms openjdk 20
java 1.java 237ms 4.6ms 62.3MB 257ms 27ms openjdk 19
java 1.java 280ms 5.4ms 60.9MB 263ms 60ms openjdk/zgc 19
java 2.java 325ms 6.4ms 48.8MB 363ms 10ms openjdk 20
java 2.java 326ms 0.8ms 48.2MB 360ms 17ms openjdk 19
java 1-m.java 332ms 8.9ms 135.3MB 470ms 43ms graal/jvm 17.0.4
java 2.java 360ms 3.3ms 44.2MB 353ms 50ms openjdk/zgc 19
java 2-m.java 611ms 3.6ms 127.9MB 1100ms 33ms graal/jvm 17.0.4

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 2.rs 3010ms 8.2ms 7.0MB 2990ms 0ms wasmer/llvm 2.3.0
wasm 2.rs 3124ms 6.9ms 18.9MB 3107ms 0ms wasmedgec 0.11.0
wasm 2.rs 3380ms 1.0ms 11.3MB 3370ms 0ms wasmtime 1.0.0
wasm 2.rs 3675ms 39ms 48.1MB 3717ms 10ms node 16.17.0
java 1.java 4981ms 1.4ms 374.1MB 5360ms 117ms graal/jvm 17.0.4
java 1.java timeout 0.0ms 0.0MB 0ms 0ms openjdk 19
java 1.java timeout 0.0ms 0.0MB 0ms 0ms openjdk 20
java 1.java timeout 0.0ms 0.0MB 0ms 0ms openjdk/zgc 19

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 2.rs 709ms 3.6ms 6.3MB 697ms 0ms wasmer/llvm 2.3.0
wasm 2.rs 745ms 5.2ms 19.6MB 727ms 0ms wasmedgec 0.11.0
wasm 2.rs 802ms 0.3ms 10.9MB 790ms 0ms wasmtime 1.0.0
wasm 2.rs 961ms 7.8ms 48.7MB 1007ms 10ms node 16.17.0
java 1.java 1362ms 9.0ms 390.5MB 1710ms 97ms graal/jvm 17.0.4
java 1.java 1411ms 34ms 288.1MB 1777ms 70ms openjdk 19
java 1.java 1453ms 6.4ms 302.3MB 1863ms 57ms openjdk 20
java 1.java 1946ms 8.4ms 924.1MB 1807ms 637ms openjdk/zgc 19

secp256k1

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 0.rs 417ms 0.1ms 18.8MB 410ms 0ms wasmedgec 0.11.0
wasm 0.rs 418ms 1.5ms 4.9MB 410ms 0ms wasmer/llvm 2.3.0
wasm 0.rs 471ms 0.3ms 11.7MB 460ms 0ms wasmtime 1.0.0
wasm 0.rs 505ms 2.3ms 46.9MB 537ms 0ms node 16.17.0
wasm 1.rs 4460ms 4.0ms 4.9MB 4447ms 0ms wasmer/llvm 2.3.0
wasm 1.rs 4635ms 155ms 20.2MB 4620ms 0ms wasmedgec 0.11.0
wasm 1.rs 4850ms 27ms 51.9MB 4890ms 17ms node 16.17.0
wasm 1.rs timeout 0.0ms 0.0MB 0ms 0ms wasmtime 1.0.0

Input: 500

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 0.rs 107ms 0.3ms 4.8MB 97ms 0ms wasmer/llvm 2.3.0
wasm 0.rs 112ms 0.6ms 18.3MB 100ms 0ms wasmedgec 0.11.0
wasm 0.rs 124ms 0.6ms 11.0MB 110ms 0ms wasmtime 1.0.0
wasm 0.rs 206ms 2.4ms 46.7MB 230ms 7ms node 16.17.0
wasm 1.rs 1128ms 12ms 5.0MB 1107ms 0ms wasmer/llvm 2.3.0
wasm 1.rs 1142ms 0.4ms 18.5MB 1130ms 0ms wasmedgec 0.11.0
wasm 1.rs 1297ms 8.4ms 11.9MB 1283ms 0ms wasmtime 1.0.0
wasm 1.rs 1328ms 2.9ms 52.3MB 1380ms 7ms node 16.17.0

spectral-norm

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 2.rs 4126ms 1.0ms 19.2MB 4113ms 0ms wasmedgec 0.11.0
wasm 7.rs 4194ms 1.2ms 6.0MB 4180ms 0ms wasmer/llvm 2.3.0
wasm 7.rs 4266ms 0.6ms 18.7MB 4257ms 0ms wasmedgec 0.11.0
wasm 2.rs 4298ms 5.4ms 48.2MB 4320ms 10ms node 16.17.0
java 2-m.java 4306ms 8.2ms 104.9MB 8330ms 30ms graal/jvm 17.0.4
wasm 2.rs 4396ms 1.1ms 6.1MB 4380ms 0ms wasmer/llvm 2.3.0
wasm 7.rs 4506ms 11ms 52.0MB 4527ms 7ms node 16.17.0
wasm 2.rs 4534ms 12ms 11.0MB 4520ms 0ms wasmtime 1.0.0
wasm 7.rs 4610ms 2.4ms 10.9MB 4600ms 0ms wasmtime 1.0.0
java 2.java timeout 0.0ms 0.0MB 0ms 0ms openjdk 19
java 2.java timeout 0.0ms 0.0MB 0ms 0ms openjdk 20
java 2.java timeout 0.0ms 0.0MB 0ms 0ms openjdk/zgc 19

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 2.rs 1039ms 0.6ms 19.2MB 1027ms 0ms wasmedgec 0.11.0
wasm 7.rs 1052ms 1.1ms 6.0MB 1040ms 0ms wasmer/llvm 2.3.0
wasm 7.rs 1074ms 1.0ms 18.6MB 1063ms 0ms wasmedgec 0.11.0
wasm 2.rs 1102ms 1.1ms 6.2MB 1090ms 0ms wasmer/llvm 2.3.0
wasm 2.rs 1143ms 3.4ms 48.7MB 1177ms 3ms node 16.17.0
wasm 2.rs 1146ms 1.0ms 12.9MB 1133ms 0ms wasmtime 1.0.0
wasm 7.rs 1160ms 0.2ms 11.5MB 1147ms 0ms wasmtime 1.0.0
wasm 7.rs 1207ms 2.4ms 48.3MB 1230ms 10ms node 16.17.0
java 2-m.java 1270ms 5.6ms 108.9MB 2323ms 37ms graal/jvm 17.0.4
java 2-m.java 1647ms 83ms 44.4MB 3100ms 20ms openjdk 19
java 2-m.java 1733ms 180ms 44.2MB 3290ms 17ms openjdk 20
java 2-m.java 1755ms 197ms 42.6MB 3250ms 57ms openjdk/zgc 19

Input: 2000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
wasm 7.rs 266ms 0.6ms 4.9MB 253ms 0ms wasmer/llvm 2.3.0
wasm 2.rs 267ms 0.4ms 18.5MB 253ms 0ms wasmedgec 0.11.0
wasm 7.rs 277ms 2.1ms 19.1MB 263ms 0ms wasmedgec 0.11.0
wasm 2.rs 279ms 0.3ms 4.9MB 263ms 0ms wasmer/llvm 2.3.0
wasm 2.rs 293ms 0.3ms 9.7MB 280ms 0ms wasmtime 1.0.0
wasm 7.rs 296ms 0.3ms 9.4MB 283ms 0ms wasmtime 1.0.0
wasm 2.rs 366ms 5.1ms 48.3MB 397ms 0ms node 16.17.0
wasm 7.rs 379ms 1.5ms 48.6MB 397ms 13ms node 16.17.0
java 2-m.java 446ms 11ms 98.3MB 743ms 40ms graal/jvm 17.0.4
java 2-m.java 563ms 42ms 44.2MB 1017ms 10ms openjdk 20
java 2-m.java 582ms 12ms 44.6MB 1037ms 17ms openjdk 19
java 2-m.java 647ms 16ms 44.4MB 1083ms 50ms openjdk/zgc 19