diff options
Diffstat (limited to 'test/lib/build.zig')
| -rw-r--r-- | test/lib/build.zig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lib/build.zig b/test/lib/build.zig index 6f590eda..436517d4 100644 --- a/test/lib/build.zig +++ b/test/lib/build.zig @@ -21,4 +21,14 @@ pub fn build(b: *std.Build) void { }) }); step.dependOn(&b.addRunArtifact(tests).step); } + // What a key costs, a page count and a parse: `zig build bench -- <KiB> <keys>`. + const bench = b.addExecutable(.{ .name = "bench", .root_module = b.createModule(.{ + .target = target, + .optimize = optimize, + .root_source_file = b.path("bench.zig"), + .imports = &.{.{ .name = "pardes-editor", .module = pardes.module("pardes-editor") }}, + }) }); + const run_bench = b.addRunArtifact(bench); + run_bench.addPassthruArgs(); + b.step("bench", "a key typed into the library's editor at a size, its pages and a parse").dependOn(&run_bench.step); } |
