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 30.200µs 23.000µs 52.000µs
2 Ruby 42.120µs 35.000µs 72.000µs
3 Rust 49.960µs 31.000µs 384.000µs
4 JavaScript (Node) 50.002µs 35.856µs 102.438µs
5 D 71.712µs 59.100µs 117.700µs
6 PHP 72.618µs 56.702µs 256.151µs
7 C++ (G++) 87.520µs 52.000µs 603.000µs
8 C (GCC) 152.386µs 120.953µs 381.129µs
9 C (Clang) 154.467µs 122.827µs 456.474µs
10 GraalVM 173.766µs 130.418µs 556.336µs
11 C++ (Clang++) 197.154µs 163.799µs 268.238µs
12 JavaScript (Bun) 197.616µs 82.332µs 1,286.659µs
13 Kotlin (Native) 263.236µs 139.045µs 1,374.006µs
14 Python 299.320µs 61.000µs 5,687.000µs
15 Zig 388.720µs 305.000µs 695.000µs
16 Java 433.035µs 342.593µs 671.740µs
17 JavaScript (Deno) 668.661µs 487.706µs 1,922.430µs
18 Kotlin (JVM) 956,012.430µs 25,352.202µs 2,025,586.981µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times