Benchmarks

Linux Benchmark: Count to 1 Million

Programs that count to 1 million

number count 1M

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 GraalVM 4.242ms 0.612ms 51.237ms
2 C++ (Clang++) 24.031ms 1.029ms 78.670ms
3 C++ (G++) 28.604ms 0.868ms 94.949ms
4 C (GCC) 32.537ms 0.861ms 66.843ms
5 C (Clang) 35.500ms 0.968ms 64.073ms
6 D 42.363ms 1.351ms 74.497ms
7 Go 44.035ms 2.544ms 80.331ms
8 Kotlin (Native) 60.250ms 30.610ms 117.296ms
9 JavaScript (Deno) 60.931ms 35.078ms 89.803ms
10 Zig 71.196ms 28.298ms 119.953ms
11 JavaScript (Bun) 95.946ms 38.408ms 173.379ms
12 JavaScript (Node) 96.730ms 55.124ms 128.728ms
13 Java 110.618ms 52.302ms 186.737ms
14 Kotlin (JVM) 135.912ms 62.875ms 199.286ms
15 Rust 192.451ms 135.588ms 241.118ms
16 Ruby 1,506.950ms 1,211.850ms 1,915.547ms
17 Python 3,453.717ms 2,793.087ms 4,399.834ms
18 PHP 5,287.316ms 4,441.659ms 6,416.206ms

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times