From 79d2184afa9c04c9f7afb07e1910ae1f9fbdb18d Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 8 Feb 2024 18:36:59 +0200 Subject: [PATCH] more performance testing --- src/services/theme_data/theme_data_3.service.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/services/theme_data/theme_data_3.service.js b/src/services/theme_data/theme_data_3.service.js index 84e5cf82..5083d469 100644 --- a/src/services/theme_data/theme_data_3.service.js +++ b/src/services/theme_data/theme_data_3.service.js @@ -352,6 +352,7 @@ export const init = (extraRuleset, palette) => { }).reduce((acc, x) => [...acc, ...x], []) stateVariantCombination.forEach(combination => { + const tt0 = performance.now() const soloSelector = ruleToSelector({ component: component.name, ...combination }, true) const selector = ruleToSelector({ component: component.name, ...combination, parent }, true) @@ -507,6 +508,10 @@ export const init = (extraRuleset, palette) => { } innerComponents.forEach(innerComponent => processInnerComponent(innerComponent, { parent, component: name, ...combination })) + const tt1 = performance.now() + if (!component.virtual) { + console.log('State-variant ' + combination.variant + ' : ' + combination.state.join('+') + ' procession time: ' + (tt1 - tt0) + 'ms') + } }) const t1 = performance.now()