Skip to content

Instantly share code, notes, and snippets.

@andrewrk
Last active July 10, 2022 09:14
Show Gist options
  • Save andrewrk/1bcfb2e9a4be844c29bfe11f07af171b to your computer and use it in GitHub Desktop.
Save andrewrk/1bcfb2e9a4be844c29bfe11f07af171b to your computer and use it in GitHub Desktop.
some measurements of zig self-hosted compiler perf

Building a debug build of Zig:

zig build -Dskip-install-lib-files

Measurements taken on:

  • Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  • 0.10.0-dev.2381+39ebfedd2

stage1

stage1-release/bin/zig build -p stage2 -Dskip-install-lib-files
  • Wall clock: 34.5s
  • Peak RSS: 8096 MiB

stage2

stage2-release/bin/zig build -p stage3 -Dskip-install-lib-files
  • Wall clock: 35.4s
  • Peak RSS: 2129 MiB

stage3

(work in progress)

stage3-release/bin/zig build -p stage4 -Dskip-install-lib-files
error: unable to build compiler_rt: AccessDenied
error: unable to build zig's multitarget libc: AccessDenied
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment