Results for 38 of 40 languages from this run on actest1.

Unavailable in this run: Hack, Lisp. Follow the run link for failure details.

Haskell VS Java benchmarks

Current benchmark data was generated on Sun Sep 27 2026, full log can be found HERE

CONTRIBUTIONS are WELCOME!

[x86_64][4 cores] Intel(R) Core(TM) i7-3687U CPU @ 2.10GHz (Model 58)

* -m in a file name stands for multi-threading or multi-processing

* -i in a file name stands for direct intrinsics usage. (Usage of simd intrinsics via libraries is not counted)

* -ffi in a file name stands for non-stdlib FFI usage

* (You may find time < time(user) + time(sys) for some non-parallelized programs, the overhead is from GC or JIT compiler, which are allowed to take advantage of multi-cores as that's more close to real-world scenarios.)

helloworld

Input: QwQ

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
haskell 1.hs 13ms 0.6ms 8.5MB 0ms 0ms ghc 9.4.7
java 1.java 93ms 5.3ms 44.3MB 116ms 12ms openjdk 21.0.12
java 1.java 165ms 3.2ms 42.8MB 128ms 88ms openjdk/zgc 21.0.12

pidigits

Input: 8000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
haskell 4.hs 1157ms 6.0ms 21.3MB 1150ms 80ms ghc 9.4.7
java 1.java 5357ms 89ms 417.2MB 6753ms 143ms openjdk 21.0.12
java 1.java 6538ms 393ms 2905.5MB 6313ms 1513ms openjdk/zgc 21.0.12

Input: 4000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
haskell 4.hs 321ms 23ms 19.6MB 303ms 20ms ghc 9.4.7
java 1-m.java 1639ms 92ms 421.6MB 2920ms 107ms openjdk 21.0.12
java 1-m.java 2264ms 50ms 1392.4MB 2540ms 883ms openjdk/zgc 21.0.12