- 🌸 zig 0.14
zig build -Doptimize=ReleaseFast
zig build
# It will build the project and run it. (do nothing if the project is already built)
zig build run
# or you can run the executable directly
./zig-out/bin/Zaytracer
To take performance measures you can use th perf tool like this:
perf record -g ./Zaytracer
perf report -g 'graph,0.5,caller'
You will need a debug build for that, else you won't have debug symbols.
You can use the hyperfine tool to measure the time of execution of the program.
After zig build -Doptimize=ReleaseFast
:
hyperfine "./zig-out/bin/Zaytracer" --warmup 10