Skip to content

Commit eba1804

Browse files
authored
Test: Bump hydrate bench to 1000 items (#177)
1 parent 09a1aef commit eba1804

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/component/bench/tachometer/bench-hydrate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const startMark = (name) => `${name}-start`;
9696
// data-sui-bind markers. The `each` block's hydrate hook stays O(1) on
9797
// main — it just registers a dep on the items signal. Per-item DOM is
9898
// already correct from SSR; no mutation triggered.
99-
const itemsForMount = makeItems(100);
99+
const itemsForMount = makeItems(1000);
100100
const dsdHTMLForMount = ssrList(itemsForMount);
101101
performance.mark(startMark('hydrate-each-100-mount'));
102102
container.setHTMLUnsafe(dsdHTMLForMount);
@@ -180,7 +180,7 @@ function ssrHelperList(items) {
180180
// cost difference between strategies that keep hydrate O(1) and
181181
// strategies that wire per-item Reactions on hydrate to register
182182
// external-signal deps eagerly.
183-
const helperItems = makeItems(100);
183+
const helperItems = makeItems(1000);
184184
const dsdHTMLForHelper = ssrHelperList(helperItems);
185185
performance.mark(startMark('hydrate-helper-100-mount'));
186186
container.setHTMLUnsafe(dsdHTMLForHelper);

0 commit comments

Comments
 (0)