Browser changes.
This commit is contained in:
1 parent
133953e972
commit
bf4b9d7b54
20 files changed
+920
-168
No files matched your search
@@ -31,6 +31,20 @@ text, with two objects on each visual row. Each benchmark iteration performs:
|
||||
construction and navigation bookkeeping.
|
||||
- `BenchmarkDocumentLineAssembly`: one line lookup in the middle of a document,
|
||||
combining the two text objects on that row. This includes snapshot construction.
|
||||
- `BenchmarkDocumentCaretNavigation`: a character forward/backward round trip
|
||||
within the same text object. Reusable caret ranges are warmed before timing.
|
||||
- `BenchmarkDocumentWorkerHeadingNavigation`: a heading forward/backward round
|
||||
trip through the review worker, including focus synchronization, diagnostics
|
||||
and placement dispatch, with an in-memory provider. It performs no browser IPC.
|
||||
|
||||
Include the additional cases with
|
||||
`-bench '^BenchmarkDocument(Snapshot|HeadingNavigation|LineAssembly|CaretNavigation|WorkerHeadingNavigation)$'`.
|
||||
Navigation shares an immutable indexed view; `BenchmarkDocumentSnapshot`
|
||||
continues to measure the independently owned node copy returned by `Document`.
|
||||
The first view construction is included in snapshot and line measurements and
|
||||
amortized over subsequent iterations. A short run can therefore overstate the
|
||||
steady allocation rate. See [document navigation validation](browser-navigation-performance.md)
|
||||
for cache ownership, invalidation and real-browser checks.
|
||||
|
||||
Fixture construction and initial focus synchronization are outside the timed
|
||||
loops. The benchmarks fail on errors, missing work or invalid result shapes.
|
||||
|
||||
Reference in new issue
Block a user