zig-benchmarks

Installation

Add zig-benchmarks to your build.zig.zon:

zig fetch --save git+https://github.com/zig-utils/zig-benchmarks

Then wire the module up in build.zig:

const zig_bench = b.dependency("zig_bench", .{
    .target = target,
    .optimize = optimize,
});
exe.root_module.addImport("zig_bench", zig_bench.module("zig_bench"));

Requires Zig 0.15.0 or newer.

Or through Pantry:

pantry add zig-benchmarks