Z vs Go

How fast Z, a statically typed language with an LLVM native backend, runs the same programs as Go. Each workload is written as an honest equivalent in both languages, validated against identical output, and run interleaved on the same host.

Relative to Go

Release build time

Wall-clock time to produce an optimized executable (Z: z build --release; Go: go build with a warm standard-library cache). Log scale.

Source code

The exact programs that were timed. Both print the same validated output; Go versions follow the Z algorithm statement for statement. Tap a workload name in the charts or table to open it here.

All measurements

Medians. Times in milliseconds, memory is peak resident set size.