summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Places.zig25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/Places.zig b/src/Places.zig
index a60a0d65..30c14b46 100644
--- a/src/Places.zig
+++ b/src/Places.zig
@@ -883,31 +883,6 @@ test "places: a big file costs a keystroke its view, the ticks find the rest, an
std.debug.print("places: first key {d} us, {d} ticks, an edit {d} us (the text's own splice {d} us)\n", .{ first_ns / 1000, ticks, edit_ns / 1000, text_ns / 1000 });
}
-test "zz stress analysis cost" {
- const path = "/home/goblin/00-projects/0x4200.cafe/pardes-s-converge/.scratch/stress/src/layout.zig";
- if (std.c.getenv("PLACES_TIMES") == null) return error.SkipZigTest;
- const io = std.testing.io;
- const bytes = try std.Io.Dir.cwd().readFileAlloc(io, path, std.testing.allocator, .limited(4 << 20));
- defer std.testing.allocator.free(bytes);
- const syntax = @import("syntax.zig");
- syntax.start(std.testing.allocator);
- defer syntax.stop();
- const tp = nowNs();
- const tree = syntax.parseTree(path, bytes);
- const tq = nowNs();
- if (tree) |t| syntax.freeTree(t);
- std.debug.print("parse alone {d} us\n", .{(tq - tp) / 1000});
- const t0 = nowNs();
- const d = try syntax.contextDeclarations(std.testing.allocator, path, bytes);
- const t1 = nowNs();
- std.testing.allocator.free(d);
- const a = try syntax.analyzeSource(std.testing.allocator, path, bytes, true, true);
- const t2 = nowNs();
- std.testing.allocator.free(a.declarations);
- std.testing.allocator.free(a.colors);
- std.debug.print("decls {d} us ({d}), analysis with colours {d} us\n", .{ (t1 - t0) / 1000, d.len, (t2 - t1) / 1000 });
-}
-
test "a lowered copy's pieces not searched yet are the same in every process: a digest and a dump take them" {
// Two sessions searching one text, each heap handing out other bytes in
// what is not written yet (rollback.Epoch.fill): their places agree.