diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-06 06:24:42 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-06 11:19:44 -0300 |
| commit | 5a9ad72e45bcac6a0e96af70664b1685e4f10595 (patch) | |
| tree | ea8e0b4fe58debe0f78fde16638f6142f8c671c6 /test/rollback_bench.zig | |
| parent | c1917b949b9580de8bf0977874a210f0266812da (diff) | |
| download | pardes-5a9ad72e45bcac6a0e96af70664b1685e4f10595.tar.gz pardes-5a9ad72e45bcac6a0e96af70664b1685e4f10595.zip | |
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/rollback_bench.zig')
| -rw-r--r-- | test/rollback_bench.zig | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |
