Benchmark: List Creation (100)
Creats a list with 100 elements. List implementations are initialized to their default capacity.
list
array
100
All-Time Rankings
Rank | Language | Average Time | Best Time | Worst Time |
---|---|---|---|---|
1 | Go | 0.000µs | 0.000µs | 0.000µs |
2 | Rust | 7.820µs | 6.900µs | 9.100µs |
3 | C++ (Clang++) | 8.596µs | 8.000µs | 11.500µs |
4 | C++ (G++) | 10.456µs | 8.100µs | 28.100µs |
5 | Python | 17.944µs | 14.800µs | 46.600µs |
6 | Ruby | 27.188µs | 22.300µs | 62.600µs |
7 | JavaScript (Node) | 27.580µs | 22.200µs | 60.600µs |
8 | Java | 35.148µs | 29.700µs | 42.700µs |
9 | PHP | 37.800µs | 10.500µs | 438.800µs |
10 | JavaScript (Deno) | 50.544µs | 32.700µs | 76.700µs |
11 | JavaScript (Bun) | 55.556µs | 44.800µs | 106.700µs |
12 | C (Clang) | 55.584µs | 34.200µs | 245.900µs |
13 | C (GCC) | 87.608µs | 31.700µs | 1,273.700µs |
14 | Kotlin (JVM) | 800.540µs | 638.900µs | 1,156.000µs |
15 | Kotlin (Native) | 1,517.800µs | 730.700µs | 5,444.500µs |