Benchmarks

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.863µs 41.347µs 57.960µs
2 C (Clang) 47.960µs 42.473µs 75.632µs
3 Rust 145.120µs 137.000µs 206.000µs
4 C++ (G++) 164.960µs 153.000µs 223.000µs
5 Go 259.440µs 201.000µs 914.000µs
6 PHP 500.983µs 457.282µs 658.298µs
7 JavaScript (Deno) 683.344µs 563.552µs 1,949.126µs
8 C++ (Clang++) 736.216µs 672.005µs 1,007.460µs
9 JavaScript (Node) 910.114µs 672.929µs 3,157.774µs
10 Python 2,532.080µs 897.000µs 34,997.000µs
11 Java 17,659.616µs 601.426µs 390,485.225µs
12 Kotlin (Native) 20,842.480µs 2,832.193µs 385,665.286µs
13 JavaScript (Bun) 32,950.606µs 1,514.775µs 752,416.797µs
14 Ruby 46,790.360µs 990.000µs 1,140,457.000µs
15 Kotlin (JVM) 61,782.442µs 1,811.658µs 812,435.243µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times