Benchmarks

Windows 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 0.836ms 0.569ms 2.346ms
2 C (GCC) 1.765ms 0.873ms 8.050ms
3 C++ (G++) 1.896ms 1.337ms 5.300ms
4 C++ (Clang++) 2.620ms 1.457ms 9.908ms
5 C (Clang) 2.935ms 1.464ms 9.697ms
6 JavaScript (Node) 3.919ms 2.642ms 5.785ms
7 JavaScript (Deno) 4.334ms 2.785ms 7.942ms
8 Zig 4.573ms 3.140ms 9.175ms
9 Kotlin (JVM) 5.021ms 3.136ms 30.125ms
10 D 5.081ms 0.947ms 44.979ms
11 Kotlin (Native) 5.311ms 2.973ms 11.211ms
12 Rust 10.409ms 8.726ms 18.817ms
13 Java 10.834ms 2.474ms 67.008ms
14 Go 32.026ms 1.771ms 152.282ms
15 PHP 41.982ms 16.130ms 75.739ms
16 Ruby 141.311ms 91.887ms 492.263ms
17 JavaScript (Bun) 147.661ms 69.692ms 313.503ms
18 Python 308.309ms 221.315ms 441.751ms

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times