Benchmarks

Mac 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.234ms 0.184ms 0.326ms
2 GraalVM 0.282ms 0.179ms 0.791ms
3 Zig 0.313ms 0.266ms 0.486ms
4 C (GCC) 0.323ms 0.287ms 0.461ms
5 C++ (G++) 0.342ms 0.286ms 0.676ms
6 C++ (Clang++) 0.354ms 0.319ms 0.482ms
7 C (Clang) 0.364ms 0.308ms 0.815ms
8 Go 0.573ms 0.465ms 0.873ms
9 Rust 0.786ms 0.667ms 1.058ms
10 Java 1.303ms 0.848ms 2.891ms
11 JavaScript (Node) 3.799ms 2.441ms 25.772ms
12 JavaScript (Bun) 10.186ms 2.160ms 43.226ms
13 Kotlin (Native) 26.869ms 5.875ms 480.916ms
14 PHP 33.947ms 0.666ms 807.913ms
15 JavaScript (Deno) 39.434ms 1.605ms 923.846ms
16 Ruby 140.688ms 19.289ms 1,246.479ms
17 Kotlin (JVM) 181.024ms 4.369ms 1,582.756ms
18 Python 21,913.133ms 3,703.144ms 59,337.908ms

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times