docs(docs): V1-2.1 measured equine size, e2e:sheet-assets citers, logs
The M5 row gives the measured content::text size; §15 and §16.4 point the e2e:sheet-assets rerun to the owner; the walk log carries its script and the HTTP timing lines are committed.
This commit is contained in:
1 parent
9350366913
commit
532c61e087
4 files changed
+52
-6
No files matched your search
@@ -98,10 +98,10 @@ New in this pass:
|
||||
|
||||
Number walk, linear (security gate on `7c4bf12`: `jsonb_path_query` row by row is quadratic on
|
||||
PostgreSQL 17). Raw psql timings on the sandbox, committed as
|
||||
`2026-10-28-v1-2-1-number-walk.out` (rolled back): row by row 138 / 506 / 2 172 ms for 50k /
|
||||
`2026-10-28-v1-2-1-number-walk.out` (one transaction ending in `rollback`; script in its header line below): row by row 138 / 506 / 2 172 ms for 50k /
|
||||
100k / 200k numbers; the shipped walk (one `jsonb_path_query_array` call) 69 / 135 / 267 / 421 ms
|
||||
for 100k / 200k / 400k / 600k. Over
|
||||
HTTP on both stacks, each run: 600 000 numbers (1 801 760 bytes of text) saved in 677-695 ms;
|
||||
HTTP on both stacks, each run (lines extracted in `2026-10-28-v1-2-1-sandbox-timings.out`): 600 000 numbers (1 801 760 bytes of text) saved in 677-695 ms;
|
||||
1 000 000 numbers answered `document.too_large` in 1 019-1 078 ms (budget 2 000 ms).
|
||||
|
||||
Number bomb on the real image (sandbox, re-run on `2379d28`): the shipped function answers
|
||||
|
||||
@@ -1,4 +1,32 @@
|
||||
1f9fa8b
|
||||
-- script:
|
||||
-- -- Number walk timings on the sandbox (rolled back). shipped = private.check_document_structure as committed;
|
||||
-- -- per_row = the same sum over jsonb_path_query row by row (the 3eba6d8 form).
|
||||
-- \timing on
|
||||
-- begin;
|
||||
-- create function pg_temp.per_row(p jsonb) returns bigint language plpgsql as $f$
|
||||
-- declare v jsonb; t bigint := 0;
|
||||
-- begin
|
||||
-- for v in select jsonb_path_query(p, 'strict $.** ? (@.type() == "number")') loop t := t + octet_length(v::text); end loop;
|
||||
-- return t;
|
||||
-- end $f$;
|
||||
-- create temp table d as select n, (select content from public.anatomical_sheet_versions order by version_number limit 1)
|
||||
-- || jsonb_build_object('pad', (select jsonb_agg(0) from generate_series(1, n))) as doc from unnest(array[50000,100000,200000,400000,600000]) n;
|
||||
-- \echo per_row 50000
|
||||
-- select pg_temp.per_row(doc) from d where n = 50000;
|
||||
-- \echo per_row 100000
|
||||
-- select pg_temp.per_row(doc) from d where n = 100000;
|
||||
-- \echo per_row 200000
|
||||
-- select pg_temp.per_row(doc) from d where n = 200000;
|
||||
-- \echo shipped 100000
|
||||
-- select private.check_document_structure(doc) from d where n = 100000;
|
||||
-- \echo shipped 200000
|
||||
-- select private.check_document_structure(doc) from d where n = 200000;
|
||||
-- \echo shipped 400000
|
||||
-- select private.check_document_structure(doc) from d where n = 400000;
|
||||
-- \echo shipped 600000
|
||||
-- select private.check_document_structure(doc) from d where n = 600000;
|
||||
-- rollback;
|
||||
Time: 0.086 ms
|
||||
Time: 1.163 ms
|
||||
Time: 603.977 ms
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
# Sandbox suite timing lines at 2379d28 (pnpm db:sandbox test, four runs), extracted from the run logs
|
||||
== fresh/sandbox-run1.log
|
||||
AT-CAPS TIMING {"document":{"textBytes":2076707,"jsonbBytes":2346648,"cap":2097152,"labelLength":29,"views":64,"annotations":1024,"findingNodes":8192,"depth":8,"groups":1089,"drawings":4,"drawingBytes":2000000},"budgetMs":2000,"save":{"n":7,"min":127,"median":137,"max":155},"submit":{"n":5,"min":4,"median":5,"max":6},"approve":{"n":3,"min":190,"median":285,"max":292},"publish":{"n":3,"min":195,"median":288,"max":303}}
|
||||
NUMBER WALK {"within":{"numbers":600000,"textBytes":1801760,"ms":683},"over":{"numbers":1000000,"status":400,"ms":1026}}
|
||||
Tests 87 passed (87)
|
||||
== fresh/sandbox-run2.log
|
||||
AT-CAPS TIMING {"document":{"textBytes":2076707,"jsonbBytes":2346648,"cap":2097152,"labelLength":29,"views":64,"annotations":1024,"findingNodes":8192,"depth":8,"groups":1089,"drawings":4,"drawingBytes":2000000},"budgetMs":2000,"save":{"n":7,"min":130,"median":142,"max":155},"submit":{"n":5,"min":4,"median":7,"max":13},"approve":{"n":3,"min":196,"median":284,"max":297},"publish":{"n":3,"min":205,"median":302,"max":306}}
|
||||
NUMBER WALK {"within":{"numbers":600000,"textBytes":1801760,"ms":681},"over":{"numbers":1000000,"status":400,"ms":1062}}
|
||||
Tests 87 passed (87)
|
||||
== m7/logs/sandbox-run1.log
|
||||
AT-CAPS TIMING {"document":{"textBytes":2076707,"jsonbBytes":2346648,"cap":2097152,"labelLength":29,"views":64,"annotations":1024,"findingNodes":8192,"depth":8,"groups":1089,"drawings":4,"drawingBytes":2000000},"budgetMs":2000,"save":{"n":7,"min":135,"median":139,"max":148},"submit":{"n":5,"min":5,"median":6,"max":6},"approve":{"n":3,"min":192,"median":282,"max":294},"publish":{"n":3,"min":196,"median":292,"max":296}}
|
||||
NUMBER WALK {"within":{"numbers":600000,"textBytes":1801760,"ms":695},"over":{"numbers":1000000,"status":400,"ms":1019}}
|
||||
Tests 87 passed (87)
|
||||
== m7/logs/sandbox-run2.log
|
||||
AT-CAPS TIMING {"document":{"textBytes":2076707,"jsonbBytes":2346648,"cap":2097152,"labelLength":29,"views":64,"annotations":1024,"findingNodes":8192,"depth":8,"groups":1089,"drawings":4,"drawingBytes":2000000},"budgetMs":2000,"save":{"n":7,"min":127,"median":137,"max":151},"submit":{"n":5,"min":5,"median":5,"max":7},"approve":{"n":3,"min":199,"median":286,"max":295},"publish":{"n":3,"min":220,"median":292,"max":299}}
|
||||
NUMBER WALK {"within":{"numbers":600000,"textBytes":1801760,"ms":677},"over":{"numbers":1000000,"status":400,"ms":1078}}
|
||||
Tests 87 passed (87)
|
||||
Reference in new issue
Block a user