All Wasm benchmarks

Current benchmark data was generated on Sun Oct 17 2021, full log can be found HERE

CONTRIBUTIONS are WELCOME!

binarytrees

Input: 18

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 1034ms 7.1ms 26.0MB 1007ms 10ms wasmedgec 0.8.2
1.rs 1083ms 6.1ms 33.3MB 1063ms 7ms wasmer/LLVM 2.0.0
1.rs 1205ms 11ms 52.1MB 1213ms 13ms node 14.18.0
1.rs 1250ms 14ms 24.1MB 1233ms 0ms wasmtime 0.30.0
1.rs 1262ms 15ms 47.1MB 1327ms 10ms deno 1.15.1
1.rs 1369ms 12ms 33.6MB 1353ms 3ms wasmer/Cranelift 2.0.0

Input: 14

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 59ms 1.0ms 22.3MB 50ms 0ms wasmer/LLVM 2.0.0
1.rs 67ms 6.2ms 13.2MB 57ms 0ms wasmedgec 0.8.2
1.rs 67ms 0.9ms 10.9MB 57ms 0ms wasmtime 0.30.0
1.rs 95ms 35ms 29.3MB 97ms 0ms wasmer/Cranelift 2.0.0
1.rs 136ms 1.8ms 40.4MB 150ms 7ms node 14.18.0
1.rs 152ms 55ms 34.5MB 193ms 10ms deno 1.15.1

coro-prime-sieve

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.rs 1320ms 7.9ms 23.4MB 1267ms 27ms wasmer/LLVM 2.0.0
3.rs 1558ms 42ms 42.6MB 1513ms 40ms node 14.18.0
3.rs 1698ms 20ms 13.9MB 1627ms 20ms wasmtime 0.30.0
3.rs 1963ms 17ms 37.1MB 1987ms 53ms deno 1.15.1

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.rs 93ms 2.8ms 22.3MB 73ms 3ms wasmer/LLVM 2.0.0
3.rs 132ms 15ms 23.1MB 97ms 13ms wasmer/Cranelift 2.0.0
3.rs 162ms 53ms 18.0MB 157ms 3ms wasmtime 0.30.0
3.rs 203ms 5.9ms 42.9MB 220ms 20ms node 14.18.0
3.rs 303ms 69ms 36.1MB 353ms 17ms deno 1.15.1

edigits

Input: 250001

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 513ms 1.6ms 22.5MB 480ms 13ms wasmer/LLVM 2.0.0
1.rs 637ms 12ms 23.9MB 597ms 23ms wasmer/Cranelift 2.0.0
1.rs 721ms 27ms 11.5MB 667ms 13ms wasmtime 0.30.0
1.rs 819ms 47ms 40.1MB 897ms 37ms deno 1.15.1
1.rs 858ms 9.7ms 44.4MB 857ms 33ms node 14.18.0
1.rs 2021ms 151ms 16.5MB 1247ms 537ms wasmedgec 0.8.2

Input: 100000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 142ms 1.6ms 22.0MB 120ms 10ms wasmer/LLVM 2.0.0
1.rs 217ms 57ms 32.7MB 220ms 7ms wasmer/Cranelift 2.0.0
1.rs 247ms 41ms 19.9MB 233ms 7ms wasmtime 0.30.0
1.rs 312ms 9.8ms 43.9MB 323ms 23ms node 14.18.0
1.rs 531ms 114ms 38.5MB 453ms 47ms deno 1.15.1
1.rs 705ms 54ms 15.8MB 420ms 200ms wasmedgec 0.8.2

fannkuch-redux

Input: 11

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 2907ms 9.3ms 12.3MB 2897ms 0ms wasmedgec 0.8.2
2.rs 3213ms 5.1ms 21.6MB 3193ms 0ms wasmer/Cranelift 2.0.0
2.rs 3225ms 1.8ms 9.0MB 3213ms 0ms wasmtime 0.30.0
2.rs 3307ms 41ms 40.8MB 3313ms 17ms node 14.18.0
2.rs 3489ms 4.1ms 20.7MB 3473ms 0ms wasmer/LLVM 2.0.0

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 255ms 6.8ms 12.4MB 240ms 3ms wasmedgec 0.8.2
2.rs 289ms 31ms 16.6MB 290ms 3ms wasmtime 0.30.0
2.rs 292ms 35ms 29.1MB 290ms 3ms wasmer/Cranelift 2.0.0
2.rs 297ms 1.7ms 21.0MB 280ms 0ms wasmer/LLVM 2.0.0
2.rs 348ms 5.2ms 43.2MB 357ms 13ms node 14.18.0
2.rs 618ms 61ms 34.6MB 690ms 17ms deno 1.15.1

fasta

