Benchmarks

Linux Benchmark: Count to 100 Million

Programs that count to 100 million

number count 100M

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 Kotlin (JVM) 0.176s 0.107s 0.339s
2 Java 0.234s 0.044s 0.578s
3 GraalVM 1.546s 1.260s 2.051s
4 JavaScript (Deno) 1.927s 1.584s 2.330s
5 C (GCC) 2.009s 1.680s 2.420s
6 C++ (G++) 2.056s 1.693s 2.659s
7 C (Clang) 2.440s 1.845s 2.932s
8 C++ (Clang++) 2.456s 1.852s 3.029s
9 JavaScript (Node) 2.504s 1.922s 2.850s
10 D 3.206s 2.408s 3.917s
11 JavaScript (Bun) 3.568s 2.693s 4.636s
12 Go 5.802s 4.373s 6.624s
13 Kotlin (Native) 7.614s 6.754s 9.068s
14 Zig 7.843s 6.725s 9.469s
15 Rust 15.780s 2.414s 20.749s
16 PHP 18.994s 11.795s 57.941s
17 Python 21.419s 8.199s 191.118s
18 Ruby 21.930s 6.773s 152.593s

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times