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

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

Codon 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
codon 1.py 9.9ms 0.8ms 10.9MB 7ms 3ms codon 0.20.2
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

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
java 1.java 836ms 7.8ms 45.3MB 903ms 20ms openjdk 21.0.12
java 1.java 948ms 8.1ms 42.6MB 943ms 97ms openjdk/zgc 21.0.12
java 2.java 2391ms 105ms 668.4MB 2600ms 133ms openjdk 21.0.12
codon 1.py 2621ms 35ms 11.0MB 2900ms 0ms codon 0.20.2
java 2.java 4242ms 39ms 2140.1MB 3463ms 1093ms openjdk/zgc 21.0.12

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
java 1-m.java 192ms 4.7ms 45.4MB 267ms 23ms openjdk 21.0.12
java 1.java 284ms 11ms 45.1MB 267ms 110ms openjdk/zgc 21.0.12
codon 1-m.py 357ms 59ms 11.0MB 610ms 0ms codon 0.20.2
java 2-m.java 470ms 6.5ms 319.0MB 713ms 53ms openjdk 21.0.12
java 2.java 889ms 1.9ms 558.5MB 850ms 327ms openjdk/zgc 21.0.12

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
java 1.java 1105ms 7.1ms 117.6MB 1193ms 27ms openjdk 21.0.12
codon 2.py 1317ms 10ms 110.4MB 1597ms 10ms codon 0.20.2
java 1.java 1321ms 17ms 111.7MB 1293ms 140ms openjdk/zgc 21.0.12
java 2.java 1354ms 46ms 57.9MB 1457ms 20ms openjdk 21.0.12
java 2.java 1474ms 28ms 53.3MB 1470ms 117ms openjdk/zgc 21.0.12
codon 1.py 1510ms 4.1ms 49.9MB 1783ms 10ms codon 0.20.2

Input: 10

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
codon 2-m.py 292ms 4.4ms 29.3MB 570ms 3ms codon 0.20.2
java 1.java 315ms 5.1ms 65.5MB 413ms 17ms openjdk 21.0.12
codon 1-m.py 358ms 6.6ms 20.7MB 643ms 0ms codon 0.20.2
java 2.java 395ms 1.2ms 48.3MB 503ms 10ms openjdk 21.0.12
java 1.java 431ms 36ms 60.2MB 433ms 113ms openjdk/zgc 21.0.12
java 2.java 475ms 3.8ms 47.7MB 473ms 113ms openjdk/zgc 21.0.12