Benchmarks

Windows 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 D 111.804µs 99.500µs 160.700µs
2 Ruby 121.256µs 105.500µs 156.200µs
3 C++ (G++) 142.632µs 119.800µs 168.200µs
4 Python 144.072µs 120.500µs 188.200µs
5 Rust 156.364µs 99.900µs 914.000µs
6 Go 195.548µs 0.000µs 2,024.700µs
7 JavaScript (Node) 210.076µs 76.400µs 2,995.000µs
8 PHP 359.932µs 143.600µs 3,886.500µs
9 C (GCC) 377.428µs 178.600µs 3,589.100µs
10 C++ (Clang++) 400.508µs 302.600µs 961.000µs
11 GraalVM 504.768µs 192.400µs 6,656.200µs
12 Kotlin (Native) 622.396µs 419.600µs 3,093.400µs
13 C (Clang) 662.316µs 180.200µs 6,319.100µs
14 Java 751.360µs 473.900µs 2,085.600µs
15 JavaScript (Deno) 999.748µs 711.000µs 2,349.300µs
16 Zig 2,385.676µs 1,444.500µs 9,298.200µs
17 JavaScript (Bun) 3,905.848µs 230.300µs 25,332.700µs
18 Kotlin (JVM) 171,613.340µs 55,537.300µs 521,019.800µs

Average Times

Median Times

Best-Case Scenario Times

Worst-Case Scenario Times