Benchmarks

Windows Benchmark: Array Assignment (100K)

Assigns 100,000 elements to an array.

array 100K

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 D 0.091ms 0.080ms 0.160ms
2 C (Clang) 0.167ms 0.141ms 0.376ms
3 C++ (G++) 0.209ms 0.105ms 1.942ms
4 GraalVM 0.227ms 0.153ms 0.692ms
5 C++ (Clang++) 0.233ms 0.136ms 1.370ms
6 C (GCC) 0.545ms 0.142ms 3.866ms
7 Zig 0.860ms 0.633ms 2.375ms
8 PHP 1.066ms 0.468ms 6.321ms
9 Rust 1.850ms 1.167ms 9.848ms
10 JavaScript (Deno) 2.691ms 1.792ms 8.227ms
11 JavaScript (Node) 3.508ms 2.713ms 4.202ms
12 Go 4.401ms 0.000ms 100.080ms
13 Java 9.735ms 1.592ms 98.537ms
14 Kotlin (Native) 18.439ms 11.099ms 43.833ms
15 Kotlin (JVM) 23.937ms 5.399ms 146.371ms
16 Ruby 40.003ms 23.376ms 111.931ms
17 JavaScript (Bun) 149.534ms 45.692ms 485.405ms
18 Python 16,549.113ms 6,717.286ms 26,462.425ms

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times