Benchmarks

Windows 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 (Clang) 48.896µs 40.800µs 134.700µs
2 C (GCC) 134.080µs 35.900µs 2,351.900µs
3 GraalVM 185.324µs 173.500µs 230.500µs
4 Rust 241.160µs 179.400µs 364.500µs
5 D 281.652µs 211.000µs 657.900µs
6 C++ (Clang++) 370.504µs 234.600µs 1,851.700µs
7 C++ (G++) 553.652µs 210.200µs 5,178.500µs
8 JavaScript (Node) 723.480µs 625.400µs 844.800µs
9 PHP 735.568µs 327.300µs 7,586.500µs
10 Zig 1,266.004µs 888.600µs 5,185.400µs
11 Python 1,620.788µs 1,292.500µs 5,518.500µs
12 Ruby 1,750.792µs 1,206.300µs 11,137.300µs
13 JavaScript (Deno) 2,184.880µs 882.000µs 8,363.200µs
14 Go 2,530.916µs 0.000µs 48,294.900µs
15 Kotlin (JVM) 7,739.964µs 1,907.900µs 80,500.000µs
16 Kotlin (Native) 9,419.368µs 5,940.400µs 40,863.600µs
17 Java 12,639.660µs 914.700µs 243,146.100µs
18 JavaScript (Bun) 84,308.852µs 34,546.600µs 181,169.500µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times