Skip to content

fix(core): evaluate arithmetic in page number formula fields - #2152

Open
jedrazb wants to merge 8 commits into
mainfrom
fix/field-formula-evaluation
Open

jedrazb wants to merge 8 commits into
mainfrom
fix/field-formula-evaluation

Conversation

@jedrazb

@jedrazb jedrazb commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

An = formula over PAGE, NUMPAGES, and SECTIONPAGES fields, such as { = { PAGE } + 1 } or { = { NUMPAGES } - { PAGE } }, now shows the value for each page. A bounded evaluator supports constants, unary minus, ^, *, /, +, -, comparisons, and parentheses (ECMA-376 Part 1, 17.16.3, 17.16.3.1, 17.16.3.3). Functions, bookmarks, %, and pages where the formula has no value, such as a division by zero, keep the saved result.

  • Page fields and formulas inside another field's result also update in the body.
  • PDF export requests the font that paints nested page fields.
  • A field nested in multi-paragraph field codes no longer shows its result (17.16.18).
  • A page field whose instruction alone is a tracked deletion shows nothing (17.16.13).

🤖 Generated with Claude Code


Run Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

jedrazb and others added 8 commits November 25, 2026 23:14
An `=` formula over `PAGE`, `NUMPAGES`, and `SECTIONPAGES` operands
(ECMA-376 Part 1, 17.16.1 and 17.16.3) now shows the value for each page.
A bounded evaluator compiles the expression subset: constants (17.16.3.1),
unary minus, `^`, `*`, `/`, `+`, `-`, and the comparisons of 17.16.3.3,
with parentheses. Caps apply to tokens, depth, operands, constants, and
magnitudes. The result shows the decimal places of its most precise input,
and at least two after a division. A `\#` picture rounds to a whole number,
and a `\*` format renders only whole results of zero or more.

Functions, bookmarks, `%`, a chained `^`, a negative exponent, and a
picture with a decimal point keep the saved result. A page where the
formula has no value, such as a division by zero, also keeps it, in the
body, headers, footers, and nested results.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The export font scan now treats a page field or formula in the result of
another field as synthesized glyphs of the outermost field, as layout
paints them. The outermost field's face is requested, so the digits do not
fall back to another face. A page field inside a nested instruction stays
out, because it is not painted. Fields nest through `w:fldChar`
(ECMA-376 Part 1, 17.16.18, `CT_FldChar`).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A `PAGE`, `NUMPAGES`, or `SECTIONPAGES` field (ECMA-376 Part 1,
17.16.5.44, 17.16.5.42, 17.16.5.55), or an `=` formula over them (17.16.3),
nested through `w:fldChar` (17.16.18) or `w:fldSimple` (17.16.19) in the
saved result of another field now shows each page's value in the body.
Headers and footers already did.

The body has no page context while it is measured, so the nested field's
saved result keeps its width, and the outer result carries a marker with
its text and each nested field's marker. Document finalize fills the
values. A result with whitespace or more than 32 characters keeps its
saved text, because it cannot stay one span.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a field's codes hold paragraph marks, the paragraph that holds
`begin` and the paragraph where the codes end lay out as one merged line.
A field nested in those codes kept its own characters in the merged copy
and showed its saved result. Field codes are not displayed (ECMA-376
Part 1, 17.16.18, `CT_FldChar`; 17.16.23 `instrText`), so each run whose
content lies wholly in the crossing field's codes now gets a direct
`w:vanish` (17.3.2.41) in the merged copy. The runs keep their offsets,
so the store and the line still count the same, and the caret stops do
not change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A tracked deletion (`w:delInstrText`, ECMA-376 Part 1, 17.16.13) can
remove a page field's code while its result stays: `{ PAGE }` with only
the `PAGE` deleted, or `{ = { PAGE } }` with only the `=` deleted. With
the deletion accepted the field has no instruction, so it shows nothing
in every view. Before, the first showed the live page number and the
second its saved result. A wholly deleted field keeps its behavior.

The capture of the outermost `separate` moves from the paragraph walk to
`captureSeparatedInstruction` in `field-synthesis.ts`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-ups for page formulas and nested page fields:

- A body formula with no value on its page paints its saved result only
  when the field was measured at that result. Otherwise it paints nothing,
  so a saved result with a space no longer overlaps the text after it.
- The original view rejects a tracked deletion (17.13.5.14), so a page
  field whose code alone is deleted shows its value there.
- A nested page field keeps its whole saved result, as the outer field
  does, instead of a capped prefix.
- A form field does not take a nested page-field marker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Describe which tracked-deletion shapes show their value in the original
view, write the no-break space in the formula tokenizer as an escape, and
make the drawing detection test hold operands on both sides of the
drawing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`FieldAtomMarker.pageField` gains three internal members that carry a
formula's compiled expression, its saved result, and the segments of a
result that holds nested page fields. The report and the reviewed
forgotten-export baseline list them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docx-editor Ready Ready Preview Nov 25, 2026 10:54pm UTC

Request Review

@eigenpal-release-pal

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅

Posted by the CLA bot.

@github-actions

Copy link
Copy Markdown
Contributor

📦 Package size report

Package Tarball vs main Unpacked vs main
@docx-editor.dev/core 3.59 MB +6.8 KB (+0.2%) 11.55 MB +19.5 KB (+0.2%)
@docx-editor.dev/docx-to-markdown 65.4 KB ±0.0 KB (±0.0%) 206.9 KB ±0.0 KB (±0.0%)
@docx-editor.dev/docx-to-pdf 2.48 MB ±0.0 KB (±0.0%) 5.13 MB ±0.0 KB (±0.0%)
@docx-editor.dev/editor-api 336.7 KB ±0.0 KB (±0.0%) 1.29 MB ±0.0 KB (±0.0%)
@docx-editor.dev/fonts 4.07 MB ±0.0 KB (±0.0%) 8.25 MB ±0.0 KB (±0.0%)
@docx-editor.dev/fonts-cjk 13.08 MB ±0.0 KB (±0.0%) 15.77 MB ±0.0 KB (±0.0%)
@docx-editor.dev/i18n 1.09 MB ±0.0 KB (±0.0%) 4.16 MB ±0.0 KB (±0.0%)
@docx-editor.dev/pro 762.2 KB ±0.0 KB (±0.0%) 2.41 MB ±0.0 KB (±0.0%)
@docx-editor.dev/react 493.1 KB ±0.0 KB (±0.0%) 1.78 MB ±0.0 KB (±0.0%)
@docx-editor.dev/telemetry 72.3 KB ±0.0 KB (±0.0%) 232.0 KB ±0.0 KB (±0.0%)
@docx-editor.dev/vue 406.8 KB ±0.0 KB (±0.0%) 1.96 MB ±0.0 KB (±0.0%)

Tarball = npm pack gzipped size. ⚠️ over ±5%, 🚨 fails CI over +20% and +25.0 KB (label size-increase-expected to allow).