Input: 2500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 967ms 164ms 21.4MB 603ms 293ms wasmer/Cranelift 2.0.0
1.rs 1033ms 200ms 20.3MB 610ms 323ms wasmer/LLVM 2.0.0
1.rs 1258ms 56ms 9.0MB 847ms 350ms wasmtime 0.30.0
1.rs 1325ms 18ms 35.9MB 923ms 390ms deno 1.15.1
1.rs 1370ms 19ms 41.7MB 997ms 337ms node 14.18.0
1.rs 2774ms 58ms 12.4MB 1457ms 1270ms wasmedgec 0.8.2

Input: 250000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 95ms 2.8ms 21.3MB 50ms 23ms wasmer/LLVM 2.0.0
1.rs 125ms 41ms 28.5MB 87ms 23ms wasmer/Cranelift 2.0.0
1.rs 193ms 25ms 14.4MB 117ms 30ms wasmtime 0.30.0
1.rs 227ms 26ms 41.7MB 170ms 60ms node 14.18.0
1.rs 286ms 56ms 35.7MB 220ms 47ms deno 1.15.1
1.rs 310ms 59ms 12.4MB 153ms 110ms wasmedgec 0.8.2

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 7.8ms 0.9ms 21.3MB 0ms 0ms wasmer/LLVM 2.0.0
1.rs 13ms 1.2ms 29.9MB 5ms 5ms wasm/graal 21.2.0
1.rs 14ms 3.1ms 12.2MB 0ms 0ms wasmedgec 0.8.2
1.rs 19ms 24ms 16.0MB 80ms 10ms wasmtime 0.30.0
1.rs 21ms 24ms 28.8MB 90ms 10ms wasmer/Cranelift 2.0.0
1.rs 33ms 1.3ms 32.4MB 24ms 2ms deno 1.15.1
1.rs 76ms 1.9ms 40.1MB 88ms 6ms node 14.18.0

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 390ms 5.0ms 13.5MB 373ms 0ms wasmedgec 0.8.2
2.rs 411ms 5.6ms 21.2MB 400ms 0ms wasmer/LLVM 2.0.0
1.rs 498ms 1.0ms 13.4MB 487ms 0ms wasmedgec 0.8.2
2.rs 504ms 0.7ms 10.3MB 493ms 0ms wasmtime 0.30.0
1.rs 508ms 7.6ms 21.1MB 493ms 0ms wasmer/LLVM 2.0.0
1.rs 527ms 1.4ms 11.3MB 513ms 0ms wasmtime 0.30.0
1.rs 531ms 0.7ms 21.8MB 517ms 0ms wasmer/Cranelift 2.0.0
2.rs 531ms 21ms 21.9MB 517ms 0ms wasmer/Cranelift 2.0.0
2.rs 689ms 1.0ms 45.0MB 703ms 10ms node 14.18.0
2.rs 793ms 2.4ms 35.7MB 877ms 10ms deno 1.15.1
1.rs 1291ms 57ms 35.9MB 1347ms 3ms deno 1.15.1
1.rs 1955ms 12ms 42.6MB 1967ms 27ms node 14.18.0
1.rs 3955ms 2.7ms 131.8MB 4047ms 40ms wasm/graal 21.2.0
2.rs 4397ms 4.5ms 135.1MB 4497ms 47ms wasm/graal 21.2.0

Input: 500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 51ms 0.6ms 21.5MB 37ms 0ms wasmer/LLVM 2.0.0
2.rs 54ms 2.7ms 13.4MB 40ms 0ms wasmedgec 0.8.2
1.rs 59ms 0.3ms 21.3MB 50ms 0ms wasmer/LLVM 2.0.0
1.rs 65ms 0.8ms 13.4MB 50ms 3ms wasmedgec 0.8.2
2.rs 84ms 40ms 17.9MB 90ms 3ms wasmtime 0.30.0
1.rs 84ms 40ms 30.7MB 83ms 7ms wasmer/Cranelift 2.0.0
2.rs 84ms 42ms 31.0MB 90ms 3ms wasmer/Cranelift 2.0.0
1.rs 86ms 43ms 16.4MB 93ms 0ms wasmtime 0.30.0
2.rs 110ms 1.1ms 35.7MB 160ms 13ms deno 1.15.1
1.rs 151ms 1.5ms 44.0MB 170ms 10ms node 14.18.0
1.rs 185ms 50ms 35.7MB 247ms 10ms deno 1.15.1
2.rs 191ms 48ms 43.9MB 213ms 20ms node 14.18.0
1.rs 716ms 32ms 128.8MB 800ms 40ms wasm/graal 21.2.0
2.rs 766ms 2.9ms 135.0MB 863ms 47ms wasm/graal 21.2.0

nsieve

