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 | C++ (G++) | 11.447ms | 0.870ms | 71.955ms |
2 | C++ (Clang++) | 14.142ms | 1.024ms | 68.073ms |
3 | C (GCC) | 30.446ms | 0.876ms | 76.945ms |
4 | Go | 30.988ms | 2.569ms | 64.198ms |
5 | C (Clang) | 40.412ms | 1.057ms | 69.107ms |
6 | Kotlin (Native) | 63.563ms | 37.584ms | 118.328ms |
7 | JavaScript (Deno) | 70.585ms | 18.259ms | 132.007ms |
8 | JavaScript (Node) | 73.567ms | 40.546ms | 135.006ms |
9 | Java | 95.440ms | 32.406ms | 164.001ms |
10 | Kotlin (JVM) | 116.943ms | 73.111ms | 180.144ms |
11 | JavaScript (Bun) | 118.476ms | 18.279ms | 238.695ms |
12 | Rust | 237.490ms | 177.351ms | 292.869ms |
13 | Ruby | 1,494.625ms | 1,162.432ms | 1,863.347ms |
14 | Python | 3,369.895ms | 2,976.547ms | 4,271.590ms |
15 | PHP | 5,194.799ms | 3,294.263ms | 6,102.678ms |