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 | C (Clang) | 18.156µs | 12.000µs | 139.400µs |
2 | C++ (G++) | 19.384µs | 15.300µs | 41.000µs |
3 | C (GCC) | 19.536µs | 16.500µs | 58.600µs |
4 | Rust | 20.272µs | 11.000µs | 208.700µs |
5 | Go | 39.684µs | 0.000µs | 992.100µs |
6 | PHP | 81.628µs | 59.000µs | 205.000µs |
7 | C++ (Clang++) | 82.232µs | 11.700µs | 1,674.700µs |
8 | JavaScript (Node) | 93.312µs | 80.700µs | 174.600µs |
9 | JavaScript (Deno) | 175.136µs | 94.400µs | 1,772.400µs |
10 | Python | 181.824µs | 163.400µs | 202.800µs |
11 | Ruby | 189.548µs | 141.200µs | 656.900µs |
12 | Kotlin (Native) | 2,070.968µs | 603.800µs | 18,867.700µs |
13 | Java | 2,771.988µs | 838.600µs | 41,785.500µs |
14 | Kotlin (JVM) | 78,129.576µs | 21,182.800µs | 242,877.400µs |
15 | JavaScript (Bun) | 82,048.048µs | 21,583.300µs | 392,008.400µs |