From 76a30987c01b4034762a57741334eb5805232af9 Mon Sep 17 00:00:00 2001 From: jdecroock Date: Sat, 12 Oct 2024 09:36:01 +0200 Subject: [PATCH] Add more warmup runs --- benches/src/02_replace1k.html | 2 +- src/diff/index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/benches/src/02_replace1k.html b/benches/src/02_replace1k.html index e6b6270b6e..ee597fa0fb 100644 --- a/benches/src/02_replace1k.html +++ b/benches/src/02_replace1k.html @@ -35,7 +35,7 @@ const elementSelector = 'tr:first-child > td:first-child'; // MUST BE KEPT IN SYNC WITH WARMUP COUNT IN benches/scripts/config.js - const WARMUP_COUNT = 5; + const WARMUP_COUNT = 25; for (let i = 0; i < WARMUP_COUNT; i++) { markRunStart(`warmup-${i}`); run(); diff --git a/src/diff/index.js b/src/diff/index.js index 1777a67be3..5e8c77a8a3 100644 --- a/src/diff/index.js +++ b/src/diff/index.js @@ -289,6 +289,7 @@ export function diff( options._catchError(e, newVNode, oldVNode); } } else if ( + // test excessDomChildren == null && newVNode._original === oldVNode._original ) {