Benchmarks

Linux Benchmark: File Read

Performs a read operation on a text file containing five paragraphs of Lorem Ipsum. Note that some operating systems and languages may cache the file, so the first run may be slower than subsequent runs.

file

All-Time Rankings

Rank Language Average Time Best Time Worst Time
1 JavaScript (Node) 32.317µs 21.590µs 62.297µs
2 D 39.040µs 30.000µs 56.200µs
3 PHP 39.473µs 31.770µs 71.183µs
4 Go 43.237µs 36.278µs 55.895µs
5 C++ (G++) 46.239µs 38.272µs 60.734µs
6 C (Clang) 57.759µs 50.254µs 77.745µs
7 Python 63.508µs 50.485µs 81.883µs
8 GraalVM 72.834µs 53.901µs 91.512µs
9 JavaScript (Bun) 105.386µs 79.950µs 467.476µs
10 C (GCC) 767.533µs 45.967µs 17,963.017µs
11 Rust 1,968.519µs 16.521µs 48,658.540µs
12 Kotlin (Native) 2,137.113µs 336.141µs 15,707.854µs
13 Ruby 2,358.098µs 23.063µs 58,142.477µs
14 C++ (Clang++) 2,579.595µs 38.262µs 63,388.767µs
15 Zig 4,294.787µs 443.921µs 50,509.738µs
16 Java 4,854.641µs 333.977µs 50,500.705µs
17 JavaScript (Deno) 25,397.212µs 553.650µs 82,300.183µs
18 Kotlin (JVM) 884,043.143µs 643,611.824µs 1,279,082.970µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times