Benchmarks

Linux 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 Go 0.302ms 0.258ms 0.490ms
2 C++ (G++) 2.310ms 0.132ms 54.165ms
3 GraalVM 2.730ms 0.252ms 40.185ms
4 C (Clang) 3.381ms 0.313ms 40.646ms
5 C (GCC) 7.811ms 0.144ms 47.900ms
6 Zig 11.290ms 0.608ms 68.341ms
7 PHP 11.963ms 0.608ms 69.708ms
8 D 12.875ms 0.254ms 76.320ms
9 C++ (Clang++) 21.230ms 0.305ms 77.501ms
10 Rust 29.387ms 0.881ms 77.104ms
11 Java 59.331ms 2.016ms 160.007ms
12 JavaScript (Bun) 63.752ms 30.409ms 162.256ms
13 JavaScript (Node) 69.214ms 21.990ms 146.676ms
14 JavaScript (Deno) 72.349ms 21.726ms 136.444ms
15 Kotlin (Native) 111.728ms 71.784ms 149.762ms
16 Kotlin (JVM) 171.246ms 129.090ms 231.017ms
17 Ruby 587.828ms 474.307ms 704.387ms
18 Python 19,982.817ms 4,085.720ms 87,605.911ms

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times