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 | 5.576µs | 3.898µs | 21.160µs |
2 | C++ (G++) | 6.480µs | 5.540µs | 10.610µs |
3 | Python | 15.812µs | 13.114µs | 32.370µs |
4 | Ruby | 19.832µs | 16.691µs | 24.746µs |
5 | JavaScript (Node) | 25.592µs | 20.158µs | 70.392µs |
6 | JavaScript (Bun) | 29.691µs | 25.708µs | 52.539µs |
7 | C (GCC) | 31.222µs | 28.283µs | 39.835µs |
8 | C (Clang) | 34.991µs | 32.701µs | 38.933µs |
9 | PHP | 40.541µs | 33.804µs | 69.230µs |
10 | JavaScript (Deno) | 51.854µs | 29.776µs | 190.418µs |
11 | Rust | 1,328.321µs | 2.635µs | 33,122.286µs |
12 | Java | 1,524.043µs | 30.307µs | 37,140.051µs |
13 | C++ (Clang++) | 1,528.132µs | 5.881µs | 38,035.792µs |
14 | Kotlin (Native) | 6,623.330µs | 967.666µs | 30,060.867µs |
15 | Kotlin (JVM) | 18,605.704µs | 526.558µs | 88,670.735µs |