From 5a9ad72e45bcac6a0e96af70664b1685e4f10595 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 6 Nov 2026 06:24:42 -0300 Subject: kinds #15, the PDF benches: pdf_scroll_bench and pdf_pointer_bench drive the addon's pane through the core (jobs inline, or BENCH_WORKERS=1 on threads; the pointer bench counts the rows its hover uploads), pdf_bench and pdf_sections_bench, which timed the core's PDF internals, go Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/rollback_bench.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/rollback_bench.zig') diff --git a/test/rollback_bench.zig b/test/rollback_bench.zig index 1260f47e..d734f5cf 100644 --- a/test/rollback_bench.zig +++ b/test/rollback_bench.zig @@ -68,7 +68,7 @@ fn writeFile(path: []const u8, lines: usize) !void { } fn build(s: Session, dir: []const u8, a: std.mem.Allocator) !*pardes.Pardes { - const core = try pardes.Pardes.init(a, .{ .tty_only = true, .image_allocator = a, .pdf_allocator = a, .tree_sitter_allocator = a, .frame_allocator = a }); + const core = try pardes.Pardes.init(a, .{ .tty_only = true, .image_allocator = a, .tree_sitter_allocator = a, .frame_allocator = a }); core.update(.{ .resize = .{ .cols = 200, .rows = 60 } }); pump(core); // The shell: pane 0 of a tty boot, its output fed as a pty's. @@ -203,7 +203,7 @@ pub fn main(init: std.process.Init) !void { const bytes = try pardes.dump.dumpBytes(core); const t1 = nowNs(); dump_len = bytes.len; - const loaded = try pardes.dump.load(gpa, .{ .tty_only = true, .image_allocator = gpa, .pdf_allocator = gpa, .tree_sitter_allocator = gpa, .frame_allocator = gpa }, bytes, null); + const loaded = try pardes.dump.load(gpa, .{ .tty_only = true, .image_allocator = gpa, .tree_sitter_allocator = gpa, .frame_allocator = gpa }, bytes, null); y.* = nowNs() - t1; x.* = t1 - t0; loaded.deinit(); -- cgit v1.3