Benchmarks

Windows 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.856µs 0.700µs 1.000µs
2 C++ (G++) 1.316µs 1.100µs 1.500µs
3 C (Clang) 1.584µs 1.300µs 1.800µs
4 C++ (Clang++) 1.672µs 1.500µs 1.800µs
5 C (GCC) 4.088µs 1.500µs 63.300µs
6 GraalVM 4.336µs 3.500µs 7.500µs
7 Zig 8.520µs 7.400µs 9.100µs
8 Java 22.680µs 17.200µs 78.100µs
9 Rust 24.440µs 13.400µs 263.200µs
10 PHP 39.480µs 33.100µs 73.200µs
11 Go 40.100µs 0.000µs 1,002.500µs
12 JavaScript (Node) 67.972µs 61.000µs 79.400µs
13 JavaScript (Deno) 96.476µs 64.700µs 629.600µs
14 Ruby 269.496µs 175.200µs 1,347.000µs
15 Kotlin (Native) 278.268µs 194.600µs 1,632.500µs
16 Python 1,008.432µs 831.800µs 2,441.200µs
17 Kotlin (JVM) 1,028.520µs 821.200µs 1,614.800µs
18 JavaScript (Bun) 66,403.432µs 24,696.200µs 138,637.200µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times