Benchmarks

Linux Benchmark: Array Assignment (1K)

Assigns 1,000 elements to an array.

array 1K

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 D 0.912µs 0.700µs 1.300µs
2 C (Clang) 1.410µs 1.273µs 1.713µs
3 C++ (Clang++) 1.470µs 1.313µs 1.763µs
4 C (GCC) 1.680µs 1.443µs 1.934µs
5 C++ (G++) 1.729µs 1.493µs 1.954µs
6 GraalVM 3.403µs 2.765µs 4.208µs
7 Go 4.998µs 3.957µs 22.642µs
8 Zig 6.932µs 6.042µs 7.635µs
9 Rust 10.828µs 9.348µs 14.327µs
10 Java 18.929µs 16.771µs 20.819µs
11 JavaScript (Bun) 362.449µs 326.332µs 425.639µs
12 JavaScript (Deno) 729.256µs 70.683µs 16,171.773µs
13 Kotlin (Native) 1,986.540µs 142.738µs 45,777.217µs
14 JavaScript (Node) 3,722.769µs 53.941µs 47,142.528µs
15 PHP 4,162.933µs 235.171µs 64,702.072µs
16 Ruby 10,218.379µs 181.491µs 75,782.150µs
17 Python 10,531.055µs 468.329µs 66,580.845µs
18 Kotlin (JVM) 19,541.878µs 723.518µs 93,024.308µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times