Benchmarks

Windows Benchmark: 1,000 Random Numbers

Programs that generate 1,000 random numbers.

random 1K

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 Rust 11.140µs 9.700µs 16.100µs
2 C (Clang) 17.236µs 12.800µs 46.600µs
3 C (GCC) 17.392µs 14.700µs 39.800µs
4 C++ (Clang++) 19.464µs 13.200µs 149.700µs
5 Go 31.560µs 0.000µs 428.600µs
6 C++ (G++) 39.068µs 14.600µs 565.300µs
7 PHP 63.640µs 46.700µs 89.000µs
8 JavaScript (Node) 85.412µs 69.700µs 115.700µs
9 JavaScript (Deno) 95.012µs 78.300µs 138.900µs
10 D 180.440µs 159.200µs 255.500µs
11 GraalVM 183.440µs 37.800µs 3,446.400µs
12 Python 194.844µs 153.700µs 644.600µs
13 Zig 564.532µs 410.300µs 2,127.100µs
14 Kotlin (Native) 1,029.212µs 617.500µs 3,562.000µs
15 Ruby 1,554.548µs 136.700µs 35,112.700µs
16 Kotlin (JVM) 28,182.776µs 10,383.700µs 131,516.200µs
17 Java 32,312.684µs 909.500µs 513,138.900µs
18 JavaScript (Bun) 73,739.444µs 13,019.900µs 244,791.400µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times