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 | Python | 9.400µs | 8.000µs | 13.000µs |
2 | Go | 11.960µs | 9.000µs | 17.000µs |
3 | Rust | 13.840µs | 11.000µs | 36.000µs |
4 | C++ (G++) | 14.520µs | 12.000µs | 24.000µs |
5 | PHP | 18.155µs | 16.828µs | 25.364µs |
6 | C++ (Clang++) | 18.188µs | 17.474µs | 19.215µs |
7 | JavaScript (Node) | 20.543µs | 17.162µs | 49.584µs |
8 | JavaScript (Bun) | 31.161µs | 27.219µs | 56.690µs |
9 | Ruby | 34.320µs | 19.000µs | 316.000µs |
10 | Java | 35.544µs | 25.351µs | 56.906µs |
11 | JavaScript (Deno) | 35.853µs | 30.658µs | 50.517µs |
12 | C (Clang) | 44.262µs | 41.825µs | 50.649µs |
13 | C (GCC) | 45.214µs | 40.777µs | 66.349µs |
14 | Kotlin (Native) | 92.412µs | 77.694µs | 343.680µs |
15 | Kotlin (JVM) | 72,444.391µs | 491.027µs | 1,011,575.860µs |