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 Haxe 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
haxe 1.hx 2.5ms 0.4ms 4.9MB 0ms 0ms haxe/cpp 4.3.3
codon 1.py 9.9ms 0.8ms 10.9MB 7ms 3ms codon 0.20.2

nbody

Input: 5000000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
haxe 3.hx 1936ms 75ms 27.9MB 2257ms 33ms haxe/cpp 4.3.3
codon 1.py 2621ms 35ms 11.0MB 2900ms 0ms codon 0.20.2
haxe 2.hx 10095ms 51ms 4.0MB 10083ms 0ms haxe/cpp 4.3.3
haxe 1.hx 13236ms 113ms 3.9MB 13220ms 0ms haxe/cpp 4.3.3

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
haxe 3.hx 204ms 8.1ms 25.9MB 213ms 13ms haxe/cpp 4.3.3
codon 1-m.py 357ms 59ms 11.0MB 610ms 0ms codon 0.20.2
haxe 2.hx 1019ms 9.8ms 3.9MB 1010ms 0ms haxe/cpp 4.3.3
haxe 1.hx 1354ms 71ms 4.0MB 1340ms 0ms haxe/cpp 4.3.3

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
codon 2.py 1317ms 10ms 110.4MB 1597ms 10ms codon 0.20.2
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
codon 1-m.py 358ms 6.6ms 20.7MB 643ms 0ms codon 0.20.2