@github-actions

Copy link
Copy Markdown
Contributor

Performance benchmark

Typing latency (browser)

Scenario Base frame Head frame Δ Frame p95 Input p95
521pp-editing-character 47.05 ms 45.80 ms ⚪ -2.7% 49.05 ms 0.15 ms
521pp-editing-wrap 48.55 ms 43.10 ms 🟢 -11.2% 53.10 ms 0.10 ms
521pp-suggesting-character 104.55 ms 103.35 ms ⚪ -1.1% 109.95 ms 0.10 ms
editing-character 30.75 ms 30.90 ms ⚪ +0.5% 31.20 ms 0.10 ms
editing-wrap 39.40 ms 36.50 ms ⚪ -7.4% 40.55 ms 0.10 ms
suggesting-character 76.20 ms 73.25 ms ⚪ -3.9% 77.85 ms 0.10 ms
suggesting-wrap 76.15 ms 74.10 ms ⚪ -2.7% 82.00 ms 0.05 ms
highlighted-edit-character 31.00 ms 31.00 ms ⚪ +0.0% 31.50 ms 0.10 ms
highlighted-suggest-character 72.05 ms 71.00 ms ⚪ -1.5% 78.65 ms 0.10 ms
tracked-editing-character 30.80 ms 31.05 ms ⚪ +0.8% 31.25 ms 0.10 ms
tracked-suggesting-character 62.30 ms 58.95 ms 🟢 -5.4% 65.90 ms 0.15 ms
tracked-suggesting-wrap 64.15 ms 59.45 ms 🟢 -7.3% 61.30 ms 0.10 ms
huge-open-to-ready 5682.00 ms 5575.50 ms ⚪ -1.9% 5575.50 ms 5575.50 ms
huge-suggesting-character 98.50 ms 93.90 ms ⚪ -4.7% 98.45 ms 0.10 ms
huge-suggesting-wrap 95.70 ms 95.95 ms ⚪ +0.3% 103.70 ms 0.10 ms
huge-paste-50k 232.50 ms 231.20 ms ⚪ -0.6% 309.15 ms 0.15 ms

Engine layout (headless)

Scenario Base median Head median Δ Head p95
steady-middle-text 13.55 ms 12.50 ms ⚪ -7.7% 14.60 ms
wrap-middle-text 13.23 ms 13.23 ms ⚪ +0.0% 15.16 ms
forced-middle-reflow 12.47 ms 12.58 ms ⚪ +0.9% 12.84 ms
forced-early-reflow 11.84 ms 12.42 ms ⚪ +4.8% 16.66 ms
enter-split-middle 19.66 ms 16.55 ms ⚪ -15.9% 17.20 ms
backspace-join-middle 12.90 ms 11.97 ms ⚪ -7.2% 15.38 ms
enter-split-early 19.59 ms 16.33 ms ⚪ -16.6% 19.52 ms
page-break-middle 12.36 ms 12.10 ms ⚪ -2.0% 12.54 ms
How to read these tables
  • Base: the main commit this PR builds on. Head: this PR.
  • Median: the typical sample. p95: 95 of 100 samples were faster than this.
  • Browser table: frame is the time from the keystroke until the edit is
    visible on screen — the number a typing user feels. Input p95 is how long
    the keystroke handler blocked the page (typing buffers its work off the input
    task, so this stays near zero by design).
  • 521pp-* rows run the pinned 521-page reproduction; the other rows run the
    small synthetic fixtures that exist for deterministic work-counter gates.
  • Δ: 🟢 faster, 🔴 slower, ⚪ inside the noise. Each side runs interleaved
    rounds; a delta smaller than the run-to-run spread renders neutral.
  • Work counters: exact counts of layout work (paragraphs placed, pages
    reused, full passes). They are deterministic: a change means different
    behavior, not just different speed.

Work counters: unchanged.

Head report (full JSON)
{
  "schema": 1,
  "fixture": "/home/runner/work/docx-editor/docx-editor/e2e/fixtures/synthetic-long-edit.docx",
  "fixtureBytes": 27897,
  "fixtureSha256": "ca8ee28a8d40ae7914a820303b96ddbbe8f06d37325b0fc2ae6f1140aea96321",
  "environment": {
    "runtime": "Bun 1.4.4",
    "arch": "x64"
  },
  "config": {
    "runs": 3,
    "warmup": 2,
    "measurer": "fixed(6px,14px)"
  },
  "scenarios": [
    {
      "name": "steady-middle-text",
      "target": {
        "paragraphIndex": 1919,
        "paragraphId": "/word/document.xml#0.0.1919"
      },
      "transaction": {
        "medianMs": 9.14991400000008,
        "p95Ms": 9.479355999999825,
        "minMs": 8.656956000000264,
        "maxMs": 9.479355999999825
      },
      "layout": {
        "medianMs": 3.208378000000266,
        "p95Ms": 4.902341000000433,
        "minMs": 2.962561000000278,
        "maxMs": 4.902341000000433
      },
      "total": {
        "medianMs": 12.358292000000347,
        "p95Ms": 14.381697000000258,
        "minMs": 11.619517000000542,
        "maxMs": 14.381697000000258
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "pagesBefore": 204,
        "pagesAfter": 204,
        "cache": {
          "hits": 13,
          "misses": 3201,
          "evictions": 0,
          "size": 3201
        }
      }
    },
    {
      "name": "wrap-middle-text",
      "target": {
        "paragraphIndex": 1599,
        "paragraphId": "/word/document.xml#0.0.1599"
      },
      "transaction": {
        "medianMs": 9.737184999999954,
        "p95Ms": 10.147283000000243,
        "minMs": 9.070764000000054,
        "maxMs": 10.147283000000243
      },
      "layout": {
        "medianMs": 4.041124999999738,
        "p95Ms": 4.189955000000737,
        "minMs": 3.360728999999992,
        "maxMs": 4.189955000000737
      },
      "total": {
        "medianMs": 13.778309999999692,
        "p95Ms": 14.33723800000098,
        "minMs": 12.431493000000046,
        "maxMs": 14.33723800000098
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "pagesBefore": 204,
        "pagesAfter": 204,
        "cache": {
          "hits": 13,
          "misses": 3201,
          "evictions": 0,
          "size": 3201
        }
      }
    },
    {
      "name": "forced-middle-reflow",
      "target": {
        "paragraphIndex": 1599,
        "paragraphId": "/word/document.xml#0.0.1599"
      },
      "transaction": {
        "medianMs": 8.53695400000015,
        "p95Ms": 9.004111000000194,
        "minMs": 8.349089000001186,
        "maxMs": 9.004111000000194
      },
      "layout": {
        "medianMs": 2.9916080000002694,
        "p95Ms": 3.9698809999999867,
        "minMs": 2.931345999999394,
        "maxMs": 3.9698809999999867
      },
      "total": {
        "medianMs": 11.995719000000463,
        "p95Ms": 12.506835000000137,
        "minMs": 11.28043500000058,
        "maxMs": 12.506835000000137
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "pagesBefore": 204,
        "pagesAfter": 204,
        "cache": {
          "hits": 13,
          "misses": 3201,
          "evictions": 0,
          "size": 3201
        }
      }
    },
    {
      "name": "forced-early-reflow",
      "target": {
        "paragraphIndex": 159,
        "paragraphId": "/word/document.xml#0.0.159"
      },
      "transaction": {
        "medianMs": 9.680460999999923,
        "p95Ms": 11.846883000000162,
        "minMs": 7.814220000000205,
        "maxMs": 11.846883000000162
      },
      "layout": {
        "medianMs": 3.217888999999559,
        "p95Ms": 11.63014000000112,
        "minMs": 2.8419489999996586,
        "maxMs": 11.63014000000112
      },
      "total": {
        "medianMs": 12.898349999999482,
        "p95Ms": 23.47702300000128,
        "minMs": 10.656168999999863,
        "maxMs": 23.47702300000128
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 155,
        "fullPasses": 1,
        "pagesBefore": 204,
        "pagesAfter": 204,
        "cache": {
          "hits": 13,
          "misses": 3201,
          "evictions": 0,
          "size": 3201
        }
      }
    },
    {
      "name": "enter-split-middle",
      "target": {
        "paragraphIndex": 1919,
        "paragraphId": "/word/document.xml#0.0.1919"
      },
      "transaction": {
        "medianMs": 8.748067000000447,
        "p95Ms": 9.273465000000215,
        "minMs": 8.40721400000075,
        "maxMs": 9.273465000000215
      },
      "layout": {
        "medianMs": 7.871117000000595,
        "p95Ms": 8.053076000000146,
        "minMs": 6.6542089999984455,
        "maxMs": 8.053076000000146
      },
      "total": {
        "medianMs": 16.61918400000104,
        "p95Ms": 17.32654100000036,
        "minMs": 15.061422999999195,
        "maxMs": 17.32654100000036
      },
      "work": {
        "placed": 14,
        "total": 3201,
        "reusedPages": 154,
        "fullPasses": 1,
        "pagesBefore": 204,
        "pagesAfter": 204,
        "cache": {
          "hits": 13,
          "misses": 3202,
          "evictions": 0,
          "size": 3202
        }
      }
    },
    {
      "name": "backspace-join-middle",
      "target": {
        "paragraphIndex": 1919,
        "paragraphId": "/word/document.xml#0.0.1919"
      },
      "transaction": {
        "medianMs": 9.05106799999885,
        "p95Ms": 9.095354999999472,
        "minMs": 8.265399999998408,
        "maxMs": 9.095354999999472
      },
      "layout": {
        "medianMs": 2.6076760000014474,
        "p95Ms": 2.9485189999995782,
        "minMs": 2.444377000001623,
        "maxMs": 2.9485189999995782
      },
      "total": {
        "medianMs": 11.658744000000297,
        "p95Ms": 12.04387399999905,
        "minMs": 10.709777000000031,
        "maxMs": 12.04387399999905
      },
      "work": {
        "placed": 12,
        "total": 3199,
        "reusedPages": 154,
        "fullPasses": 1,
        "pagesBefore": 204,
        "pagesAfter": 204,
        "cache": {
          "hits": 12,
          "misses": 3201,
          "evictions": 0,
          "size": 3201
        }
      }
    },
    {
      "name": "enter-split-early",
      "target": {
        "paragraphIndex": 159,
        "paragraphId": "/word/document.xml#0.0.159"
      },
      "transaction": {
        "medianMs": 9.41961199999787,
        "p95Ms": 9.473516000001837,
        "minMs": 8.84174300000086,
        "maxMs": 9.473516000001837
      },
      "layout": {
        "medianMs": 6.231341999999131,
        "p95Ms": 6.278159000001324,
        "minMs": 6.013738999998168,
        "maxMs": 6.278159000001324
      },
      "total": {
        "medianMs": 15.697770999999193,
        "p95Ms": 15.704858000000968,
        "minMs": 14.855481999999029,
        "maxMs": 15.704858000000968
      },
      "work": {
        "placed": 14,
        "total": 3201,
        "reusedPages": 155,
        "fullPasses": 1,
        "pagesBefore": 204,
        "pagesAfter": 204,
        "cache": {
          "hits": 13,
          "misses": 3202,
          "evictions": 0,
          "size": 3202
        }
      }
    },
    {
      "name": "page-break-middle",
      "target": {
        "paragraphIndex": 1919,
        "paragraphId": "/word/document.xml#0.0.1919"
      },
      "transaction": {
        "medianMs": 9.13291499999832,
        "p95Ms": 9.860752999997203,
        "minMs": 8.140737000001536,
        "maxMs": 9.860752999997203
      },
      "layout": {
        "medianMs": 2.980106999999407,
        "p95Ms": 3.4063719999976456,
        "minMs": 2.9779249999992317,
        "maxMs": 3.4063719999976456
      },
      "total": {
        "medianMs": 12.110839999997552,
        "p95Ms": 13.267124999994849,
        "minMs": 11.120844000000943,
        "maxMs": 13.267124999994849
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 99,
        "fullPasses": 1,
        "pagesBefore": 204,
        "pagesAfter": 205,
        "cache": {
          "hits": 13,
          "misses": 3201,
          "evictions": 0,
          "size": 3201
        }
      }
    }
  ]
}
Base report (full JSON)
{
  "schema": 1,
  "fixture": "/home/runner/work/_temp/base/e2e/fixtures/synthetic-long-edit.docx",
  "fixtureBytes": 27897,
  "fixtureSha256": "ca8ee28a8d40ae7914a820303b96ddbbe8f06d37325b0fc2ae6f1140aea96321",
  "environment": {
    "runtime": "Bun 1.4.4",
    "arch": "x64"
  },
  "config": {
    "runs": 3,
    "warmup": 2,
    "measurer": "fixed(6px,14px)"
  },
  "scenarios": [
    {
      "name": "steady-middle-text",
      "target": {
        "paragraphIndex": 1919,
        "paragraphId": "/word/document.xml#0.0.1919"
      },
      "transaction": {
        "medianMs": 9.221788999999717,
        "p95Ms": 9.234514000000217,
        "minMs": 9.117836999999781,
        "maxMs": 9.234514000000217
      },
      "layout": {
        "medianMs": 3.0386510000003,
        "p95Ms": 4.747178000000076,
        "minMs": 2.9951489999998557,
        "maxMs": 4.747178000000076
      },
      "total": {
        "medianMs": 12.273165000000517,
        "p95Ms": 13.968966999999793,
        "minMs": 12.112985999999637,
        "maxMs": 13.968966999999793
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "pagesBefore": 204,
        "pagesAfter": 204,
        "cache": {
          "hits": 13,
          "misses": 3201,
          "evictions": 0,
          "size": 3201
        }
      }
    },
    {
      "name": "wrap-middle-text",
      "target": {
        "paragraphIndex": 1599,
        "paragraphId": "/word/document.xml#0.0.1599"
      },
      "transaction": {
        "medianMs": 9.375598999999966,
        "p95Ms": 11.134837999999945,
        "minMs": 9.185607999999775,
        "maxMs": 11.134837999999945
      },
      "layout": {
        "medianMs": 3.1491500000001906,
        "p95Ms": 3.8718019999996613,
        "minMs": 3.106540999999197,
        "maxMs": 3.8718019999996613
      },
      "total": {
        "medianMs": 12.482139999999163,
        "p95Ms": 15.006639999999607,
        "minMs": 12.334757999999965,
        "maxMs": 15.006639999999607
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "pagesBefore": 204,
        "pagesAfter": 204,
        "cache": {
          "hits": 13,
          "misses": 3201,
          "evictions": 0,
          "size": 3201
        }
      }
    },
    {
      "name": "forced-middle-reflow",
      "target": {
        "paragraphIndex": 1599,
        "paragraphId": "/word/document.xml#0.0.1599"
      },
      "transaction": {
        "medianMs": 8.874718999999459,
        "p95Ms": 9.07823499999995,
        "minMs": 8.532245999999759,
        "maxMs": 9.07823499999995
      },
      "layout": {
        "medianMs": 3.0858149999994566,
        "p95Ms": 3.1378139999997074,
        "minMs": 2.9153820000010455,
        "maxMs": 3.1378139999997074
      },
      "total": {
        "medianMs": 11.790101000000504,
        "p95Ms": 12.216048999999657,
        "minMs": 11.618060999999216,
        "maxMs": 12.216048999999657
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "pagesBefore": 204,
        "pagesAfter": 204,
        "cache": {
          "hits": 13,
          "misses": 3201,
          "evictions": 0,
          "size": 3201
        }
      }
    },
    {
      "name": "forced-early-reflow",
      "target": {
        "paragraphIndex": 159,
        "paragraphId": "/word/document.xml#0.0.159"
      },
      "transaction": {
        "medianMs": 8.063931000000593,
        "p95Ms": 8.778329000000667,
        "minMs": 7.428083000000697,
        "maxMs": 8.778329000000667
      },
      "layout": {
        "medianMs": 2.5651859999998123,
        "p95Ms": 2.8958050000001094,
        "minMs": 2.5301069999986794,
        "maxMs": 2.8958050000001094
      },
      "total": {
        "medianMs": 10.594037999999273,
        "p95Ms": 11.674134000000777,
        "minMs": 9.99326900000051,
        "maxMs": 11.674134000000777
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 155,
        "fullPasses": 1,
        "pagesBefore": 204,
        "pagesAfter": 204,
        "cache": {
          "hits": 13,
          "misses": 3201,
          "evictions": 0,
          "size": 3201
        }
      }
    },
    {
      "name": "enter-split-middle",
      "target": {
        "paragraphIndex": 1919,
        "paragraphId": "/word/document.xml#0.0.1919"
      },
      "transaction": {
        "medianMs": 9.965147999999317,
        "p95Ms": 10.535429999999906,
        "minMs": 8.897917999998754,
        "maxMs": 10.535429999999906
      },
      "layout": {
        "medianMs": 8.17132700000002,
        "p95Ms": 8.30025299999943,
        "minMs": 7.471352000000479,
        "maxMs": 8.30025299999943
      },
      "total": {
        "medianMs": 18.136474999999336,
        "p95Ms": 18.835682999999335,
        "minMs": 16.369269999999233,
        "maxMs": 18.835682999999335
      },
      "work": {
        "placed": 14,
        "total": 3201,
        "reusedPages": 154,
        "fullPasses": 1,
        "pagesBefore": 204,
        "pagesAfter": 204,
        "cache": {
          "hits": 13,
          "misses": 3202,
          "evictions": 0,
          "size": 3202
        }
      }
    },
    {
      "name": "backspace-join-middle",
      "target": {
        "paragraphIndex": 1919,
        "paragraphId": "/word/document.xml#0.0.1919"
      },
      "transaction": {
        "medianMs": 10.1656380000004,
        "p95Ms": 21.33462000000145,
        "minMs": 9.197442000000592,
        "maxMs": 21.33462000000145
      },
      "layout": {
        "medianMs": 3.0740180000011605,
        "p95Ms": 3.269264000000476,
        "minMs": 2.974240000001373,
        "maxMs": 3.269264000000476
      },
      "total": {
        "medianMs": 13.139878000001772,
        "p95Ms": 24.603884000001926,
        "minMs": 12.271460000001753,
        "maxMs": 24.603884000001926
      },
      "work": {
        "placed": 12,
        "total": 3199,
        "reusedPages": 154,
        "fullPasses": 1,
        "pagesBefore": 204,
        "pagesAfter": 204,
        "cache": {
          "hits": 12,
          "misses": 3201,
          "evictions": 0,
          "size": 3201
        }
      }
    },
    {
      "name": "enter-split-early",
      "target": {
        "paragraphIndex": 159,
        "paragraphId": "/word/document.xml#0.0.159"
      },
      "transaction": {
        "medianMs": 9.474066999999195,
        "p95Ms": 9.669004999999743,
        "minMs": 9.412452000000485,
        "maxMs": 9.669004999999743
      },
      "layout": {
        "medianMs": 6.534830000000511,
        "p95Ms": 6.624242000001686,
        "minMs": 6.3616020000008575,
        "maxMs": 6.624242000001686
      },
      "total": {
        "medianMs": 16.09830900000088,
        "p95Ms": 16.203835000000254,
        "minMs": 15.774054000001343,
        "maxMs": 16.203835000000254
      },
      "work": {
        "placed": 14,
        "total": 3201,
        "reusedPages": 155,
        "fullPasses": 1,
        "pagesBefore": 204,
        "pagesAfter": 204,
        "cache": {
          "hits": 13,
          "misses": 3202,
          "evictions": 0,
          "size": 3202
        }
      }
    },
    {
      "name": "page-break-middle",
      "target": {
        "paragraphIndex": 1919,
        "paragraphId": "/word/document.xml#0.0.1919"
      },
      "transaction": {
        "medianMs": 9.01647800000137,
        "p95Ms": 9.115467999999964,
        "minMs": 8.81461400000262,
        "maxMs": 9.115467999999964
      },
      "layout": {
        "medianMs": 3.0725749999983236,
        "p95Ms": 3.130403999999544,
        "minMs": 2.9829090000021097,
        "maxMs": 3.130403999999544
      },
      "total": {
        "medianMs": 12.146882000000915,
        "p95Ms": 12.188042999998288,
        "minMs": 11.79752300000473,
        "maxMs": 12.188042999998288
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 99,
        "fullPasses": 1,
        "pagesBefore": 204,
        "pagesAfter": 205,
        "cache": {
          "hits": 13,
          "misses": 3201,
          "evictions": 0,
          "size": 3201
        }
      }
    }
  ]
}
Browser report (full JSON)
{
  "schema": 1,
  "fixture": "synthetic-long-edit.docx",
  "fixtureSha256": "ca8ee28a8d40ae7914a820303b96ddbbe8f06d37325b0fc2ae6f1140aea96321",
  "environment": {
    "browser": "chromium",
    "browserVersion": "159.0.8154.6",
    "platform": "linux",
    "arch": "x64"
  },
  "config": {
    "runs": 5,
    "warmup": 2,
    "sustainedEdits": 120,
    "reviewRail": true,
    "viewport": "1440x1000@1x",
    "injectedDelayMs": 0
  },
  "scenarios": [
    {
      "name": "521pp-editing-character",
      "mode": "edit",
      "textLength": 1,
      "inputTask": {
        "medianMs": 0.09999999997671694,
        "p95Ms": 0.10000000000582077,
        "minMs": 0,
        "maxMs": 0.10000000000582077
      },
      "frame": {
        "medianMs": 44.39999999999418,
        "p95Ms": 49.80000000001746,
        "minMs": 41.09999999997672,
        "maxMs": 49.80000000001746
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 18.10000000000582,
        "p95Ms": 20.5,
        "minMs": 16.39999999999418,
        "maxMs": 20.5
      },
      "paint": {
        "medianMs": 3.3999999999941792,
        "p95Ms": 5.199999999982538,
        "minMs": 3,
        "maxMs": 5.199999999982538
      },
      "selection": {
        "medianMs": 0.6000000000058208,
        "p95Ms": 0.7000000000116415,
        "minMs": 0.5,
        "maxMs": 0.7000000000116415
      },
      "work": {
        "placed": 11,
        "total": 6540,
        "reusedPages": 516,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 3130,
        "materializedPages": 4,
        "selectionSpans": 738
      }
    },
    {
      "name": "521pp-editing-wrap",
      "mode": "edit",
      "textLength": 100,
      "inputTask": {
        "medianMs": 0.10000000000582077,
        "p95Ms": 0.10000000000582077,
        "minMs": 0,
        "maxMs": 0.10000000000582077
      },
      "frame": {
        "medianMs": 42,
        "p95Ms": 51.20000000001164,
        "minMs": 41.5,
        "maxMs": 51.20000000001164
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 14.799999999988358,
        "p95Ms": 15.700000000011642,
        "minMs": 14,
        "maxMs": 15.700000000011642
      },
      "paint": {
        "medianMs": 3.7999999999883585,
        "p95Ms": 7.7999999999883585,
        "minMs": 3.3999999999941792,
        "maxMs": 7.7999999999883585
      },
      "selection": {
        "medianMs": 1.6999999999825377,
        "p95Ms": 2.3999999999941792,
        "minMs": 1.599999999976717,
        "maxMs": 2.3999999999941792
      },
      "work": {
        "placed": 11,
        "total": 6540,
        "reusedPages": 516,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 3151,
        "materializedPages": 4,
        "selectionSpans": 758
      }
    },
    {
      "name": "521pp-suggesting-character",
      "mode": "suggest",
      "textLength": 1,
      "inputTask": {
        "medianMs": 0,
        "p95Ms": 0.09999999997671694,
        "minMs": 0,
        "maxMs": 0.09999999997671694
      },
      "frame": {
        "medianMs": 104.69999999998254,
        "p95Ms": 108,
        "minMs": 101.09999999997672,
        "maxMs": 108
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 17.5,
        "p95Ms": 21,
        "minMs": 16.699999999982538,
        "maxMs": 21
      },
      "paint": {
        "medianMs": 18.400000000023283,
        "p95Ms": 19,
        "minMs": 18.10000000000582,
        "maxMs": 19
      },
      "selection": {
        "medianMs": 21.60000000000582,
        "p95Ms": 22.599999999976717,
        "minMs": 21,
        "maxMs": 22.599999999976717
      },
      "work": {
        "placed": 11,
        "total": 6540,
        "reusedPages": 516,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 3133,
        "materializedPages": 4,
        "selectionSpans": 739
      }
    },
    {
      "name": "editing-character",
      "mode": "edit",
      "textLength": 1,
      "inputTask": {
        "medianMs": 0.10000000000582077,
        "p95Ms": 0.10000000000582077,
        "minMs": 0,
        "maxMs": 0.10000000000582077
      },
      "frame": {
        "medianMs": 30.900000000023283,
        "p95Ms": 31.20000000001164,
        "minMs": 29.900000000023283,
        "maxMs": 31.20000000001164
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 3.1999999999825377,
        "p95Ms": 5.899999999994179,
        "minMs": 2.6000000000058208,
        "maxMs": 5.899999999994179
      },
      "paint": {
        "medianMs": 1.2000000000116415,
        "p95Ms": 2.3000000000174623,
        "minMs": 1,
        "maxMs": 2.3000000000174623
      },
      "selection": {
        "medianMs": 1.2000000000116415,
        "p95Ms": 1.8999999999941792,
        "minMs": 1.1000000000058208,
        "maxMs": 1.8999999999941792
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 2322,
        "materializedPages": 4,
        "selectionSpans": 1738
      }
    },
    {
      "name": "editing-wrap",
      "mode": "edit",
      "textLength": 100,
      "inputTask": {
        "medianMs": 0,
        "p95Ms": 0.09999999997671694,
        "minMs": 0,
        "maxMs": 0.09999999997671694
      },
      "frame": {
        "medianMs": 34.89999999999418,
        "p95Ms": 38.29999999998836,
        "minMs": 32.89999999999418,
        "maxMs": 38.29999999998836
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 2.6000000000058208,
        "p95Ms": 2.7999999999883585,
        "minMs": 2.5,
        "maxMs": 2.7999999999883585
      },
      "paint": {
        "medianMs": 4,
        "p95Ms": 4.2000000000116415,
        "minMs": 3.7999999999883585,
        "maxMs": 4.2000000000116415
      },
      "selection": {
        "medianMs": 5,
        "p95Ms": 5.100000000005821,
        "minMs": 5,
        "maxMs": 5.100000000005821
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 2344,
        "materializedPages": 4,
        "selectionSpans": 1758
      }
    },
    {
      "name": "suggesting-character",
      "mode": "suggest",
      "textLength": 1,
      "inputTask": {
        "medianMs": 0.09999999997671694,
        "p95Ms": 0.10000000000582077,
        "minMs": 0,
        "maxMs": 0.10000000000582077
      },
      "frame": {
        "medianMs": 71,
        "p95Ms": 75.20000000001164,
        "minMs": 70.29999999998836,
        "maxMs": 75.20000000001164
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 3.3999999999941792,
        "p95Ms": 3.5,
        "minMs": 3.1000000000058208,
        "maxMs": 3.5
      },
      "paint": {
        "medianMs": 15.699999999982538,
        "p95Ms": 15.89999999999418,
        "minMs": 14.60000000000582,
        "maxMs": 15.89999999999418
      },
      "selection": {
        "medianMs": 19.5,
        "p95Ms": 19.60000000000582,
        "minMs": 19.20000000001164,
        "maxMs": 19.60000000000582
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 2324,
        "materializedPages": 4,
        "selectionSpans": 1739
      }
    },
    {
      "name": "suggesting-wrap",
      "mode": "suggest",
      "textLength": 100,
      "inputTask": {
        "medianMs": 0,
        "p95Ms": 0.10000000000582077,
        "minMs": 0,
        "maxMs": 0.10000000000582077
      },
      "frame": {
        "medianMs": 74.19999999998254,
        "p95Ms": 76.40000000002328,
        "minMs": 64.39999999999418,
        "maxMs": 76.40000000002328
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 3.6000000000058208,
        "p95Ms": 6.199999999982538,
        "minMs": 3.1000000000058208,
        "maxMs": 6.199999999982538
      },
      "paint": {
        "medianMs": 15.10000000000582,
        "p95Ms": 19.10000000000582,
        "minMs": 14.099999999976717,
        "maxMs": 19.10000000000582
      },
      "selection": {
        "medianMs": 19.699999999982538,
        "p95Ms": 19.79999999998836,
        "minMs": 16.60000000000582,
        "maxMs": 19.79999999998836
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 2345,
        "materializedPages": 4,
        "selectionSpans": 1758
      }
    },
    {
      "name": "highlighted-edit-character",
      "mode": "edit",
      "textLength": 1,
      "inputTask": {
        "medianMs": 0.10000000000582077,
        "p95Ms": 0.10000000000582077,
        "minMs": 0.10000000000582077,
        "maxMs": 0.10000000000582077
      },
      "frame": {
        "medianMs": 31.10000000000582,
        "p95Ms": 31.10000000000582,
        "minMs": 27.800000000017462,
        "maxMs": 31.10000000000582
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 2.6000000000058208,
        "p95Ms": 2.6999999999825377,
        "minMs": 2.3999999999941792,
        "maxMs": 2.6999999999825377
      },
      "paint": {
        "medianMs": 1.1000000000058208,
        "p95Ms": 1.3000000000174623,
        "minMs": 1,
        "maxMs": 1.3000000000174623
      },
      "selection": {
        "medianMs": 1.3999999999941792,
        "p95Ms": 1.8999999999941792,
        "minMs": 1.1999999999825377,
        "maxMs": 1.8999999999941792
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 2322,
        "materializedPages": 4,
        "selectionSpans": 1738
      }
    },
    {
      "name": "highlighted-suggest-character",
      "mode": "suggest",
      "textLength": 1,
      "inputTask": {
        "medianMs": 0.09999999997671694,
        "p95Ms": 0.10000000000582077,
        "minMs": 0,
        "maxMs": 0.10000000000582077
      },
      "frame": {
        "medianMs": 68.09999999997672,
        "p95Ms": 72,
        "minMs": 65.89999999999418,
        "maxMs": 72
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 3.6000000000058208,
        "p95Ms": 4.899999999994179,
        "minMs": 3.099999999976717,
        "maxMs": 4.899999999994179
      },
      "paint": {
        "medianMs": 13.900000000023283,
        "p95Ms": 15.799999999988358,
        "minMs": 13.700000000011642,
        "maxMs": 15.799999999988358
      },
      "selection": {
        "medianMs": 16.89999999999418,
        "p95Ms": 17.60000000000582,
        "minMs": 16.60000000000582,
        "maxMs": 17.60000000000582
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 2324,
        "materializedPages": 4,
        "selectionSpans": 1739
      }
    },
    {
      "name": "tracked-editing-character",
      "mode": "edit",
      "textLength": 1,
      "inputTask": {
        "medianMs": 0.09999999997671694,
        "p95Ms": 0.10000000000582077,
        "minMs": 0,
        "maxMs": 0.10000000000582077
      },
      "frame": {
        "medianMs": 31,
        "p95Ms": 31.20000000001164,
        "minMs": 30.60000000000582,
        "maxMs": 31.20000000001164
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 3.1000000000058208,
        "p95Ms": 3.2999999999883585,
        "minMs": 2.599999999976717,
        "maxMs": 3.2999999999883585
      },
      "paint": {
        "medianMs": 1.8999999999941792,
        "p95Ms": 2.2000000000116415,
        "minMs": 1.7999999999883585,
        "maxMs": 2.2000000000116415
      },
      "selection": {
        "medianMs": 2,
        "p95Ms": 2.3999999999941792,
        "minMs": 1.8999999999941792,
        "maxMs": 2.3999999999941792
      },
      "work": {
        "placed": 3,
        "total": 620,
        "reusedPages": 151,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 2119,
        "materializedPages": 3,
        "selectionSpans": 1740
      }
    },
    {
      "name": "tracked-suggesting-character",
      "mode": "suggest",
      "textLength": 1,
      "inputTask": {
        "medianMs": 0.09999999997671694,
        "p95Ms": 0.10000000000582077,
        "minMs": 0,
        "maxMs": 0.10000000000582077
      },
      "frame": {
        "medianMs": 58.70000000001164,
        "p95Ms": 66.39999999999418,
        "minMs": 56.79999999998836,
        "maxMs": 66.39999999999418
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 3.8000000000174623,
        "p95Ms": 4.2000000000116415,
        "minMs": 3.7000000000116415,
        "maxMs": 4.2000000000116415
      },
      "paint": {
        "medianMs": 12.60000000000582,
        "p95Ms": 15.89999999999418,
        "minMs": 11.89999999999418,
        "maxMs": 15.89999999999418
      },
      "selection": {
        "medianMs": 19.5,
        "p95Ms": 20.29999999998836,
        "minMs": 19,
        "maxMs": 20.29999999998836
      },
      "work": {
        "placed": 3,
        "total": 620,
        "reusedPages": 151,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 2121,
        "materializedPages": 3,
        "selectionSpans": 1741
      }
    },
    {
      "name": "tracked-suggesting-wrap",
      "mode": "suggest",
      "textLength": 100,
      "inputTask": {
        "medianMs": 0.10000000000582077,
        "p95Ms": 0.10000000000582077,
        "minMs": 0,
        "maxMs": 0.10000000000582077
      },
      "frame": {
        "medianMs": 58.79999999998836,
        "p95Ms": 60.59999999997672,
        "minMs": 56.5,
        "maxMs": 60.59999999997672
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 3.1000000000058208,
        "p95Ms": 3.2999999999883585,
        "minMs": 3,
        "maxMs": 3.2999999999883585
      },
      "paint": {
        
… truncated …
Browser baseline (full JSON)
{
  "schema": 1,
  "fixture": "synthetic-long-edit.docx",
  "fixtureSha256": "ca8ee28a8d40ae7914a820303b96ddbbe8f06d37325b0fc2ae6f1140aea96321",
  "environment": {
    "browser": "chromium",
    "browserVersion": "159.0.8154.6",
    "platform": "linux",
    "arch": "x64"
  },
  "config": {
    "runs": 5,
    "warmup": 2,
    "sustainedEdits": 120,
    "reviewRail": true,
    "viewport": "1440x1000@1x",
    "injectedDelayMs": 0
  },
  "scenarios": [
    {
      "name": "521pp-editing-character",
      "mode": "edit",
      "textLength": 1,
      "inputTask": {
        "medianMs": 0,
        "p95Ms": 0.09999999997671694,
        "minMs": 0,
        "maxMs": 0.09999999997671694
      },
      "frame": {
        "medianMs": 45.79999999998836,
        "p95Ms": 50.09999999997672,
        "minMs": 42,
        "maxMs": 50.09999999997672
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 16.20000000001164,
        "p95Ms": 23,
        "minMs": 15.200000000011642,
        "maxMs": 23
      },
      "paint": {
        "medianMs": 3.5,
        "p95Ms": 3.7999999999883585,
        "minMs": 3.400000000023283,
        "maxMs": 3.7999999999883585
      },
      "selection": {
        "medianMs": 0.7999999999883585,
        "p95Ms": 0.9000000000232831,
        "minMs": 0.7000000000116415,
        "maxMs": 0.9000000000232831
      },
      "work": {
        "placed": 11,
        "total": 6540,
        "reusedPages": 516,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 3130,
        "materializedPages": 4,
        "selectionSpans": 738
      }
    },
    {
      "name": "521pp-editing-wrap",
      "mode": "edit",
      "textLength": 100,
      "inputTask": {
        "medianMs": 0,
        "p95Ms": 0.1000000000349246,
        "minMs": 0,
        "maxMs": 0.1000000000349246
      },
      "frame": {
        "medianMs": 49.40000000002328,
        "p95Ms": 49.90000000002328,
        "minMs": 46.5,
        "maxMs": 49.90000000002328
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 16.20000000001164,
        "p95Ms": 19.20000000001164,
        "minMs": 15.099999999976717,
        "maxMs": 19.20000000001164
      },
      "paint": {
        "medianMs": 4.600000000034925,
        "p95Ms": 5.900000000023283,
        "minMs": 4.099999999976717,
        "maxMs": 5.900000000023283
      },
      "selection": {
        "medianMs": 1.900000000023283,
        "p95Ms": 2.5,
        "minMs": 1.7999999999883585,
        "maxMs": 2.5
      },
      "work": {
        "placed": 11,
        "total": 6540,
        "reusedPages": 516,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 3151,
        "materializedPages": 4,
        "selectionSpans": 758
      }
    },
    {
      "name": "521pp-suggesting-character",
      "mode": "suggest",
      "textLength": 1,
      "inputTask": {
        "medianMs": 0.09999999997671694,
        "p95Ms": 0.20000000001164153,
        "minMs": 0,
        "maxMs": 0.20000000001164153
      },
      "frame": {
        "medianMs": 103.29999999998836,
        "p95Ms": 105.59999999997672,
        "minMs": 100.59999999997672,
        "maxMs": 105.59999999997672
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 17.70000000001164,
        "p95Ms": 19.20000000001164,
        "minMs": 16.099999999976717,
        "maxMs": 19.20000000001164
      },
      "paint": {
        "medianMs": 18.5,
        "p95Ms": 19.20000000001164,
        "minMs": 18.100000000034925,
        "maxMs": 19.20000000001164
      },
      "selection": {
        "medianMs": 21.79999999998836,
        "p95Ms": 22,
        "minMs": 21.70000000001164,
        "maxMs": 22
      },
      "work": {
        "placed": 11,
        "total": 6540,
        "reusedPages": 516,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 3133,
        "materializedPages": 4,
        "selectionSpans": 739
      }
    },
    {
      "name": "editing-character",
      "mode": "edit",
      "textLength": 1,
      "inputTask": {
        "medianMs": 0,
        "p95Ms": 0.20000000001164153,
        "minMs": 0,
        "maxMs": 0.20000000001164153
      },
      "frame": {
        "medianMs": 30.900000000023283,
        "p95Ms": 31.099999999976717,
        "minMs": 30.400000000023283,
        "maxMs": 31.099999999976717
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 3.5,
        "p95Ms": 5.2000000000116415,
        "minMs": 3.2999999999883585,
        "maxMs": 5.2000000000116415
      },
      "paint": {
        "medianMs": 1.3999999999650754,
        "p95Ms": 2,
        "minMs": 1.2999999999883585,
        "maxMs": 2
      },
      "selection": {
        "medianMs": 1.5,
        "p95Ms": 2.2000000000116415,
        "minMs": 1.400000000023283,
        "maxMs": 2.2000000000116415
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 2322,
        "materializedPages": 4,
        "selectionSpans": 1738
      }
    },
    {
      "name": "editing-wrap",
      "mode": "edit",
      "textLength": 100,
      "inputTask": {
        "medianMs": 0,
        "p95Ms": 0.1000000000349246,
        "minMs": 0,
        "maxMs": 0.1000000000349246
      },
      "frame": {
        "medianMs": 38.5,
        "p95Ms": 41.79999999998836,
        "minMs": 31.199999999953434,
        "maxMs": 41.79999999998836
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 3,
        "p95Ms": 3.7999999999883585,
        "minMs": 2.900000000023283,
        "maxMs": 3.7999999999883585
      },
      "paint": {
        "medianMs": 4.300000000046566,
        "p95Ms": 4.899999999965075,
        "minMs": 4.2999999999883585,
        "maxMs": 4.899999999965075
      },
      "selection": {
        "medianMs": 5.400000000023283,
        "p95Ms": 5.5,
        "minMs": 5.2999999999883585,
        "maxMs": 5.5
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 2344,
        "materializedPages": 4,
        "selectionSpans": 1758
      }
    },
    {
      "name": "suggesting-character",
      "mode": "suggest",
      "textLength": 1,
      "inputTask": {
        "medianMs": 0.09999999997671694,
        "p95Ms": 0.09999999997671694,
        "minMs": 0,
        "maxMs": 0.09999999997671694
      },
      "frame": {
        "medianMs": 77.60000000003492,
        "p95Ms": 80,
        "minMs": 75.70000000001164,
        "maxMs": 80
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 3.7000000000116415,
        "p95Ms": 4.2999999999883585,
        "minMs": 3.599999999976717,
        "maxMs": 4.2999999999883585
      },
      "paint": {
        "medianMs": 16.20000000001164,
        "p95Ms": 17.20000000001164,
        "minMs": 15.799999999988358,
        "maxMs": 17.20000000001164
      },
      "selection": {
        "medianMs": 20.29999999998836,
        "p95Ms": 20.5,
        "minMs": 19.900000000023283,
        "maxMs": 20.5
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 2324,
        "materializedPages": 4,
        "selectionSpans": 1739
      }
    },
    {
      "name": "suggesting-wrap",
      "mode": "suggest",
      "textLength": 100,
      "inputTask": {
        "medianMs": 0.09999999997671694,
        "p95Ms": 0.1000000000349246,
        "minMs": 0,
        "maxMs": 0.1000000000349246
      },
      "frame": {
        "medianMs": 76.20000000001164,
        "p95Ms": 89.59999999997672,
        "minMs": 71,
        "maxMs": 89.59999999997672
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 3.7000000000116415,
        "p95Ms": 6.400000000023283,
        "minMs": 3.400000000023283,
        "maxMs": 6.400000000023283
      },
      "paint": {
        "medianMs": 16.29999999998836,
        "p95Ms": 23.099999999976717,
        "minMs": 15.799999999988358,
        "maxMs": 23.099999999976717
      },
      "selection": {
        "medianMs": 20.29999999998836,
        "p95Ms": 20.599999999976717,
        "minMs": 17.20000000001164,
        "maxMs": 20.599999999976717
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 2345,
        "materializedPages": 4,
        "selectionSpans": 1758
      }
    },
    {
      "name": "highlighted-edit-character",
      "mode": "edit",
      "textLength": 1,
      "inputTask": {
        "medianMs": 0.09999999997671694,
        "p95Ms": 0.1000000000349246,
        "minMs": 0,
        "maxMs": 0.1000000000349246
      },
      "frame": {
        "medianMs": 31.20000000001164,
        "p95Ms": 37.20000000001164,
        "minMs": 31,
        "maxMs": 37.20000000001164
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 3,
        "p95Ms": 3.599999999976717,
        "minMs": 2.800000000046566,
        "maxMs": 3.599999999976717
      },
      "paint": {
        "medianMs": 1.2000000000116415,
        "p95Ms": 1.7999999999883585,
        "minMs": 1.099999999976717,
        "maxMs": 1.7999999999883585
      },
      "selection": {
        "medianMs": 1.5,
        "p95Ms": 2.2000000000116415,
        "minMs": 1.2999999999883585,
        "maxMs": 2.2000000000116415
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 2322,
        "materializedPages": 4,
        "selectionSpans": 1738
      }
    },
    {
      "name": "highlighted-suggest-character",
      "mode": "suggest",
      "textLength": 1,
      "inputTask": {
        "medianMs": 0.1000000000349246,
        "p95Ms": 0.1000000000349246,
        "minMs": 0,
        "maxMs": 0.1000000000349246
      },
      "frame": {
        "medianMs": 72.5,
        "p95Ms": 74.90000000002328,
        "minMs": 70.60000000003492,
        "maxMs": 74.90000000002328
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 3.599999999976717,
        "p95Ms": 4.7000000000116415,
        "minMs": 3.5,
        "maxMs": 4.7000000000116415
      },
      "paint": {
        "medianMs": 15,
        "p95Ms": 16.29999999998836,
        "minMs": 14.700000000011642,
        "maxMs": 16.29999999998836
      },
      "selection": {
        "medianMs": 17.399999999965075,
        "p95Ms": 18.5,
        "minMs": 17,
        "maxMs": 18.5
      },
      "work": {
        "placed": 13,
        "total": 3200,
        "reusedPages": 154,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 2324,
        "materializedPages": 4,
        "selectionSpans": 1739
      }
    },
    {
      "name": "tracked-editing-character",
      "mode": "edit",
      "textLength": 1,
      "inputTask": {
        "medianMs": 0,
        "p95Ms": 0.09999999997671694,
        "minMs": 0,
        "maxMs": 0.09999999997671694
      },
      "frame": {
        "medianMs": 30.600000000034925,
        "p95Ms": 31.20000000001164,
        "minMs": 30.5,
        "maxMs": 31.20000000001164
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 3.3999999999650754,
        "p95Ms": 3.8999999999650754,
        "minMs": 3.099999999976717,
        "maxMs": 3.8999999999650754
      },
      "paint": {
        "medianMs": 2.2000000000116415,
        "p95Ms": 2.2000000000116415,
        "minMs": 2,
        "maxMs": 2.2000000000116415
      },
      "selection": {
        "medianMs": 2.2999999999883585,
        "p95Ms": 2.5,
        "minMs": 2.099999999976717,
        "maxMs": 2.5
      },
      "work": {
        "placed": 3,
        "total": 620,
        "reusedPages": 151,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 2119,
        "materializedPages": 3,
        "selectionSpans": 1740
      }
    },
    {
      "name": "tracked-suggesting-character",
      "mode": "suggest",
      "textLength": 1,
      "inputTask": {
        "medianMs": 0.09999999997671694,
        "p95Ms": 0.20000000001164153,
        "minMs": 0,
        "maxMs": 0.20000000001164153
      },
      "frame": {
        "medianMs": 63.5,
        "p95Ms": 67.5,
        "minMs": 61.100000000034925,
        "maxMs": 67.5
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 3.599999999976717,
        "p95Ms": 5,
        "minMs": 3.2000000000116415,
        "maxMs": 5
      },
      "paint": {
        "medianMs": 13.700000000011642,
        "p95Ms": 15.700000000011642,
        "minMs": 12.799999999988358,
        "maxMs": 15.700000000011642
      },
      "selection": {
        "medianMs": 21.20000000001164,
        "p95Ms": 21.20000000001164,
        "minMs": 21.099999999976717,
        "maxMs": 21.20000000001164
      },
      "work": {
        "placed": 3,
        "total": 620,
        "reusedPages": 151,
        "fullPasses": 1,
        "staleDiscards": 0,
        "cancelledRuns": 0
      },
      "dom": {
        "nodes": 2121,
        "materializedPages": 3,
        "selectionSpans": 1741
      }
    },
    {
      "name": "tracked-suggesting-wrap",
      "mode": "suggest",
      "textLength": 100,
      "inputTask": {
        "medianMs": 0.09999999997671694,
        "p95Ms": 0.09999999997671694,
        "minMs": 0,
        "maxMs": 0.09999999997671694
      },
      "frame": {
        "medianMs": 64.29999999998836,
        "p95Ms": 68.70000000001164,
        "minMs": 61,
        "maxMs": 68.70000000001164
      },
      "eventDuration": null,
      "eventDelay": null,
      "layout": {
        "medianMs": 3.6000000000349246,
        "p95Ms": 5.599999999976717,
        "minMs": 3.2999999999883585,
        "maxMs": 5.599999999976717
      },
      "paint": {
        "medianMs": 13.400000000023283,
        "p95Ms": 14.5,
        "minMs": 13,
        "maxMs": 14.5
      },
      "selection": {
        "medianMs": 21.70000000001164,
        "p95Ms": 21.900000
… truncated …

This branch was successfully deployed

1 active deployment
Preview — 8bb25ef8 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant