Benchmarks

Mac 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) 44.842µs 38.237µs 68.154µs
2 C (Clang) 47.943µs 37.811µs 119.627µs
3 Rust 155.200µs 130.000µs 253.000µs
4 C++ (G++) 168.120µs 129.000µs 419.000µs
5 Go 239.040µs 173.000µs 417.000µs
6 GraalVM 317.288µs 161.248µs 2,403.216µs
7 D 334.152µs 259.100µs 1,014.100µs
8 PHP 496.732µs 426.903µs 975.735µs
9 C++ (Clang++) 682.124µs 609.501µs 1,051.135µs
10 JavaScript (Node) 685.619µs 372.493µs 5,583.594µs
11 Zig 943.600µs 771.000µs 2,162.000µs
12 JavaScript (Deno) 1,025.730µs 561.472µs 4,095.487µs
13 Python 1,134.800µs 901.000µs 2,498.000µs
14 Java 1,398.286µs 521.399µs 4,233.808µs
15 Kotlin (JVM) 4,089.640µs 1,525.284µs 9,025.727µs
16 Kotlin (Native) 4,529.046µs 2,570.742µs 18,933.803µs
17 JavaScript (Bun) 22,067.866µs 897.609µs 464,084.412µs
18 Ruby 45,228.840µs 924.000µs 1,104,396.000µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times