Skip to content

Commit

Permalink
eoghan: add way to call deep recursive test (already added in rrweb-i…
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBa authored and eoghanmurray committed Jul 12, 2024
1 parent 30548a2 commit 2b8de82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/rrweb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"check-types": "tsc -noEmit",
"prepublish": "tsc -noEmit && vite build",
"lint": "yarn eslint src",
"benchmark-dom-mutation": "vitest run --maxConcurrency 1 --no-file-parallelism -t 'deeply nested children' test/benchmark/dom-mutation"
"benchmark": "vitest run --maxConcurrency 1 --no-file-parallelism test/benchmark"
},
"type": "module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<body></body>
<script>
function init() {
const count = 100;
const count = 100; // originally 1000 in #1277

let roots = [];
for (let i = 0; i < count; ++i) {
Expand All @@ -11,7 +11,7 @@
roots.push(div);
}

let tree_depth = 256;
let tree_depth = 256; // originally 64 in #1277
let children = [...roots];
while (tree_depth > 0) {
for (let i = 0; i < children.length; i++) {
Expand Down

0 comments on commit 2b8de82

Please sign in to comment.