All Java benchmarks

Current benchmark data was generated on Tue Jan 18 2022, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][2 cores] Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz

binarytrees

Input: 18

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.java 676ms 6.7ms 405.0MB 647ms 103ms openjdk 18
2.java 704ms 22ms 405.5MB 667ms 113ms openjdk 17.0.1
2.java 748ms 4.8ms 489.7MB 663ms 160ms openjdk/parallelgc 17.0.1
2.java 1042ms 46ms 682.2MB 790ms 147ms graal/jvm 17.0.1
2.java 1310ms 46ms 1079.9MB 840ms 660ms openjdk/zgc 17.0.1

Input: 14

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.java 103ms 3.7ms 90.1MB 93ms 20ms openjdk 17.0.1
2.java 105ms 0.6ms 69.0MB 97ms 23ms openjdk/parallelgc 17.0.1
2.java 115ms 12ms 88.7MB 93ms 20ms openjdk 18
2.java 183ms 6.6ms 134.3MB 113ms 80ms openjdk/zgc 17.0.1
2.java 464ms 8.7ms 147.3MB 183ms 37ms graal/jvm 17.0.1

edigits

Input: 250001

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 991ms 23ms 190.0MB 1327ms 123ms openjdk 18
1.java 1050ms 131ms 289.4MB 1583ms 140ms openjdk/parallelgc 17.0.1
1.java 1100ms 12ms 439.3MB 1203ms 237ms graal/jvm 17.0.1
1.java 1252ms 40ms 437.3MB 1607ms 347ms openjdk/zgc 17.0.1
1.java 1261ms 116ms 178.9MB 1930ms 130ms openjdk 17.0.1

Input: 100000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 505ms 83ms 129.5MB 713ms 60ms openjdk 18
1.java 512ms 52ms 122.8MB 743ms 63ms openjdk 17.0.1
1.java 521ms 32ms 108.5MB 733ms 70ms openjdk/parallelgc 17.0.1
1.java 616ms 32ms 209.1MB 780ms 177ms openjdk/zgc 17.0.1
1.java 770ms 77ms 250.7MB 620ms 97ms graal/jvm 17.0.1

fannkuch-redux

Input: 11

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 1713ms 18ms 106.5MB 3267ms 30ms graal/jvm 17.0.1
1.java 1753ms 11ms 41.1MB 3373ms 13ms openjdk/parallelgc 17.0.1
1.java 1776ms 34ms 37.9MB 3310ms 63ms openjdk/zgc 17.0.1
1.java 1782ms 18ms 37.5MB 3420ms 17ms openjdk 18
1.java 1803ms 100ms 38.0MB 3467ms 17ms openjdk 17.0.1

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 230ms 1.1ms 38.2MB 360ms 10ms openjdk 17.0.1
1.java 237ms 4.5ms 39.3MB 380ms 17ms openjdk/parallelgc 17.0.1
1.java 252ms 2.1ms 37.1MB 400ms 13ms openjdk 18
1.java 282ms 7.2ms 35.1MB 390ms 57ms openjdk/zgc 17.0.1
1.java 606ms 13ms 91.3MB 487ms 23ms graal/jvm 17.0.1

fasta

Input: 2500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.java 575ms 35ms 38.5MB 523ms 23ms openjdk 17.0.1
4.java 582ms 39ms 37.2MB 530ms 27ms openjdk/parallelgc 17.0.1
4.java 617ms 68ms 36.9MB 507ms 20ms openjdk 18
4.java 618ms 40ms 36.3MB 537ms 73ms openjdk/zgc 17.0.1
4.java 1060ms 37ms 184.0MB 877ms 90ms graal/jvm 17.0.1

Input: 250000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.java 120ms 5.0ms 37.9MB 113ms 17ms openjdk 17.0.1
4.java 120ms 3.9ms 36.6MB 113ms 13ms openjdk 18
4.java 131ms 12ms 37.3MB 130ms 13ms openjdk/parallelgc 17.0.1
4.java 176ms 2.8ms 40.3MB 140ms 50ms openjdk/zgc 17.0.1
4.java 463ms 9.5ms 79.8MB 187ms 20ms graal/jvm 17.0.1

helloworld