Input: 12

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 782ms 3.9ms 17.2MB 767ms 0ms wasmedgec 0.8.2
2.rs 880ms 1.2ms 26.3MB 857ms 3ms wasmer/LLVM 2.0.0
2.rs 975ms 3.4ms 15.1MB 963ms 0ms wasmtime 0.30.0
2.rs 1040ms 2.1ms 26.6MB 1023ms 0ms wasmer/Cranelift 2.0.0
1.rs 1177ms 65ms 51.4MB 1153ms 10ms wasmedgec 0.8.2
2.rs 1196ms 31ms 44.5MB 1200ms 10ms node 14.18.0
1.rs 1344ms 15ms 60.3MB 1300ms 27ms wasmer/LLVM 2.0.0
1.rs 1350ms 19ms 60.9MB 1317ms 17ms wasmer/Cranelift 2.0.0
1.rs 1384ms 26ms 78.9MB 1380ms 27ms node 14.18.0
1.rs 1425ms 60ms 49.3MB 1393ms 17ms wasmtime 0.30.0
1.rs 1978ms 23ms 73.8MB 1993ms 27ms deno 1.15.1
2.rs 3015ms 46ms 40.2MB 3033ms 13ms deno 1.15.1

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.rs 143ms 2.9ms 22.1MB 123ms 7ms wasmedgec 0.8.2
1.rs 163ms 1.1ms 31.2MB 147ms 3ms wasmer/LLVM 2.0.0
1.rs 190ms 31ms 37.5MB 187ms 0ms wasmer/Cranelift 2.0.0
2.rs 195ms 1.1ms 13.4MB 183ms 0ms wasmedgec 0.8.2
2.rs 208ms 0.8ms 22.6MB 193ms 0ms wasmer/LLVM 2.0.0
1.rs 208ms 31ms 22.6MB 207ms 0ms wasmtime 0.30.0
2.rs 249ms 32ms 14.3MB 250ms 0ms wasmtime 0.30.0
1.rs 255ms 2.6ms 49.3MB 263ms 13ms node 14.18.0
2.rs 268ms 31ms 29.8MB 263ms 3ms wasmer/Cranelift 2.0.0
2.rs 338ms 9.3ms 41.1MB 343ms 13ms node 14.18.0
1.rs 377ms 47ms 43.7MB 400ms 23ms deno 1.15.1
2.rs 750ms 63ms 35.5MB 827ms 13ms deno 1.15.1
1.rs 2134ms 20ms 338.6MB 3047ms 137ms wasm/graal 21.2.0

pidigits

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 3663ms 3.2ms 22.2MB 3647ms 0ms wasmer/LLVM 2.0.0
2.rs 3741ms 3.3ms 16.2MB 3533ms 190ms wasmedgec 0.8.2

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 864ms 0.8ms 21.8MB 850ms 0ms wasmer/LLVM 2.0.0
2.rs 995ms 3.1ms 15.9MB 917ms 60ms wasmedgec 0.8.2
2.rs 1254ms 62ms 31.7MB 1270ms 0ms wasmer/Cranelift 2.0.0
2.rs 1362ms 60ms 19.4MB 1373ms 3ms wasmtime 0.30.0
2.rs 1420ms 13ms 43.3MB 1450ms 17ms node 14.18.0
2.rs 1465ms 75ms 38.3MB 1563ms 20ms deno 1.15.1

spectral-norm

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 3440ms 0.7ms 21.6MB 3423ms 0ms wasmer/LLVM 2.0.0
2.rs 3455ms 10.0ms 13.7MB 3433ms 3ms wasmedgec 0.8.2
2.rs 3996ms 1.7ms 12.3MB 3983ms 0ms wasmtime 0.30.0
2.rs 4012ms 0.7ms 22.4MB 4003ms 0ms wasmer/Cranelift 2.0.0
2.rs 4569ms 7.4ms 36.1MB 4647ms 13ms deno 1.15.1
2.rs 4920ms 6.0ms 44.0MB 4933ms 13ms node 14.18.0

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 867ms 1.0ms 21.5MB 857ms 0ms wasmer/LLVM 2.0.0
2.rs 875ms 0.1ms 13.6MB 860ms 0ms wasmedgec 0.8.2
2.rs 1005ms 0.6ms 12.2MB 993ms 0ms wasmtime 0.30.0
2.rs 1009ms 0.6ms 21.8MB 993ms 0ms wasmer/Cranelift 2.0.0
2.rs 1195ms 22ms 35.8MB 1273ms 3ms deno 1.15.1
2.rs 1302ms 6.4ms 44.1MB 1323ms 13ms node 14.18.0
2.rs 4322ms 333ms 316.2MB 5103ms 220ms wasm/graal 21.2.0

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.rs 65ms 3.0ms 21.4MB 53ms 0ms wasmer/LLVM 2.0.0
2.rs 70ms 1.0ms 13.6MB 57ms 3ms wasmedgec 0.8.2
2.rs 97ms 44ms 17.4MB 100ms 3ms wasmtime 0.30.0
2.rs 99ms 46ms 30.2MB 100ms 3ms wasmer/Cranelift 2.0.0
2.rs 155ms 0.8ms 36.1MB 240ms 10ms deno 1.15.1
2.rs 167ms 0.9ms 43.0MB 180ms 17ms node 14.18.0
2.rs 1224ms 268ms 313.0MB 1873ms 190ms wasm/graal 21.2.0