summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig13
1 files changed, 13 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index cbcd493..c740c5b 100644
--- a/build.zig
+++ b/build.zig
@@ -75,6 +75,19 @@ pub fn build(b: *std.Build) void {
emit.expectStdErrMatch("exit 7");
core.dependOn(&emit.step);
+ const bench = b.addExecutable(.{ .name = "bench-store", .root_module = b.createModule(.{
+ .root_source_file = b.path("bench/store.zig"),
+ .target = target,
+ .optimize = .ReleaseFast,
+ .imports = &.{.{ .name = "ztrace", .module = b.createModule(.{
+ .root_source_file = b.path("src/trace/root.zig"),
+ .target = target,
+ .optimize = .ReleaseFast,
+ .imports = &.{.{ .name = "xitdb", .module = xitdb }},
+ }) }},
+ }) });
+ b.step("bench-store", "What a recording costs a moment").dependOn(&b.addRunArtifact(bench).step);
+
// Each area adds its own artifacts, targets and test step.
@import("build/debugger.zig").add(ctx);
@import("build/agent.zig").add(ctx);