Haxe Versus Wasm benchmarks

Current benchmark data was generated on Sat Nov 27 2021, full log can be found HERE

CONTRIBUTIONS are WELCOME!

fasta

Input: 250000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
wasm 1.rs 295ms 106ms 21.1MB 57ms 67ms wasmer/LLVM 2.0.0
wasm 1.rs 340ms 51ms 28.6MB 93ms 80ms wasmer/Cranelift 2.0.0
wasm 1.rs 354ms 69ms 16.0MB 123ms 70ms wasmtime 0.31.0
wasm 1.rs 395ms 44ms 39.6MB 197ms 80ms node 14.18.1
wasm 1.rs 506ms 18ms 35.5MB 220ms 107ms deno 1.16.3
wasm 1.rs 620ms 92ms 12.2MB 157ms 137ms wasmedgec 0.8.2
haxe 1.hx 1286ms 103ms 3.9MB 767ms 230ms haxe/hashlink 1.12.0

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
haxe 1.hx 5.0ms 2.1ms 3.1MB 0ms 0ms haxe/hashlink 1.12.0
wasm 1.rs 8.1ms 0.6ms 21.4MB 0ms 0ms wasmer/LLVM 2.0.0
wasm 1.rs 12ms 1.5ms 31.6MB 0ms 0ms wasm/graal 21.3.0
wasm 1.rs 14ms 1.7ms 12.0MB 0ms 0ms wasmedgec 0.8.2
wasm 1.rs 18ms 23ms 14.7MB 90ms 0ms wasmtime 0.31.0
wasm 1.rs 18ms 23ms 29.0MB 80ms 10ms wasmer/Cranelift 2.0.0
wasm 1.rs 30ms 0.9ms 32.2MB 18ms 4ms deno 1.16.3
wasm 1.rs 76ms 2.3ms 40.0MB 88ms 2ms node 14.18.1

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
wasm 2.rs 446ms 1.5ms 13.6MB 433ms 0ms wasmedgec 0.8.2
wasm 2.rs 462ms 2.8ms 21.0MB 450ms 0ms wasmer/LLVM 2.0.0
wasm 1.rs 480ms 7.3ms 13.5MB 467ms 0ms wasmedgec 0.8.2
wasm 1.rs 484ms 0.2ms 20.6MB 470ms 0ms wasmer/LLVM 2.0.0
wasm 1.rs 509ms 7.1ms 22.0MB 500ms 0ms wasmer/Cranelift 2.0.0
wasm 1.rs 513ms 0.2ms 11.2MB 500ms 0ms wasmtime 0.31.0
wasm 2.rs 536ms 12ms 22.0MB 523ms 0ms wasmer/Cranelift 2.0.0
wasm 2.rs 542ms 19ms 11.1MB 530ms 0ms wasmtime 0.31.0
wasm 2.rs 658ms 9.0ms 45.1MB 673ms 13ms node 14.18.1
wasm 1.rs 679ms 5.8ms 44.8MB 690ms 17ms node 14.18.1
wasm 2.rs 859ms 4.8ms 37.1MB 943ms 3ms deno 1.16.3
wasm 1.rs 1243ms 19ms 36.6MB 1323ms 10ms deno 1.16.3
haxe 1.hx 3183ms 4.6ms 3.4MB 3170ms 0ms haxe/hashlink 1.12.0
wasm 1.rs 3986ms 30ms 131.1MB 4047ms 33ms wasm/graal 21.3.0
wasm 2.rs 4518ms 0.7ms 197.4MB 4737ms 73ms wasm/graal 21.3.0