Input: QwQ

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 45ms 2.0ms 36.6MB 24ms 10ms openjdk 17.0.1
1.java 46ms 4.0ms 33.9MB 24ms 10ms openjdk 18
1.java 49ms 1.4ms 38.2MB 30ms 6ms loom 19
1.java 55ms 2.3ms 35.0MB 44ms 6ms openjdk/parallelgc 17.0.1
1.java 69ms 1.2ms 55.1MB 62ms 14ms graal/jvm 17.0.1
1.java 100ms 1.1ms 36.1MB 38ms 58ms openjdk/zgc 17.0.1

knucleotide

Input: 2500000_in

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.java 1436ms 11ms 141.0MB 2620ms 47ms openjdk 18
3.java 1452ms 19ms 140.0MB 2637ms 40ms openjdk 17.0.1
3.java 1521ms 101ms 116.8MB 2787ms 40ms openjdk/parallelgc 17.0.1
3.java 1563ms 46ms 234.8MB 2873ms 73ms graal/jvm 17.0.1
3.java 1591ms 35ms 172.4MB 2743ms 137ms openjdk/zgc 17.0.1

Input: 250000_in

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.java 385ms 7.0ms 88.6MB 643ms 20ms openjdk/parallelgc 17.0.1
3.java 410ms 16ms 91.3MB 600ms 77ms openjdk/zgc 17.0.1
3.java 416ms 14ms 89.9MB 693ms 33ms openjdk 17.0.1
3.java 440ms 6.8ms 89.0MB 720ms 43ms openjdk 18
3.java 1023ms 41ms 239.8MB 1243ms 70ms graal/jvm 17.0.1

mandelbrot

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.java 2438ms 11ms 49.5MB 4690ms 20ms openjdk/parallelgc 17.0.1
4.java 2438ms 8.7ms 50.6MB 4677ms 17ms openjdk 17.0.1
4.java 2442ms 12ms 50.9MB 4683ms 13ms openjdk 18
4.java 2486ms 5.2ms 49.9MB 4690ms 63ms openjdk/zgc 17.0.1
4.java 2647ms 12ms 130.3MB 5067ms 47ms graal/jvm 17.0.1

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
4.java 158ms 11ms 41.7MB 220ms 10ms openjdk 17.0.1
4.java 166ms 6.4ms 40.1MB 217ms 17ms openjdk 18
4.java 169ms 15ms 43.1MB 233ms 13ms openjdk/parallelgc 17.0.1
4.java 212ms 3.1ms 42.2MB 237ms 50ms openjdk/zgc 17.0.1
4.java 514ms 8.3ms 97.4MB 287ms 30ms graal/jvm 17.0.1

nbody

Input: 5000000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 558ms 1.7ms 37.6MB 567ms 3ms openjdk 18
1.java 558ms 1.4ms 38.7MB 560ms 7ms openjdk 17.0.1
1.java 561ms 5.3ms 37.2MB 563ms 10ms openjdk/parallelgc 17.0.1
1.java 627ms 4.4ms 38.2MB 593ms 53ms openjdk/zgc 17.0.1
1.java 909ms 4.9ms 84.2MB 640ms 23ms graal/jvm 17.0.1

Input: 500000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 113ms 1.8ms 37.5MB 100ms 20ms openjdk 18
1.java 115ms 3.0ms 38.9MB 107ms 10ms openjdk 17.0.1
1.java 122ms 2.2ms 39.5MB 127ms 7ms openjdk/parallelgc 17.0.1
1.java 170ms 2.0ms 40.0MB 127ms 57ms openjdk/zgc 17.0.1
1.java 455ms 0.6ms 84.3MB 193ms 17ms graal/jvm 17.0.1

Input: 100000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 74ms 3.3ms 37.5MB 73ms 7ms openjdk 18
1.java 76ms 4.3ms 38.7MB 67ms 10ms openjdk 17.0.1
1.java 86ms 1.7ms 37.4MB 87ms 10ms openjdk/parallelgc 17.0.1
1.java 129ms 1.7ms 38.3MB 83ms 63ms openjdk/zgc 17.0.1
1.java 415ms 4.8ms 78.4MB 113ms 27ms graal/jvm 17.0.1

nsieve

Input: 12

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.java 3072ms 7.8ms 48.8MB 3087ms 10ms openjdk 17.0.1
2.java 3159ms 8.2ms 47.7MB 3160ms 13ms openjdk/parallelgc 17.0.1
2.java 3192ms 53ms 48.2MB 3207ms 17ms openjdk 18
2.java 3536ms 50ms 45.1MB 3520ms 50ms openjdk/zgc 17.0.1
1.java 3958ms 297ms 80.4MB 3970ms 17ms openjdk 17.0.1

