Haxe Versus Rust 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
rust 5.rs 59ms 8.2ms 1.4MB 43ms 0ms rustc 1.56.1
rust 1.rs 426ms 83ms 0.7MB 40ms 60ms rustc 1.56.1
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
rust 1.rs 2.4ms 0.8ms 0.7MB 0ms 0ms rustc 1.58.0-nightly
rust 1.rs 3.3ms 2.1ms 1.9MB 0ms 0ms rustc 1.56.1
haxe 1.hx 5.0ms 2.1ms 3.1MB 0ms 0ms haxe/hashlink 1.12.0

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
rust 3.rs 298ms 2.0ms 0.7MB 290ms 0ms rustc 1.58.0-nightly
rust 7.rs 301ms 0.4ms 0.7MB 290ms 0ms rustc 1.56.1
rust 2.rs 393ms 5.1ms 0.7MB 387ms 0ms rustc 1.56.1
rust 1.rs 450ms 6.7ms 0.6MB 440ms 0ms rustc 1.56.1
haxe 1.hx 3183ms 4.6ms 3.4MB 3170ms 0ms haxe/hashlink 1.12.0

Input: 500000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
rust 3.rs 32ms 0.8ms 0.7MB 23ms 0ms rustc 1.58.0-nightly
rust 7.rs 32ms 1.1ms 0.7MB 23ms 0ms rustc 1.56.1
rust 2.rs 42ms 0.9ms 0.7MB 30ms 0ms rustc 1.56.1
rust 1.rs 47ms 0.5ms 0.7MB 37ms 0ms rustc 1.56.1
haxe 1.hx 322ms 1.1ms 3.3MB 310ms 0ms haxe/hashlink 1.12.0

Input: 100000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
rust 3.rs 8.2ms 1.0ms 0.7MB 0ms 0ms rustc 1.58.0-nightly
rust 2.rs 9.8ms 0.6ms 0.7MB 0ms 0ms rustc 1.56.1
rust 7.rs 10ms 4.4ms 0.7MB 0ms 0ms rustc 1.56.1
rust 1.rs 11ms 0.8ms 0.7MB 0ms 0ms rustc 1.56.1
haxe 1.hx 72ms 1.3ms 3.4MB 60ms 0ms haxe/hashlink 1.12.0

spectral-norm

Input: 1000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
rust 7.rs 21ms 2.8ms 0.7MB 23ms 0ms rustc 1.56.1
rust 5.rs 36ms 1.1ms 0.7MB 57ms 0ms rustc 1.56.1
rust 3.rs 41ms 5.5ms 0.7MB 60ms 0ms rustc 1.56.1
rust 2.rs 94ms 0.7ms 0.7MB 87ms 0ms rustc 1.56.1
rust 8.rs 249ms 0.2ms 0.7MB 470ms 0ms rustc 1.58.0-nightly
haxe 1.hx 718ms 3.8ms 3.6MB 710ms 0ms haxe/hashlink 1.12.0