Skip to content

Commit 70053a4

Browse files
committed
cleanup benchmarks
1 parent 10076c9 commit 70053a4

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

bench/main.zig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ pub fn main() !void {
4242
false => "generic (avx2/neon)",
4343
}});
4444

45-
if (filter.run(.falcon)) {
46-
try falcon.run();
45+
inline for (@typeInfo(Filter).@"enum".fields[1..]) |field| {
46+
if (filter.run(@field(Filter, field.name))) {
47+
try @field(@This(), field.name).run();
48+
}
4749
}
4850
}
4951

build.zig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,11 @@ fn addTable(
164164
});
165165
mod.addOptions("build_options", options);
166166

167-
const generator = b.addExecutable(.{ .name = name, .root_module = mod });
167+
const generator = b.addExecutable(.{
168+
.name = name,
169+
.root_module = mod,
170+
.use_llvm = true,
171+
});
168172
const run_generator = b.addRunArtifact(generator);
169173
const output = run_generator.captureStdOut();
170174
// TODO: Working around Zig 0.15 bug here, update when it's fixed.

0 commit comments

Comments
 (0)