Benchmarks

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.014s 0.003s 0.173s
2 Java 0.015s 0.002s 0.079s
3 JavaScript (Deno) 0.258s 0.124s 0.439s
4 C (Clang) 0.264s 0.147s 1.025s
5 C (GCC) 0.291s 0.126s 0.694s
6 JavaScript (Node) 0.292s 0.181s 0.473s
7 C++ (Clang++) 0.443s 0.264s 0.954s
8 C++ (G++) 0.477s 0.281s 1.630s
9 JavaScript (Bun) 0.728s 0.454s 1.051s
10 Kotlin (Native) 1.001s 0.590s 2.643s
11 Go 1.649s 0.934s 3.380s
12 Rust 2.494s 1.732s 3.372s
13 PHP 5.684s 3.640s 9.250s
14 Ruby 14.488s 5.509s 33.587s
15 Python 22.050s 7.751s 46.760s

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times