language-bench

Startup

Time to start the runtime and print one line.

startup

What is measured

The program prints `ok` and exits. This measures process start-up, runtime initialisation and (for managed runtimes) module loading - the fixed cost paid by every other benchmark.

Pseudocode

print "ok"
exit

Reveals: Binary start-up and runtime initialisation overhead.

Caveat: Dominated by dynamic linking, container filesystem and the OS; not a measure of throughput. Excluded from aggregate speed scores.

Results (newest release of each language)

Language / buildTime (× vs best)
C 16 · gcc -O2596 µs (1.00×)
C 16 · gcc -O3596 µs (1.01×)
C 16 · gcc -O3 -march=nativedefault604 µs (1.02×)
Go 1.27 · GOAMD64=v3 go build1.3 ms (2.13×)
Go 1.27 · go builddefault1.3 ms (2.23×)
Python 3.15 · python3default25.8 ms (43.6×)

Click a language to see the source code, build flags, every session and how the number was computed.