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
c 1.c 1.9ms 0.3ms 0.2MB 0ms 0ms zigcc 0.9.0-dev
c 1.c 2.1ms 0.4ms 2.5MB 0ms 0ms gcc 11.2.0
c 1.c 2.2ms 0.5ms 2.5MB 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
c 8.c 322ms 0.5ms 1.1MB 310ms 0ms gcc 11.2.0
c 8.c 323ms 1.2ms 1.3MB 310ms 0ms clang 13.0.1
c 8.c 368ms 0.2ms 0.3MB 357ms 0ms zigcc 0.9.0-dev
c 5.c 378ms 2.9ms 1.2MB 367ms 0ms gcc 11.2.0
c 2.c 389ms 2.3ms 1.1MB 377ms 0ms gcc 11.2.0
c 5.c 425ms 0.9ms 0.2MB 417ms 0ms zigcc 0.9.0-dev
c 5.c 429ms 1.0ms 1.3MB 417ms 0ms clang 13.0.1
c 2.c 432ms 8.9ms 0.3MB 423ms 0ms zigcc 0.9.0-dev
c 2.c 458ms 6.2ms 1.3MB 443ms 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
c 8.c 34ms 0.3ms 1.2MB 23ms 0ms gcc 11.2.0
c 8.c 35ms 1.9ms 1.3MB 27ms 0ms clang 13.0.1
c 8.c 38ms 0.3ms 0.3MB 30ms 0ms zigcc 0.9.0-dev
c 5.c 39ms 0.7ms 1.2MB 30ms 0ms gcc 11.2.0
c 2.c 40ms 0.9ms 1.3MB 30ms 0ms gcc 11.2.0
c 5.c 44ms 0.2ms 0.2MB 33ms 0ms zigcc 0.9.0-dev
c 5.c 46ms 0.8ms 1.3MB 40ms 0ms clang 13.0.1
c 2.c 47ms 0.1ms 0.3MB 40ms 0ms zigcc 0.9.0-dev
c 2.c 47ms 1.8ms 1.3MB 40ms 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
c 8.c 7.8ms 0.3ms 1.2MB 0ms 0ms gcc 11.2.0
c 8.c 8.9ms 0.2ms 0.3MB 0ms 0ms zigcc 0.9.0-dev
c 8.c 9.3ms 1.1ms 1.3MB 0ms 0ms clang 13.0.1
c 2.c 9.5ms 0.3ms 1.2MB 0ms 0ms gcc 11.2.0
c 5.c 9.5ms 0.5ms 1.2MB 0ms 0ms gcc 11.2.0
c 5.c 10ms 0.7ms 0.2MB 0ms 0ms zigcc 0.9.0-dev
c 2.c 11ms 0.7ms 0.3MB 0ms 0ms zigcc 0.9.0-dev
c 5.c 13ms 2.9ms 1.3MB 0ms 0ms clang 13.0.1
c 2.c 13ms 2.7ms 1.3MB 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
c 4.c 26ms 0.7ms 1.2MB 40ms 0ms gcc 11.2.0
c 6.c 27ms 0.6ms 3.3MB 40ms 0ms clang 13.0.1
c 6.c 28ms 2.7ms 1.2MB 40ms 0ms gcc 11.2.0
c 5.c 33ms 1.8ms 1.3MB 50ms 0ms gcc 11.2.0
c 4.c 34ms 2.5ms 3.1MB 50ms 0ms clang 13.0.1
c 5.c 35ms 1.3ms 3.1MB 60ms 0ms clang 13.0.1
c 3.c 36ms 1.2ms 3.3MB 60ms 0ms clang 13.0.1
c 3.c 38ms 1.2ms 1.1MB 60ms 0ms gcc 11.2.0
haxe 1.hx 718ms 3.8ms 3.6MB 710ms 0ms haxe/hashlink 1.12.0