Benchmarks

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++ (G++) 1.960µs 1.000µs 2.000µs
2 C (GCC) 1.967µs 1.860µs 2.304µs
3 C (Clang) 2.093µs 1.852µs 2.571µs
4 C++ (Clang++) 2.281µs 1.927µs 2.651µs
5 Go 3.920µs 3.000µs 5.000µs
6 Rust 7.720µs 7.000µs 9.000µs
7 Java 8.958µs 8.544µs 9.657µs
8 PHP 65.502µs 55.243µs 216.727µs
9 Kotlin (Native) 72.674µs 68.187µs 101.500µs
10 JavaScript (Deno) 95.399µs 87.342µs 123.947µs
11 JavaScript (Node) 151.187µs 73.309µs 1,461.865µs
12 Ruby 210.320µs 171.000µs 372.000µs
13 Python 412.840µs 321.000µs 980.000µs
14 JavaScript (Bun) 931.092µs 127.129µs 12,038.792µs
15 Kotlin (JVM) 1,821.940µs 649.100µs 17,389.590µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times