Benchmarks

Windows 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.008s 0.003s 0.080s
2 Java 0.032s 0.002s 0.113s
3 GraalVM 0.135s 0.084s 0.204s
4 C (GCC) 0.237s 0.116s 0.427s
5 JavaScript (Deno) 0.246s 0.164s 0.344s
6 D 0.264s 0.157s 0.567s
7 JavaScript (Node) 0.336s 0.227s 0.544s
8 C++ (G++) 0.373s 0.221s 0.759s
9 C (Clang) 0.382s 0.213s 0.771s
10 C++ (Clang++) 0.387s 0.225s 0.791s
11 JavaScript (Bun) 0.534s 0.302s 0.833s
12 Zig 0.711s 0.482s 1.122s
13 Kotlin (Native) 1.543s 0.609s 19.601s
14 Go 2.036s 1.224s 3.404s
15 Rust 2.114s 1.449s 4.241s
16 PHP 4.098s 3.104s 6.158s
17 Ruby 16.113s 7.195s 25.876s
18 Python 25.751s 8.557s 45.676s

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times