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 | C (GCC) | 1.345µs | 1.162µs | 1.483µs |
2 | C++ (Clang++) | 1.582µs | 1.282µs | 4.027µs |
3 | C (Clang) | 1.684µs | 1.462µs | 1.903µs |
4 | C++ (G++) | 1.818µs | 1.573µs | 2.254µs |
5 | Go | 4.963µs | 3.677µs | 22.372µs |
6 | Java | 17.634µs | 15.429µs | 19.346µs |
7 | JavaScript (Deno) | 514.209µs | 69.711µs | 7,667.156µs |
8 | Kotlin (Native) | 548.959µs | 154.190µs | 9,529.341µs |
9 | JavaScript (Node) | 2,189.553µs | 61.135µs | 46,508.965µs |
10 | Rust | 2,387.432µs | 11.522µs | 59,379.303µs |
11 | Ruby | 3,569.299µs | 168.777µs | 77,340.444µs |
12 | JavaScript (Bun) | 5,021.166µs | 339.998µs | 47,326.741µs |
13 | PHP | 8,265.696µs | 262.472µs | 79,318.235µs |
14 | Python | 9,858.172µs | 465.073µs | 69,360.257µs |
15 | Kotlin (JVM) | 26,764.459µs | 668.635µs | 92,891.425µs |