Benchmarks

Windows Benchmark: 1,000,000 Random Numbers

Programs that generate 1,000,000 random numbers.

random 1M

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 Rust 15.277ms 10.717ms 39.132ms
2 C (GCC) 21.146ms 14.972ms 42.150ms
3 C (Clang) 22.209ms 13.110ms 65.546ms
4 C++ (G++) 23.168ms 15.825ms 46.227ms
5 C++ (Clang++) 24.856ms 14.171ms 71.749ms
6 JavaScript (Deno) 27.981ms 15.505ms 63.547ms
7 GraalVM 46.398ms 24.659ms 112.895ms
8 Go 56.045ms 15.928ms 169.463ms
9 JavaScript (Node) 59.520ms 29.658ms 104.884ms
10 Java 71.572ms 15.329ms 228.566ms
11 D 80.914ms 43.581ms 206.554ms
12 Kotlin (JVM) 117.619ms 20.944ms 554.507ms
13 PHP 118.300ms 57.138ms 223.688ms
14 JavaScript (Bun) 164.202ms 96.745ms 282.589ms
15 Ruby 230.846ms 153.424ms 344.777ms
16 Zig 243.235ms 149.822ms 368.181ms
17 Python 358.340ms 232.308ms 548.051ms
18 Kotlin (Native) 2,781.504ms 1,175.217ms 25,663.375ms

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times