Benchmarks

Mac 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 Go 28.000µs 25.000µs 50.000µs
2 Rust 36.720µs 31.000µs 82.000µs
3 Ruby 39.440µs 37.000µs 44.000µs
4 JavaScript (Node) 41.226µs 35.500µs 94.682µs
5 C++ (G++) 57.920µs 56.000µs 64.000µs
6 PHP 65.894µs 60.079µs 98.423µs
7 Python 73.960µs 67.000µs 113.000µs
8 JavaScript (Bun) 121.206µs 92.626µs 248.895µs
9 C (GCC) 136.073µs 128.514µs 211.568µs
10 C (Clang) 139.697µs 127.994µs 239.189µs
11 Kotlin (Native) 175.408µs 147.668µs 351.060µs
12 C++ (Clang++) 189.191µs 168.431µs 427.133µs
13 Zig 337.560µs 324.000µs 391.000µs
14 JavaScript (Deno) 702.938µs 536.639µs 2,386.788µs
15 Java 738.111µs 350.466µs 6,989.687µs
16 GraalVM 3,362.757µs 135.780µs 79,579.235µs
17 Kotlin (JVM) 820,922.051µs 25,631.121µs 2,331,648.109µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times