All Java benchmarks

Current benchmark data was generated on Sun Oct 17 2021, full log can be found HERE

CONTRIBUTIONS are WELCOME!

binarytrees

Input: 18

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.java 722ms 14ms 406.7MB 713ms 90ms openjdk 18
2.java 727ms 11ms 492.5MB 677ms 137ms openjdk/parallelgc 17
2.java 747ms 0.1ms 407.7MB 690ms 150ms openjdk 17
2.java 1244ms 169ms 724.7MB 1080ms 273ms graal/jvm 11.0.12
2.java 1445ms 78ms 1210.5MB 943ms 713ms openjdk/zgc 17
2.java 1572ms 8.8ms 297.2MB 1433ms 123ms graal/native 21.2.0

Input: 14

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.java 107ms 3.8ms 69.7MB 100ms 27ms openjdk/parallelgc 17
2.java 111ms 2.3ms 90.7MB 97ms 23ms openjdk 17
2.java 115ms 3.5ms 87.9MB 103ms 17ms openjdk 18
2.java 119ms 19ms 130.2MB 37ms 57ms graal/native 21.2.0
2.java 241ms 29ms 135.7MB 143ms 103ms openjdk/zgc 17
2.java 578ms 79ms 160.7MB 273ms 57ms graal/jvm 11.0.12

edigits

Input: 250001

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 938ms 29ms 176.6MB 1463ms 103ms openjdk 18
1.java 1017ms 37ms 288.9MB 1663ms 127ms openjdk/parallelgc 17
1.java 1109ms 8.1ms 479.2MB 1447ms 260ms graal/jvm 11.0.12
1.java 1163ms 23ms 422.9MB 1590ms 363ms openjdk/zgc 17
1.java 1170ms 45ms 266.3MB 960ms 147ms graal/native 21.2.0
1.java 1388ms 237ms 178.2MB 2210ms 123ms openjdk 17

Input: 100000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 385ms 27ms 170.6MB 240ms 103ms graal/native 21.2.0
1.java 436ms 33ms 109.6MB 663ms 53ms openjdk 18
1.java 470ms 57ms 120.4MB 740ms 67ms openjdk 17
1.java 475ms 73ms 125.7MB 707ms 57ms openjdk/parallelgc 17
1.java 636ms 61ms 236.1MB 833ms 200ms openjdk/zgc 17
1.java 900ms 44ms 290.4MB 767ms 143ms graal/jvm 11.0.12

fannkuch-redux

Input: 11

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 1450ms 2.6ms 37.6MB 2760ms 13ms openjdk 17
1.java 1453ms 20ms 36.5MB 2767ms 10ms openjdk 18
1.java 1455ms 36ms 38.1MB 2777ms 10ms openjdk/parallelgc 17
1.java 1480ms 17ms 105.3MB 2767ms 40ms graal/jvm 11.0.12
1.java 1597ms 39ms 36.7MB 2947ms 57ms openjdk/zgc 17
1.java 2045ms 5.8ms 8.8MB 4000ms 3ms graal/native 21.2.0

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 181ms 19ms 8.7MB 313ms 3ms graal/native 21.2.0
1.java 210ms 2.6ms 37.7MB 323ms 7ms openjdk 17
1.java 212ms 4.3ms 36.1MB 320ms 17ms openjdk 18
1.java 253ms 57ms 37.5MB 407ms 10ms openjdk/parallelgc 17
1.java 272ms 12ms 35.5MB 350ms 60ms openjdk/zgc 17
1.java 629ms 26ms 95.7MB 460ms 53ms graal/jvm 11.0.12

fasta

Input: 2500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.java 498ms 18ms 37.7MB 463ms 20ms openjdk 17
4.java 524ms 20ms 37.8MB 470ms 23ms openjdk/parallelgc 17
4.java 711ms 159ms 36.1MB 580ms 63ms openjdk/zgc 17
4.java 722ms 17ms 36.4MB 437ms 27ms openjdk 18
4.java 1092ms 51ms 151.2MB 947ms 83ms graal/jvm 11.0.12
4.java 1134ms 262ms 5.3MB 1067ms 3ms graal/native 21.2.0

Input: 250000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.java 57ms 13ms 5.3MB 37ms 0ms graal/native 21.2.0
4.java 121ms 6.5ms 38.5MB 123ms 10ms openjdk/parallelgc 17
4.java 127ms 19ms 37.7MB 110ms 13ms openjdk 17
4.java 145ms 18ms 35.9MB 123ms 7ms openjdk 18
4.java 184ms 12ms 38.1MB 120ms 60ms openjdk/zgc 17
4.java 528ms 10ms 91.9MB 233ms 30ms graal/jvm 11.0.12

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 8.4ms 13ms 4.5MB 0ms 0ms graal/native 21.2.0
1.java 52ms 2.9ms 34.0MB 30ms 10ms loom 18
1.java 54ms 11ms 34.4MB 30ms 10ms openjdk 17
1.java 58ms 3.1ms 36.0MB 46ms 8ms openjdk/parallelgc 17
1.java 65ms 24ms 33.4MB 36ms 16ms openjdk 18
1.java 112ms 8.4ms 36.0MB 48ms 58ms openjdk/zgc 17
1.java 422ms 12ms 73.6MB 118ms 24ms graal/jvm 11.0.12

