Unclaimed project
Are you a maintainer of zBench? Claim this project to take control of your public changelog and roadmap.
run Function SignatureThe run function signature for benchmark implementations has changed to use pointer receivers instead of value receivers.
Before:
pub fn run(self: MyBenchmark, _: std.mem.Allocator) void {
// ...
}
After:
pub fn run(self: *MyBenchmark, _: std.mem.Allocator) void {
// ...
}
Migration Guide:
Update all benchmark struct run function signatures to accept self as a pointer (*MyBenchmark) instead of a value (MyBenchmark).
Related: Issue #131
Full Changelog: https://github.com/hendriknielaender/zBench/compare/v0.11.1...v0.12.0