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 Rust 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
rust 1.rs 1.6ms 0.3ms 1.9MB 0ms 0ms rustc 1.98.1
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
rust 4-i.rs 221ms 1.1ms 1.1MB 210ms 0ms rustc 1.98.1
rust 7-i.rs 333ms 4.8ms 1.1MB 320ms 0ms rustc 1.98.1
rust 1.rs 361ms 3.0ms 1.1MB 350ms 0ms rustc 1.98.1
rust 2.rs 484ms 2.9ms 1.1MB 473ms 0ms rustc 1.98.1
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
rust 4-i.rs 24ms 0.3ms 1.1MB 17ms 0ms rustc 1.98.1
rust 7-i.rs 36ms 0.4ms 1.1MB 23ms 0ms rustc 1.98.1
rust 1.rs 39ms 0.7ms 1.1MB 30ms 0ms rustc 1.98.1
rust 2.rs 52ms 0.8ms 1.1MB 43ms 0ms rustc 1.98.1
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
rust 2.rs 656ms 18ms 6.6MB 640ms 0ms rustc 1.98.1
rust 1.rs 1035ms 16ms 40.8MB 1010ms 10ms rustc 1.98.1
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
rust 2.rs 129ms 12ms 2.8MB 117ms 0ms rustc 1.98.1
rust 1.rs 212ms 36ms 11.7MB 193ms 0ms rustc 1.98.1
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