openpencil/crates/openpencil-shell-core/tests
Kayshen-X d91166ccda test(perf): 1000-node regression guards for max_node_id / hit-test / batch_insert
Coarse perf regression test for the MINOR "1000+ node doc render
pan/zoom not benchmarked" gap. Three integration tests in
`crates/openpencil-shell-core/tests/large_document_perf.rs`:

- max_node_id × 100 on 1000-leaf doc < 50 ms (debug build)
- node_at_doc_point × 100 across the grid < 25 ms (debug build)
- apply_mcp_command(BatchInsert) of 1000 descriptors < 100 ms

Bounds are deliberately generous on debug builds — the job is to
catch a future 10× regression, not measure wall-clock precision.
Real benchmarks via criterion still pending (criterion is not a
workspace dep yet); these guards are the bounded alternative.

All three pass on the current build.
2026-05-15 02:16:18 +08:00
..
gesture_re_export.rs test(shell-core): assert W3C field readback in gesture re-export tests 2026-05-09 21:03:00 +08:00
jian_re_export.rs style(shell): convert all comments to English 2026-05-05 21:12:00 +08:00
large_document_perf.rs test(perf): 1000-node regression guards for max_node_id / hit-test / batch_insert 2026-05-15 02:16:18 +08:00
widgets_static.rs style(shell): cargo fmt --all (rustfmt-clean) 2026-05-10 18:47:33 +08:00