Tasks: date phrase corpus and parser benchmark #590
Open
opened 2026-10-18 18:46:09 +00:00 by kayg
·
28 comments
No Branch/Tag specified
main
port/tasks-float-2
fix/train-1116-2
fix/train-1116-3
fix/train-1116-1
fix/flake-1134
fix/server-1182
dev
port/notes-float-3c
docs/auto-update-ig
feat/dav-transport
port/tasks-float-1
wip/mail1011-sv-order-1116
fix/flake-1179
fix/flake-1178
fix/guards-1153-fsio-split
fix/guards-1153-notes-split-we
fix/guards-1153-notes-lib
fix/guards-1153-notes-home
fix/guards-1153-ui-primitives
fix/guards-1153-primitives-e2e
fix/guards-1153-visibility-doc
feat/paper-grey-1116
fix/flake-1165
fix/flake-1119
docs/imap-766-plan-v2
fix/e2e-unique-ports
t3/paged-search-reconcile-final
wip/mail1011-final-1115
docs/tasks-float-port
perf/editor-first-paint-1c
feat/imap-notes-fetch
feat/imap-notes-projection
feat/imap-notes-readonly
feat/imap-notes-auth
feat/imap-notes-server-foundation
wip/mail1011-txn-ownvocab-1115
wip/mail1011-txn-novocab-1115
perf/p1117-final-harness
perf/single-shot-repeats
port/tasks-matrix
wip/mail1011-txn-1115
fix/static-gates-1155
feat/files-s1-identity-r7
fix/files-r7-idle-loop
fix/daily-train-1152
port/notes-float
fix/editor-tables-test-types
port/notes-float-listscript
feat/tasks-actions
port/notes-float-phone-preload
perf/sound-comparator
port/notes-float-listscroll
port/notes-float-budgets
port/notes-float-suite-fix-b
port/notes-float-sidebar-fix
port/notes-float-trim
port/notes-float-3-lists
fix/attachments-meta-capability
docs/carddav-writes-v2-plan
feat/contacts-companion-pure
issue/carddav-read-perf-fix-r2
issue/carddav-read-r2
port/notes-float-devsync2
review/calendar-2
review/switcher-a-pills
port/notes-float-switcher-a
port/port-tables-2
review/switcher-ends
wip/whiteboard-s1-1114
port/port-tables
wip/mail1011-perfneutral
review/photo-tint
port/notes-float-shell
wip/local/collections-db
wip/local/mail-p1
wip/local/cold-growth-on-tiering
wip/local/tiering-v3-s1
wip/local/wal1051-cap
wip/local/tiering-v3-s1-resume
wip/local/index-position-startup-scan
port/notes-float-flat
port/notes-float-promote
wip/handover/mail1011-candidate
wip/handover/files-s1-candidate
port/notes-float-shell-only
port/notes-float-perf
feat/whiteboard-s1
feat/tiering-v5
fix/app-switch-hitch
wip/local/files-s1-dev-v4-final
feat/files-s1-dev-v4
fix/c2-glass-shared
feat/flat-lists
wip/handover/whiteboard-s1-resume
wip/att-lazy-861
feat/switcher-browse
wip/att-lazy-860
feat/tasks-float
recovered/flat-backup-candidate
perf/stalls-1054-kc
land/ai-toolbar
feat/collections-db
feat/collections-db-fixes
codex/mail-1011-redesign-20261111
fix/ai-toolbar
backup/macos-vm/st3-head
perf/trim-candidate-phonestack
feat/switcher-three
fix/1051-index-idle-checkpoint
perf/stalls-1054-kb
perf/stalls-1054-k
perf/stalls-1054-r3
fix/c2-contrast-tail
perf/stalls-1054-r3-preview
feat/collections-before
feat/tiering-v4
fix/timelog-caret
wip/local/tasks-actions
docs/tasks-writes-v2-plan
st3-r3
feat/pass8
review/calendar-2-before-1111
wip/tiering-v3-cold4
perf/stalls-1054-r2
fix/suite-A4
fix/suite-A5-probe
fix/suite-A6
fix/suite-A3
fix/suite-A2
fix/suite-A5
fix/suite-A1
wip/local/attachments-861-fix
feat/contrast
wip/local/ports-861
storage/wal-checkpoint-off-save-1051
wip/local/mail-1011-reconcile-20261110
feat/style-sheet-fixes
feat/money-round
perf/stalls-1054
wip/tiering-v3-cold5
t3/mail-1011-liveness
feat/iphone-fixes
feat/notes-approve
wip/local/shrow-work
feat/files-s1-identity
feat/quickfix
wip/tiering-v3-cold
wip/local/shared-row-swipes
backup/macos-vm/pfx-B
backup/macos-vm/pfx-C
backup/macos-vm/pfx-D
feat/contrast-r1
feat/tiering-v3-s2-tags
feat/folder-drop
t3/photos-s1
feat/tiering-v3-s1-namespace
wip/local/photos-s1
t3/photos-plan-slice-one
recovered/backup/p1b-61505
t3/paged-search-reconcile
t3/smooth-pane-transitions
t3/index-position-startup-scan
fix/private-staging-759b-r2
backup/macos-vm/hk/hk1009/pr877
backup/macos-vm/hk/hk1009/pr878
docs/undo-block-ids-plan
fix/undo-768
backup/macos-vm/hk/hk1009/pr875
backup/macos-vm/hk/hk1009/pr904
proto/block-identity-v7d
backup/macos-vm/hk/hk1009/pr846
backup/macos-vm/hk/hk1009/pr860
backup/macos-vm/hk/hk1009/pr861
backup/macos-vm/hk/hk1009/pr849
backup/macos-vm/hk/hk1009/pr848
backup/macos-vm/hk/hk1009/pr853
backup/macos-vm/hk/hk1009/pr957
backup/macos-vm/hk/hk1009/pr893
backup/macos-vm/hk/hk1009/pr889
backup/macos-vm/hk/hk1009/pr902
docs/imap-notes-plan
docs/quota-plan-2
fix/parallel-test-flakes
docs/calendar-backend-v2-plan
feat/calendar-ical-converter
backup/macos-vm/hk/hk1009/pr808
docs/contacts-import-v2-plan
issue/610-pm-midnight
feat/calendar-v2-s1-containment
backup/macos-vm/hk/hk1009/pr854
backup/macos-vm/hk/hk1009/pr845
backup/macos-vm/hk/hk1009/pr917
docs/dav-recorder-v2-plan
plan/previews-865
plan/save-log-durable-entry
backup/macos-vm/hk/hk1009/pr934
fix/e2e-data-on-ram
backup/macos-vm/hk/hk1009/pr888
feat/appwindow3
feat/appwindow2
feat/appwindow
feat/money-p1
feat/keys-sheet
review/calendar-2-themes
feat/smooth-cursor
fix/float-style
review/calendar-2-float
release/2026-11-06-hotfix
archive/port/rows-drop-code
archive/port/rows-actions
archive/port/rows
scratch/tasks-894-ui-gates
review/calendar-2-night-wip
recovered/flaky/toast-reduced
release/2026-11-05
archive/flaky/rows-drop-fixed
archive/flaky/rows-actions
archive/flaky/rows
sim/bm15-final
sim/bm15-bis-932
sim/bm15-bis-909
sim/bm15
sim/bm15-bis-887
perf/tiering-option-b
fix/sw-lazy-precache
archive/plan/save-log-durable-entry
mock/money-fix2
archive/fix/e2e-data-on-ram
mock/appearance-all
mock/pill-press
mock/pill-press-mac
backup/macos-vm/appearance-after
mock/auto-swipes
mock/mail-actions
backup/macos-vm/mock/mail-actions
mock/money-static
archive/review/standards-917
perf/tiering-761-fix
mock/type-audit
mock/third-pane
feat/contacts-import-v2-s1
perf/executor-hot-path
archive/port/hidden-blocks
archive/port/devices
scratch/executor-on-894
scratch/executor-spans2
scratch/executor-spans
archive/port/rows-drop
feat/tiering-761-d-scale
feat/tiering-761-c-index
feat/tiering-761-b-reader
archive/review/sharing-pr3-review-9fec3d1f
perf/ports-lazy-budgets
feat/tiering-761-a-migration
archive/review/sharing-pr3-review
archive/review/sharing-pr3-review-code
archive/plan/previews-865
archive/port/port-attachments-3
archive/port/contacts-merge
fix/motion-audit-859
fix/motion-audit-859-mac
archive/port/port-pickers
archive/port/port-tables-2
archive/port/port-tables
recovered/local/sharing-s1-pr2-room-snapshot-candidate
archive/fix/parallel-test-flakes-code-minipc01
docs/imap-766-readonly-slice
feat/dav-recorder-v3
research/788-diagnosis
archive/fix/parallel-test-flakes
archive/perf/pr792-cold-index-edit
docs/sharing-slice-1
recovered/feat/dav-recorder-v2
recovered/feat/dav-recorder-v2-edd7bbb
spike/imap-766-s0-cases
archive/fix/undo-768
recovered/feat/dav-recorder
recovered/feat/dav-recorder-901acd4
feat/contacts-import
perf/cold-growth-on-764
perf/cold-growth-on-tiering
recovered/feat/tasks-set-status
feat/tasks-move-reorder
feat/tasks-delete-promote-duplicate
feat/carddav-writes
perf/quota-on-tiering
perf/quota-simple
perf/cold-growth-on-quota-stack
recovered/perf/cold-growth-on-tiering
feat/calendar-identity
feat/calendar-event-parser
feat/calendar-props-maps
port/glass-when-ring
recovered/feat/tiering-761-s1-wip-8132a84
recovered/feat/tiering-761-s1-wip-9da4094
recovered/feat/tiering-761-s1-wip-724512c
recovered/feat/tiering-761-s1-wip-66e667e
recovered/feat/tiering-761-s1
wip/6by32-01-tier-761-s1-pause-20261030
spike/imap-766-s0
wip/6by32-02-calternal-pause-20261030
wip/8by64-01-review-688-pause-20261030
wip/6by32-01-verify-744-pause-20261030
wip/6by32-01-verify-742-pause-20261030
fix/private-staging-759b
wip/6by32-01-review-748-pause-20261030
wip/6by32-01-review-733c-pause-20261030
wip/6by32-01-review-733b-pause-20261030
review/calendar-month
wip/local/bm15-trash
plan/759b-staging
review/767b-tests
review/preview-2026-10-29
docs/tiering-731-plan
wip/c6b02-review-733d
wip/c6b02-bm1-full-a
docs/deploy-plan
fix/storage-owner-liveness-642
fix/storage-fix-7
feat/tiering-731
wip/tiering-731-first-attempt
perf/idle-honest-2
fix/storage-private-tmp-642-dev
fix/storage-exact-file-quarantine-642
perf/one-flush-save
review/calendar-static
review/indexing-ring
review/when-field-2
proto/block-identity-2-review
proto/block-identity-review
review/when-field
issue/tasks-create-ids
issue/tasks-create
review/combined
review/task-polish
review/top-buttons
review/q1-q5
archive/integ325-293
archive/integ325-ci
issue/calendar-adr
archive/old/train/2026-10-23bk2
archive/old/train/2026-10-23bk
issue/469-mockup-9a
issue/smart-tasks-mockup
issue/469-menus
issue/652-signout-flake
issue/652-history-fix7
issue/652-history-fix6
archive/old/issue/spring-check-perf
issue/spring-check-perf
issue/659-rename-fast
archive/old/train/2026-10-21ar
issue/search-hardening-3
issue/652-history-fix5
issue/660-port-sheets-glass
issue/652-history-fix4
issue/652-history-fix3
issue/652-history-fix2
issue/652-history-flake
train/2026-10-21an
issue/settings-admin-port
issue/search-port
train/2026-10-20am
issue/storage-split-fix2
issue/storage-split
archive/old/issue/folder-ids-fix
train/2026-10-20al
archive/old/issue/folder-ids
train/2026-10-20ak
issue/tables-mockup
train/2026-10-19aj
train/2026-10-19ai
issue/469-merge-fixes
issue/sidebar-band
archive/old/issue/608-settings-spec
train/2026-10-19ah
issue/swipe-offscreen
train/2026-10-19ag
archive/old/issue/590-nlp-adr
archive/old/issue/587-event-after-write-2
train/2026-10-19af
archive/old/issue/587-event-after-write
issue/469-pill-room-c
issue/469-pill-room
train/2026-10-19ae
issue/469-narrow-handle
issue/397-ios-swipe-2
issue/469-desk-fixes
archive/old/issue/auto-update-adr
issue/469-filter-gap
issue/469-port-1b
issue/442-opacity-flake
issue/327-web-fast-3
archive/old/issue/469-port-1
issue/469-port-1
issue/327-web-fast-2
archive/old/issue/327-web-fast
archive/old/issue/425-stt-bench-vq1
archive/old/issue/445-no-bleed
archive/old/issue/400-swipe-mockup-2
issue/426-client-review
issue/426-client-2
issue/426-client
archive/old/issue/476-safe-area-lab
archive/old/issue/445-top-light
issue/471-blocks-mockup
archive/old/issue/448-links-app-2
archive/old/issue/448-links-app
archive/old/issue/398-cold-links
issue/434-442-small-2
issue/434-442-small
archive/old/issue/398-unload
archive/old/issue/445-bottom-band
issue/445-bottom-band
issue/351-rem-3
issue/351-rem-2
issue/351-rem
archive/old/issue/327-first-note
issue/395-width-phone
archive/old/issue/327-typing
issue/396-ios-edges
issue/397-ios-swipe
archive/old/issue/327-notes-index
issue/345-347-contrast-empty-2
archive/old/issue/44-arenas
issue/44-arenas
archive/integ325
archive/old/issue/327-perf-harness
archive/old/issue/44-thp
issue/44-thp
archive/old/issue/285-sticky-pills
archive/old/issue/44-trim-3
issue/44-trim-3
archive/old/issue/165-cards
archive/old/issue/165-picker-2
archive/old/issue/212-multi-select
No results found.
Labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/calternal#590
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overnight measurement for task date phrases (T3, L17: our own TickTick-quality parser, breakage-tested on a corpus).
Research only, no product code. Results in calternal-research and here.
Started research-only work for this issue. Branch: none created (the local product checkout is on dev); base SHA:
a0785f1067. I am reading the existing benchmark reports first, then I will build the corpus and run the requested comparisons.Finding: the earlier verification report had no task-date accuracy or WASM size measurements; it recommended an owned grammar with chrono-node tests as an oracle. Source evidence: Todoist documents “Friday” as the next Friday and “next Friday” as the Friday in the following week (https://www.todoist.com/help/todoist/features/schedule-a-date-and-time-for-your-todoist-tasks-q7VobO). Things documents
17d,17d from jul9, and3rd wed jul 2026, and says relative dates work in both When and Deadline (https://culturedcode.com/things/support/articles/9780167/). TickTick documents weekly weekday reminders at a chosen time and recurrence end date/count, but its public help page is picker-oriented rather than a detailed inline grammar (https://help.ticktick.com/articles/7055782206349770752). I am including these as provenance and covering cases, not assuming identical vendor semantics.Corpus construction finding: the pinned chrono-node v2.10.3 English test files contain 545 extractable
testSingleCaseinputs (MIT; source commit d4fe7e39015c818b271d74789fb96f74777421d0). The working corpus now has 815 rows, including 160 authored no-date breakage titles and vendor-documented examples. Source: https://github.com/wanasit/chrono/tree/v2.10.3/test/en (MIT, recorded per row). All cases use a fixed 2026-10-19 09:00 Europe/Berlin reference so parser comparisons are deterministic; source test strings are retained, while their original anchors are normalized. Expected spans and values are being filled/checked before scoring.Finding: chrono-node #604 documents a cross-month range failure on
26 July - 22 Augustin 2.8.3; the issue says the output was corrected by 2.10.1. I added this as an independent corpus regression for 2.10.3, anchored before July 2026. Source: https://github.com/wanasit/chrono/issues/604. The source review also found the newerwhenparsev0.1 scope explicitly excludes timezone names and recurrence, whiledatewisev0.2.0 advertises locale, time zones, DST, and date spans; both are included in the comparison. Sources: https://crates.io/crates/whenparse and https://github.com/LostWarrior/Datewise.Corpus update: the final JSONL now has 823 cases: 545 chrono-node v2.10.3 English test inputs plus 278 authored/documented cases, including 160 date-shaped task-title negatives. Fixed reference: 2026-10-19 09:00 Europe/Berlin. The upstream oracle rows are labeled separately from independent authored accuracy; four deliberately ambiguous cases are excluded from exact scoring. Recurrence fixtures carry RFC 5545 rule fields with DTSTART stored separately where the vendor example supplies a start date. Corpus and harness are in the research workspace only; no product files or branch changes.
Corpus gate: CORPUS_STATUS=PASS cases=823 breakage=160 ambiguous=4 unresolved=0 span_errors=0. I checked every UTF-16 span against its input. The pinned chrono-node source cases now have oracle values and spans populated; the 278 authored and documented cases remain the independent accuracy set. Jiff 0.2.38 is the current registry version, and its documented defaults include several timezone database sources; I am measuring the minimal grammar both with no bundled database and with bundled tzdb. Source: https://docs.rs/crate/jiff/0.2.38/features
First perf result:
date_time_parseron the i9-9900K perf VM (4 vCPU), corpus 823 / 15,773 growing-prefix parses, run 1/5 had p50 6,402.18 µs and p95 8,517.08 µs; load 2.51→1.28, CPU steal 2.757%. This clean run is accepted. The other four runs are in progress. At this speed it misses the 1 ms target before any phone scaling.The 45-run gate passed (five accepted runs for each of nine parsers; all attempts over 5% steal were repeated). On the independent authored positive cases, exact values were: chrono-node 61/114, whichtime 43/114, date_time_parser 50/114; the other five Rust candidates returned zero exact inline authored positives because they parse the whole title instead of extracting a date phrase. Breakage false positives: chrono-node 41/160, whichtime 56/160, date_time_parser 96/160. The Rust date_time_parser wrapper also panicked on 18 full inputs, including
Aug 96, invalid2024/13/1, and month-rolloverPlan in 1 month. No tested library produced an exact RFC 5545 rule for any of the 15 recurrence cases. Source-suite scores are reported separately because those expected values come from chrono-node itself.Correction to the previous update: it is the other six Rust candidates (interim, chrono-english, jiff-english, whenparse, datewise, and natural-date-rs) that returned zero exact authored positives in the inline-task cases.
Additional library flaw: interim 0.2.1 returned no exact values for the 114 authored positive inline cases, despite 157/274 authored all-case exactness from rejecting date-like titles. The low 3/160 breakage false positives are offset by seven panics on the full corpus, including
Thursday 9AM,Sun 15Sep, and10 August - 12 September. Its five accepted perf runs on the 4-vCPU i9-9900K (823 cases, 15,773 prefixes/run) had median p50 0.135 µs and median p95 1.338 µs; steal was 0% on all accepted runs.Size measurements completed on the perf VM. Bun 1.4.2 minified the chrono-node root entry to 48,471 bytes; gzip -9 produced 13,480 bytes (267 modules bundled). A research-only Jiff 0.2.38 grammar probe built with Rust 1.98.1 and opt-level=z, then Binaryen 133 wasm-opt -Oz, measured 168,416 bytes without bundled TZDB and 423,219 bytes with Europe/Berlin lookup and bundled TZDB. The probe is a lower-bound estimate: it excludes wasm-bindgen/UniFFI glue, full production grammar, and JSON serialization.
Finished the research pass for issue #590. No branch, product commit, PR, merge, or deployment was created. Product HEAD remained
a0785f1067c617755fbb00605aa0d5bb39163569(the starting base). The report and enriched corpus are in/home/kayg/Developer/calternal-research/.Gate output:
All perf VM work files under
/dev/shm/nlp590were removed;/dev/shmreturned to 0 used. I did not close this issue.kayg decisions (2026-10-19 09:4x IST):
N4 agreed (kayg, 2026-10-19): a time skipped by a clock change moves forward by the jump (2:30 → 3:30, RFC 5545 / Apple Calendar); a repeated hour (clocks back) picks the first. All of N1–N4 settled; parser design can start.
Starting the ADR work on branch issue/590-nlp-adr, based on origin/dev at
1200114c32.Finding: ADR numbers 0049–0052 are already assigned in the in-flight auto-update and photos/files/tasks branches; the checked-out ADR set ends at 0048. I will use 0053. Evidence: git log --all -- docs/adr lists 0049, 0050, 0051 and 0052, including commits
45c79c2and6a2a2eb; origin has issue/auto-update-adr and issue/adrs-photos-files-tasks.Finding: the Jiff WASM probe measured 168,416 optimized bytes without bundled TZDB and 423,219 with it; the report estimates a fuller parser at 185–220 KB and 440–475 KB respectively, before wasm-bindgen or UniFFI glue. Decision for the ADR: bundle timezone data in v1 to keep wall-time gap/fold resolution identical across Rust targets and set a 500 KB optimized WASM core cap. Evidence: nlp-bench-2026-10-19.md, Bundle and WASM size; nlp-corpus/wasm-estimate and harness/measure_sizes.sh.
Finding: no candidate is suitable as the parser. On the independent authored positives, chrono-node was best at 61/114 exact; it also parsed 41/160 date-shaped title traps and produced 0/15 exact recurrence rules. The corpus contains 823 cases, 160 traps, and 15,773 growing-prefix samples per benchmark run. Decision for the ADR: own a tokenizer plus small explicit rule set; retain chrono-node as a test oracle only. The 4× phone estimate is not a phone measurement, so the ADR makes target-device latency a release gate rather than claiming it already passes. Evidence: /home/kayg/Developer/calternal-research/nlp-bench-2026-10-19.md and nlp-corpus/corpus.jsonl.
Finding: the research corpus has four deliberately ambiguous cases: “Call at 5”, “Call at 9”, “Call 5”, and the documented region-dependent “Schedule 10-3 9”. N2 now resolves the three hour cases from the local time without asking; N3 resolves the all-number date by app locale. The ADR treats these as product goldens under the settled rules instead of leaving them excluded. Evidence: corpus.jsonl rows own-0050 through own-0052 and own-ambiguous-things; decisions recorded in this issue on 2026-10-19.
Finished: committed and pushed branch issue/590-nlp-adr.
Head SHA:
b4df9d5cd1ADR: docs/adr/0053-task-dates-use-our-own-small-parser.md
Gate output:
ADR_LINE_COUNT=101 LIMIT=250 PASS
ADR_INDEX_LINK=PASS
The committed diff check exited 0, the worktree is clean, and the remote branch head matches. No code tests were run; this change only adds the ADR and index entry.
Starting the TypeScript versus Rust→WASM client-engine benchmark in
/home/kayg/Developer/calternal-research/wasm-bench/. Branch: none (research-only directory is not a Git checkout). Base SHA: not applicable. I will report boundary-inclusive and compute-only timings, browser/load conditions, cold start, memory and artifact sizes as the runs complete.Start record update: the reference product base is
origin/devat236fa2ffcdb9892102fdac15161df7fc22e1545a. There is still no working branch because this benchmark lives in the separate research directory.Build finding: the first release WASM attempt downloaded the wasm32 target and started compiling the wasm-bindgen dependencies, then stopped at the host build-script step with
error: linker cc not found. No benchmark result was produced. I am adding a temporary Nix shell with the host C toolchain and will retry through the build slot.Build finding: the Rust release crate compiled successfully, but the automatic wasm-opt validation failed on bulk-memory memory.copy and memory.fill instructions. I am disabling the default optimizer and running Binaryen 132 explicitly with its bulk-memory optimization flag at -O3, as requested. No browser measurements were produced by this attempt.
Measurement finding: the first headless Chromium run had date p50/p95 bins at 0 or 100 microseconds, and WebKit bins at 0, so the default page timer was too coarse for this parser. I stopped that run, discarded its partial results, and am enabling cross-origin isolation to request high-resolution browser timers before repeating all five runs.
Finding from five Chromium and five WebKit runs (headless Playwright, cross-origin isolated). Date samples batch each same-prefix call 64 times to resolve timer precision (5 us Chromium, 20 us WebKit). Median p50 us, TypeScript / wasm-bindgen string / shared UTF-8: Chromium 2.187 / 1.719 / 3.516; WebKit 3.750 / 2.500 / 2.813. Boundary share for the string path is 31.8% / 28.5%, and for shared UTF-8 65.1% / 40.0%. At 50k money rows (7,302,890 bytes), whole-file parse plus totals in ms: Chromium 85.39 / 160.46 / 64.88; WebKit 98.48 / 42.62 / 57.86. Thus shared memory wins in Chromium and the JS-string path wins in WebKit, while string transfer dominates Chromium WASM cost. The 1k incremental percentiles were discarded because WebKit quantized individual calls to zero; I am rerunning incremental edits in 64-call timed batches before final recommendation.
Final findings from five runs each in Chromium, WebKit and iPhone simulator Safari. Per-keystroke p50 us (TypeScript / wasm-bindgen string / shared UTF-8): Chromium 2.187 / 1.641 / 3.203; WebKit 3.125 / 2.188 / 2.813; iPhone simulator 0.937 / 0.625 / 0.937. String WASM saves under 1.3 us per call; module startup medians were 239.84 ms, 8,690.04 ms and 1,360.92 ms respectively, so keep the Composer parser in TypeScript. For a 7,302,890-byte, 50k-record money month, parse+totals medians ms (TypeScript / WASM string / shared UTF-8): Chromium 87.13 / 158.24 / 53.55; WebKit 112.02 / 51.60 / 67.10; iPhone simulator 25.14 / 16.00 / 10.20. At 10k records a WASM route is also faster in all three; Chromium and iPhone favor shared UTF-8, WebKit favors the string API. String input dominated Chromium WASM cost (80.8% boundary share at 50k). For a 50k one-row edit, medians us were Chromium 6.719 TS / 8.672 string / 6.641 shared; WebKit 7.500 / 6.562 / 6.563; iPhone 1.563 / 1.562 / 1.562. Boundary share was about 80–92%, so keep edits in TypeScript by default. All span checksums and integer total vectors matched. The iOS results are from a remote simulator, not physical iPhone hardware; Linux host load reached 56.66 during that run.
Finished. Full benchmark and methods: /home/kayg/Developer/calternal-research/wasm-bench/RESULTS.md
Head SHA: not applicable (the research directory is not a Git checkout).
Gate output (verbatim):
kayg referenced this issue2026-11-05 23:21:12 +00:00