Input: 500000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
wasm 2.rs 53ms 0.1ms 20.8MB 43ms 0ms wasmer/LLVM 2.0.0
wasm 1.rs 56ms 0.9ms 20.8MB 43ms 0ms wasmer/LLVM 2.0.0
wasm 2.rs 58ms 0.9ms 13.9MB 47ms 0ms wasmedgec 0.8.2
wasm 1.rs 59ms 0.3ms 9.4MB 47ms 0ms wasmtime 0.31.0
wasm 1.rs 60ms 1.0ms 22.0MB 50ms 0ms wasmer/Cranelift 2.0.0
wasm 2.rs 62ms 1.9ms 21.9MB 50ms 0ms wasmer/Cranelift 2.0.0
wasm 1.rs 62ms 1.3ms 13.8MB 50ms 0ms wasmedgec 0.8.2
wasm 2.rs 63ms 0.6ms 11.2MB 57ms 0ms wasmtime 0.31.0
wasm 2.rs 115ms 0.7ms 37.3MB 173ms 13ms deno 1.16.3
wasm 2.rs 151ms 0.6ms 44.5MB 170ms 10ms node 14.18.1
wasm 1.rs 153ms 4.2ms 44.5MB 167ms 13ms node 14.18.1
wasm 1.rs 156ms 6.9ms 36.7MB 240ms 10ms deno 1.16.3
haxe 1.hx 322ms 1.1ms 3.3MB 310ms 0ms haxe/hashlink 1.12.0
wasm 1.rs 706ms 1.6ms 131.5MB 803ms 33ms wasm/graal 21.3.0
wasm 2.rs 1110ms 0.7ms 199.6MB 1320ms 87ms wasm/graal 21.3.0

Input: 100000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
wasm 2.rs 17ms 0.7ms 21.4MB 10ms 0ms wasmer/LLVM 2.0.0
wasm 1.rs 17ms 0.7ms 21.3MB 10ms 0ms wasmer/LLVM 2.0.0
wasm 1.rs 20ms 2.7ms 22.2MB 10ms 0ms wasmer/Cranelift 2.0.0
wasm 1.rs 21ms 0.8ms 9.5MB 10ms 0ms wasmtime 0.31.0
wasm 2.rs 21ms 3.1ms 9.4MB 10ms 0ms wasmtime 0.31.0
wasm 2.rs 22ms 2.9ms 22.0MB 10ms 0ms wasmer/Cranelift 2.0.0
wasm 2.rs 24ms 1.6ms 13.6MB 13ms 0ms wasmedgec 0.8.2
wasm 1.rs 24ms 1.7ms 13.6MB 10ms 0ms wasmedgec 0.8.2
wasm 2.rs 50ms 1.9ms 37.0MB 53ms 10ms deno 1.16.3
wasm 1.rs 59ms 3.5ms 36.9MB 60ms 13ms deno 1.16.3
haxe 1.hx 72ms 1.3ms 3.4MB 60ms 0ms haxe/hashlink 1.12.0
wasm 1.rs 105ms 3.1ms 43.2MB 117ms 13ms node 14.18.1
wasm 2.rs 109ms 2.9ms 43.8MB 120ms 13ms node 14.18.1
wasm 1.rs 429ms 24ms 131.1MB 520ms 43ms wasm/graal 21.3.0
wasm 2.rs 807ms 1.5ms 197.5MB 1033ms 67ms wasm/graal 21.3.0

spectral-norm

Input: 1000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
wasm 2.rs 62ms 0.7ms 22.7MB 50ms 0ms wasmer/LLVM 2.0.0
wasm 2.rs 72ms 4.2ms 14.1MB 57ms 0ms wasmedgec 0.8.2
wasm 2.rs 99ms 49ms 31.3MB 103ms 0ms wasmer/Cranelift 2.0.0
wasm 2.rs 100ms 48ms 17.9MB 110ms 0ms wasmtime 0.31.0
wasm 2.rs 163ms 2.9ms 44.9MB 183ms 7ms node 14.18.1
wasm 2.rs 186ms 60ms 37.2MB 250ms 10ms deno 1.16.3
haxe 1.hx 718ms 3.8ms 3.6MB 710ms 0ms haxe/hashlink 1.12.0
wasm 2.rs 783ms 3.7ms 318.7MB 1237ms 130ms wasm/graal 21.3.0