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 C++ 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
cpp 1.cpp 1.1ms 0.2ms 1.5MB 0ms 0ms g++ 13.3.0
cpp 1.cpp 1.7ms 0.3ms 1.5MB 0ms 0ms clang++ 18.1.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
cpp 0-i.cpp 219ms 0.7ms 1.0MB 210ms 0ms g++ 13.3.0
cpp 0-i.cpp 225ms 20ms 1.6MB 217ms 0ms clang++ 18.1.3
cpp 1.cpp 387ms 4.1ms 1.6MB 377ms 0ms clang++ 18.1.3
cpp 1.cpp 734ms 2.2ms 1.1MB 723ms 0ms g++ 13.3.0
codon 1.py 2621ms 35ms 11.0MB 2900ms 0ms codon 0.20.2

Input: 500000

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
cpp 0-i.cpp 24ms 1.0ms 1.6MB 13ms 0ms clang++ 18.1.3
cpp 0-i.cpp 24ms 0.2ms 1.1MB 10ms 0ms g++ 13.3.0
cpp 1.cpp 42ms 0.7ms 1.5MB 30ms 0ms clang++ 18.1.3
cpp 1.cpp 77ms 0.2ms 1.1MB 70ms 0ms g++ 13.3.0
codon 1-m.py 357ms 59ms 11.0MB 610ms 0ms codon 0.20.2

nsieve

Input: 12

lang code time stddev peak-mem mem time(user) time(sys) compiler compiler/runtime
cpp 1.cpp 796ms 7.4ms 7.5MB 780ms 0ms clang++ 18.1.3
cpp 1.cpp 847ms 19ms 7.1MB 833ms 0ms g++ 13.3.0
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
cpp 1.cpp 160ms 1.7ms 4.1MB 150ms 0ms clang++ 18.1.3
cpp 1.cpp 171ms 8.0ms 3.6MB 160ms 0ms g++ 13.3.0
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