mandelbrot

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.java 2075ms 15ms 50.1MB 3940ms 27ms openjdk 17
4.java 2076ms 8.3ms 48.2MB 3947ms 17ms openjdk 18
4.java 2082ms 11ms 50.9MB 3950ms 27ms openjdk/parallelgc 17
4.java 2116ms 2.1ms 15.4MB 4100ms 0ms graal/native 21.2.0
4.java 2139ms 9.3ms 49.6MB 3973ms 90ms openjdk/zgc 17
4.java 2219ms 6.9ms 111.0MB 4203ms 33ms graal/jvm 11.0.12

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.java 51ms 21ms 10.3MB 60ms 0ms graal/native 21.2.0
4.java 158ms 9.0ms 42.4MB 217ms 7ms openjdk/parallelgc 17
4.java 162ms 7.2ms 39.7MB 207ms 17ms openjdk 18
4.java 177ms 18ms 42.1MB 217ms 13ms openjdk 17
4.java 219ms 13ms 42.1MB 223ms 63ms openjdk/zgc 17
4.java 545ms 5.2ms 96.5MB 317ms 37ms graal/jvm 11.0.12

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 585ms 1.3ms 7.3MB 573ms 0ms graal/native 21.2.0
1.java 649ms 4.6ms 38.5MB 653ms 7ms openjdk/parallelgc 17
1.java 653ms 6.4ms 38.3MB 647ms 10ms openjdk 17
1.java 660ms 9.2ms 37.2MB 653ms 7ms openjdk 18
1.java 750ms 6.1ms 38.2MB 703ms 60ms openjdk/zgc 17
1.java 1003ms 21ms 85.8MB 743ms 17ms graal/jvm 11.0.12

Input: 500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 71ms 16ms 7.3MB 50ms 0ms graal/native 21.2.0
1.java 130ms 5.9ms 38.7MB 130ms 3ms openjdk 17
1.java 134ms 2.6ms 37.2MB 130ms 3ms openjdk 18
1.java 139ms 3.9ms 38.5MB 133ms 17ms openjdk/parallelgc 17
1.java 201ms 7.5ms 39.9MB 143ms 63ms openjdk/zgc 17
1.java 484ms 3.0ms 88.9MB 203ms 37ms graal/jvm 11.0.12

nsieve

Input: 12

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.java 3746ms 13ms 46.9MB 3780ms 23ms openjdk/parallelgc 17
2.java 3775ms 43ms 48.8MB 3787ms 20ms openjdk 17
2.java 3895ms 22ms 47.3MB 3910ms 13ms openjdk 18
2.java 4051ms 70ms 46.4MB 4020ms 67ms openjdk/zgc 17
2.java 4304ms 28ms 329.5MB 5377ms 167ms graal/jvm 11.0.12

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 694ms 26ms 56.3MB 700ms 10ms openjdk 17
1.java 698ms 12ms 54.5MB 697ms 20ms openjdk/parallelgc 17
2.java 796ms 7.4ms 42.8MB 817ms 13ms openjdk/parallelgc 17
2.java 807ms 2.5ms 42.6MB 820ms 13ms openjdk 17
2.java 838ms 6.7ms 41.4MB 847ms 20ms openjdk 18
1.java 852ms 15ms 56.8MB 787ms 80ms openjdk/zgc 17
2.java 921ms 16ms 41.8MB 890ms 60ms openjdk/zgc 17
1.java 1026ms 28ms 55.9MB 1027ms 20ms openjdk 18
1.java 1087ms 9.9ms 24.9MB 1060ms 3ms graal/native 21.2.0
1.java 1116ms 29ms 253.3MB 1547ms 120ms graal/jvm 11.0.12
2.java 1200ms 18ms 263.6MB 1750ms 120ms graal/jvm 11.0.12
2.java 1536ms 27ms 10.0MB 1513ms 0ms graal/native 21.2.0

pidigits

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 1623ms 48ms 622.0MB 1713ms 223ms openjdk/parallelgc 17
1.java 1667ms 49ms 207.1MB 1800ms 120ms openjdk 18
1.java 1903ms 315ms 208.5MB 2057ms 103ms openjdk 17
1.java 1931ms 156ms 716.9MB 2070ms 317ms graal/jvm 11.0.12
1.java 2036ms 34ms 263.8MB 1850ms 153ms graal/native 21.2.0
1.java 2330ms 216ms 1044.7MB 2000ms 713ms openjdk/zgc 17

spectral-norm

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.java 915ms 11ms 39.2MB 1687ms 20ms openjdk/parallelgc 17
2.java 1272ms 45ms 100.4MB 2287ms 47ms graal/jvm 11.0.12
2.java 1401ms 59ms 40.4MB 2647ms 10ms openjdk 17
2.java 1507ms 100ms 40.2MB 2727ms 60ms openjdk/zgc 17
2.java 2107ms 50ms 37.3MB 4000ms 10ms openjdk 18
2.java 2924ms 108ms 8.7MB 5577ms 3ms graal/native 21.2.0

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.java 162ms 11ms 39.2MB 223ms 13ms openjdk/parallelgc 17
2.java 188ms 0.7ms 8.7MB 347ms 0ms graal/native 21.2.0
2.java 199ms 17ms 38.6MB 290ms 13ms openjdk 17
2.java 232ms 9.5ms 37.5MB 350ms 10ms openjdk 18
2.java 286ms 38ms 36.5MB 347ms 73ms openjdk/zgc 17
2.java 576ms 25ms 92.1MB 360ms 40ms graal/jvm 11.0.12

coro-prime-sieve

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.java 921ms 23ms 116.3MB 1230ms 73ms loom 18
1.java 925ms 18ms 116.3MB 1260ms 60ms loom 18