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 Rust 23.244µs 16.320µs 43.042µs
2 JavaScript (Node) 33.742µs 23.825µs 63.941µs
3 Ruby 34.064µs 24.566µs 49.504µs
4 PHP 39.038µs 33.132µs 49.323µs
5 Go 42.900µs 38.042µs 48.452µs
6 C (Clang) 57.741µs 49.974µs 77.958µs
7 GraalVM 76.515µs 60.495µs 111.803µs
8 JavaScript (Bun) 83.890µs 64.863µs 121.221µs
9 Python 1,875.311µs 55.055µs 35,422.877µs
10 C (GCC) 1,912.405µs 45.446µs 46,544.010µs
11 C++ (G++) 2,660.403µs 38.205µs 65,419.689µs
12 C++ (Clang++) 3,164.922µs 40.647µs 77,951.843µs
13 Zig 3,525.833µs 460.104µs 27,466.356µs
14 Kotlin (Native) 5,403.976µs 352.909µs 53,930.815µs
15 JavaScript (Deno) 8,635.603µs 570.155µs 66,547.300µs
16 Java 10,040.613µs 338.210µs 59,603.865µs
17 Kotlin (JVM) 884,608.095µs 597,208.616µs 1,136,746.769µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times