more performance testing

This commit is contained in:
Henry Jameson 2024-02-08 18:36:59 +02:00
parent 6df28cde9d
commit 79d2184afa
1 changed files with 5 additions and 0 deletions

View File

@ -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()