Benchmarks

Mac 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.404ms 0.233ms 2.213ms
2 D 1.048ms 0.932ms 2.526ms
3 C++ (Clang++) 1.661ms 1.570ms 2.153ms
4 C++ (G++) 1.664ms 1.577ms 1.990ms
5 C (GCC) 1.692ms 1.574ms 2.028ms
6 Go 1.796ms 1.536ms 5.718ms
7 C (Clang) 1.815ms 1.563ms 5.735ms
8 Zig 2.466ms 2.332ms 2.855ms
9 JavaScript (Node) 4.239ms 2.773ms 12.318ms
10 Kotlin (Native) 6.062ms 2.474ms 58.553ms
11 Rust 6.830ms 5.649ms 11.640ms
12 JavaScript (Deno) 44.774ms 2.452ms 1,009.019ms
13 JavaScript (Bun) 46.377ms 4.132ms 526.007ms
14 Kotlin (JVM) 131.357ms 2.606ms 1,166.875ms
15 Java 143.532ms 2.711ms 1,341.625ms
16 PHP 168.629ms 17.689ms 1,187.389ms
17 Ruby 771.087ms 55.502ms 2,714.920ms
18 Python 1,966.024ms 1,131.546ms 3,448.234ms

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times