Input: 10

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 674ms 27ms 56.5MB 670ms 20ms openjdk 17.0.1
2.java 689ms 2.4ms 41.6MB 713ms 7ms openjdk/parallelgc 17.0.1
1.java 708ms 31ms 55.4MB 710ms 20ms openjdk/parallelgc 17.0.1
2.java 720ms 61ms 43.2MB 733ms 17ms openjdk 17.0.1
2.java 720ms 5.1ms 42.1MB 747ms 3ms openjdk 18
1.java 748ms 25ms 54.7MB 710ms 63ms openjdk/zgc 17.0.1
2.java 840ms 17ms 40.3MB 820ms 53ms openjdk/zgc 17.0.1
1.java 1092ms 3.5ms 276.7MB 1590ms 93ms graal/jvm 17.0.1
1.java 1200ms 50ms 56.5MB 1213ms 13ms openjdk 18
2.java 1442ms 10ms 327.0MB 2527ms 133ms graal/jvm 17.0.1

pidigits

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 1622ms 51ms 428.4MB 1683ms 140ms graal/jvm 17.0.1
1.java 1711ms 23ms 489.3MB 1723ms 163ms openjdk/parallelgc 17.0.1
1.java 1785ms 3.8ms 193.5MB 1827ms 93ms openjdk 18
1.java 1790ms 43ms 205.4MB 1807ms 100ms openjdk 17.0.1
1.java 2139ms 42ms 846.0MB 1827ms 593ms openjdk/zgc 17.0.1

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 341ms 45ms 99.2MB 393ms 20ms openjdk/parallelgc 17.0.1
1.java 359ms 64ms 108.4MB 403ms 20ms openjdk 17.0.1
1.java 376ms 7.7ms 108.0MB 387ms 37ms openjdk 18
1.java 411ms 37ms 191.9MB 373ms 140ms openjdk/zgc 17.0.1
1.java 680ms 15ms 220.5MB 390ms 80ms graal/jvm 17.0.1

regex-redux

Input: 2500000_in

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.java 4593ms 57ms 600.0MB 8053ms 193ms graal/jvm 17.0.1
3.java 4936ms 51ms 594.6MB 8667ms 137ms openjdk 18

Input: 250000_in

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
3.java 774ms 53ms 107.2MB 1373ms 43ms openjdk 18
3.java 794ms 51ms 105.8MB 1417ms 37ms openjdk 17.0.1
3.java 813ms 65ms 115.2MB 1433ms 40ms openjdk/parallelgc 17.0.1
3.java 831ms 23ms 156.4MB 1320ms 130ms openjdk/zgc 17.0.1
3.java 1092ms 7.1ms 283.3MB 1490ms 103ms graal/jvm 17.0.1

spectral-norm

Input: 8000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.java 3832ms 15ms 39.5MB 7443ms 13ms openjdk/parallelgc 17.0.1
2.java 4328ms 11ms 107.3MB 8350ms 40ms graal/jvm 17.0.1

Input: 4000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.java 1047ms 9.8ms 39.9MB 1953ms 13ms openjdk/parallelgc 17.0.1
2.java 1264ms 11ms 107.9MB 2327ms 23ms graal/jvm 17.0.1
2.java 1712ms 32ms 38.1MB 3173ms 53ms openjdk/zgc 17.0.1
2.java 1731ms 30ms 38.7MB 3300ms 17ms openjdk 17.0.1
2.java 2499ms 88ms 37.5MB 4793ms 20ms openjdk 18

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
2.java 172ms 6.7ms 39.8MB 247ms 10ms openjdk/parallelgc 17.0.1
2.java 228ms 9.3ms 38.8MB 347ms 13ms openjdk 17.0.1
2.java 245ms 4.3ms 37.3MB 387ms 0ms openjdk 18
2.java 275ms 6.6ms 36.3MB 343ms 60ms openjdk/zgc 17.0.1
2.java 509ms 0.7ms 93.6MB 287ms 27ms graal/jvm 17.0.1

coro-prime-sieve

Input: 1000

code time stddev peak-mem mem time(user) time(kernel) compiler compiler/runtime
1.java 912ms 118ms 114.6MB 1447ms 33ms loom 19