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 Go 0.000µs 0.000µs 0.000µs
2 C (GCC) 1.296µs 1.100µs 1.500µs
3 C++ (G++) 1.320µs 1.100µs 1.500µs
4 C (Clang) 1.580µs 1.300µs 1.800µs
5 C++ (Clang++) 1.664µs 1.400µs 1.800µs
6 Rust 16.428µs 11.000µs 72.200µs
7 Java 18.236µs 17.000µs 19.600µs
8 PHP 66.276µs 36.500µs 601.800µs
9 JavaScript (Node) 67.800µs 59.800µs 102.200µs
10 JavaScript (Deno) 116.340µs 65.700µs 730.300µs
11 Kotlin (Native) 478.672µs 185.500µs 4,742.200µs
12 Python 1,016.632µs 828.800µs 3,104.500µs
13 Ruby 2,846.732µs 177.000µs 44,798.100µs
14 Kotlin (JVM) 11,262.196µs 771.800µs 136,469.500µs
15 JavaScript (Bun) 75,924.924µs 14,364.400µs 154,969.400µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times