Haxe Versus C++ 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
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
cpp 1.cpp 2.1ms 0.7ms 0.7MB 0ms 0ms zigc++ 0.9.0-dev
cpp 1.cpp 2.4ms 0.6ms 1.6MB 0ms 0ms g++ 11.2.0
cpp 1.cpp 2.5ms 0.4ms 1.8MB 0ms 0ms clang++ 13.0.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
cpp 0.cpp 187ms 1.5ms 1.7MB 177ms 0ms g++ 11.2.0
cpp 0.cpp 208ms 1.6ms 0.7MB 200ms 0ms zigc++ 0.9.0-dev
cpp 0.cpp 211ms 0.3ms 1.8MB 200ms 0ms clang++ 13.0.1
cpp 1.cpp 407ms 1.1ms 1.0MB 400ms 0ms zigc++ 0.9.0-dev
cpp 1.cpp 435ms 0.9ms 1.7MB 427ms 0ms g++ 11.2.0
cpp 1.cpp 436ms 5.4ms 1.8MB 427ms 0ms clang++ 13.0.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
cpp 0.cpp 21ms 0.8ms 1.6MB 10ms 0ms g++ 11.2.0
cpp 0.cpp 23ms 1.2ms 0.7MB 10ms 0ms zigc++ 0.9.0-dev
cpp 0.cpp 24ms 0.9ms 1.7MB 10ms 0ms clang++ 13.0.1
cpp 1.cpp 41ms 1.2ms 0.9MB 30ms 0ms zigc++ 0.9.0-dev
cpp 1.cpp 46ms 0.3ms 1.7MB 37ms 0ms g++ 11.2.0
cpp 1.cpp 47ms 1.2ms 1.8MB 37ms 0ms clang++ 13.0.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
cpp 0.cpp 6.1ms 1.0ms 1.7MB 0ms 0ms g++ 11.2.0
cpp 0.cpp 6.8ms 0.5ms 0.7MB 0ms 0ms zigc++ 0.9.0-dev
cpp 0.cpp 6.9ms 0.8ms 1.8MB 0ms 0ms clang++ 13.0.1
cpp 1.cpp 10ms 1.1ms 0.9MB 0ms 0ms zigc++ 0.9.0-dev
cpp 1.cpp 11ms 0.7ms 1.6MB 0ms 0ms g++ 11.2.0
cpp 1.cpp 12ms 1.2ms 1.8MB 0ms 0ms clang++ 13.0.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
cpp 8.cpp 18ms 0.2ms 1.7MB 20ms 0ms g++ 11.2.0
cpp 7.cpp 18ms 0.3ms 4.1MB 23ms 0ms clang++ 13.0.1
cpp 7.cpp 18ms 0.9ms 1.7MB 23ms 0ms g++ 11.2.0
cpp 8.cpp 18ms 0.3ms 4.1MB 30ms 0ms clang++ 13.0.1
cpp 6.cpp 33ms 1.0ms 4.1MB 50ms 0ms clang++ 13.0.1
cpp 6.cpp 33ms 0.1ms 1.7MB 50ms 0ms g++ 11.2.0
haxe 1.hx 718ms 3.8ms 3.6MB 710ms 0ms haxe/hashlink 1.12.0