Haxe Versus Java 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
java 4.java 54ms 14ms 5.8MB 33ms 0ms graal/native 21.3.0
java 4.java 118ms 9.4ms 36.6MB 113ms 13ms openjdk 18
java 4.java 120ms 9.3ms 37.4MB 100ms 17ms openjdk 17.0.1
java 4.java 122ms 2.2ms 36.9MB 120ms 13ms openjdk/parallelgc 17.0.1
java 4.java 166ms 1.8ms 36.1MB 123ms 57ms openjdk/zgc 17.0.1
java 4.java 480ms 8.0ms 88.1MB 200ms 33ms graal/jvm 17.0.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
haxe 1.hx 5.0ms 2.1ms 3.1MB 0ms 0ms haxe/hashlink 1.12.0
java 1.java 8.0ms 11ms 6.1MB 0ms 0ms graal/native 21.3.0
java 1.java 48ms 1.9ms 34.6MB 28ms 8ms openjdk 17.0.1
java 1.java 50ms 1.5ms 36.4MB 30ms 10ms loom 18
java 1.java 52ms 3.5ms 33.2MB 26ms 14ms openjdk 18
java 1.java 55ms 1.5ms 35.1MB 42ms 10ms openjdk/parallelgc 17.0.1
java 1.java 73ms 3.4ms 52.6MB 70ms 10ms graal/jvm 17.0.1
java 1.java 104ms 1.7ms 36.2MB 40ms 60ms openjdk/zgc 17.0.1

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
java 1.java 586ms 1.1ms 9.4MB 577ms 0ms graal/native 21.3.0
java 1.java 648ms 1.5ms 37.2MB 647ms 13ms openjdk/parallelgc 17.0.1
java 1.java 652ms 2.3ms 39.0MB 647ms 10ms openjdk 18
java 1.java 654ms 1.8ms 38.4MB 643ms 17ms openjdk 17.0.1
java 1.java 732ms 7.0ms 38.0MB 690ms 57ms openjdk/zgc 17.0.1
java 1.java 977ms 11ms 84.0MB 697ms 33ms graal/jvm 17.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
java 1.java 62ms 0.3ms 9.4MB 50ms 0ms graal/native 21.3.0
java 1.java 124ms 1.1ms 38.7MB 120ms 10ms openjdk 17.0.1
java 1.java 126ms 1.4ms 37.4MB 113ms 17ms openjdk 18
java 1.java 134ms 0.7ms 37.1MB 130ms 13ms openjdk/parallelgc 17.0.1
java 1.java 190ms 8.2ms 38.0MB 143ms 60ms openjdk/zgc 17.0.1
haxe 1.hx 322ms 1.1ms 3.3MB 310ms 0ms haxe/hashlink 1.12.0
java 1.java 468ms 0.4ms 85.3MB 203ms 23ms graal/jvm 17.0.1

Input: 100000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
java 1.java 26ms 19ms 9.4MB 10ms 0ms graal/native 21.3.0
haxe 1.hx 72ms 1.3ms 3.4MB 60ms 0ms haxe/hashlink 1.12.0
java 1.java 78ms 3.5ms 38.8MB 70ms 13ms openjdk 17.0.1
java 1.java 81ms 3.7ms 37.4MB 70ms 13ms openjdk 18
java 1.java 88ms 1.3ms 37.2MB 83ms 13ms openjdk/parallelgc 17.0.1
java 1.java 137ms 3.3ms 39.9MB 93ms 53ms openjdk/zgc 17.0.1
java 1.java 421ms 6.4ms 69.5MB 120ms 23ms graal/jvm 17.0.1

spectral-norm

Input: 1000

lang code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
java 2.java 163ms 12ms 39.5MB 220ms 17ms openjdk/parallelgc 17.0.1
java 2.java 198ms 15ms 9.7MB 340ms 0ms graal/native 21.3.0
java 2.java 200ms 6.8ms 38.8MB 283ms 13ms openjdk 17.0.1
java 2.java 229ms 4.2ms 37.1MB 350ms 7ms openjdk 18
java 2.java 255ms 18ms 38.4MB 300ms 60ms openjdk/zgc 17.0.1
java 2.java 518ms 19ms 90.2MB 280ms 37ms graal/jvm 17.0.1
haxe 1.hx 718ms 3.8ms 3.6MB 710ms 0ms haxe/hashlink 1.12.0