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.007s 0.003s 0.062s
2 Java 0.566s 0.002s 1.382s
3 JavaScript (Bun) 1.057s 0.082s 2.248s
4 JavaScript (Node) 1.409s 0.079s 3.286s
5 JavaScript (Deno) 1.593s 0.103s 3.971s
6 Go 1.921s 1.180s 3.502s
7 C (GCC) 2.328s 1.205s 3.747s
8 C++ (Clang++) 2.596s 1.328s 4.386s
9 C (Clang) 2.627s 1.290s 3.945s
10 C++ (G++) 2.773s 1.211s 4.779s
11 Kotlin (Native) 4.123s 2.346s 6.428s
12 Rust 10.127s 5.806s 11.691s
13 PHP 15.101s 2.049s 39.448s
14 Ruby 16.981s 5.554s 115.338s
15 Python 19.971s 11.637s 156.258s

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times