Benchmarks

Linux Benchmark: List Creation (10K)

Creats a list with 10,000 elements. List implementations are initialized to their default capacity.

list array 10K

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 C (GCC) 31.923µs 30.257µs 36.578µs
2 C (Clang) 36.160µs 32.561µs 49.844µs
3 Go 84.837µs 76.173µs 98.074µs
4 GraalVM 612.177µs 218.750µs 9,205.150µs
5 Rust 1,536.647µs 144.422µs 23,229.940µs
6 C++ (Clang++) 13,145.001µs 164.539µs 58,217.531µs
7 C++ (G++) 13,895.481µs 205.215µs 67,786.760µs
8 JavaScript (Deno) 14,269.147µs 815.820µs 48,784.783µs
9 Java 20,071.275µs 950.303µs 67,165.879µs
10 JavaScript (Bun) 21,663.287µs 2,304.285µs 60,191.414µs
11 D 23,400.948µs 417.000µs 81,496.200µs
12 Python 23,435.459µs 1,155.308µs 72,117.673µs
13 JavaScript (Node) 29,088.442µs 677.529µs 71,775.079µs
14 Zig 33,398.272µs 1,281.224µs 74,283.319µs
15 Ruby 38,895.770µs 1,284.810µs 83,492.929µs
16 PHP 58,305.526µs 2,398.019µs 86,201.757µs
17 Kotlin (Native) 64,136.792µs 30,560.270µs 131,916.303µs
18 Kotlin (JVM) 75,625.684µs 47,757.568µs 135,246.581µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times