lo1tuma / eslint-plugin-mocha

ESLint rules for mocha
MIT License
281 stars 61 forks source link

Memoize names (increases speed by 10x) #280

Closed pasieronen closed 3 years ago

pasieronen commented 3 years ago

It looks like just memoizing getNamesByType speeds up the benchmark by more than 10x.

Closes #268.

lo1tuma commented 3 years ago

Thanks. Can you also adjust the performance budgets in the performance tests accordingly? This should prevent us from introducing performance regressions in the future.

pasieronen commented 3 years ago

@lo1tuma Adjusted the runtime duration budget to 1/10th (which is roughly what the improvement is on my laptop).