Re:Sass Mixins vs. Extends: The Data
by lucisferre on Monday March 09, 2015 @01:48PM
(#9172435)
I think his issue may be more that it's hard to be certain of this difference because it's relatively small and there are many other factors at play. He also doesn't say how many times he ran this test, but assuming he does sufficient test runs then I'd agree a 300-600ms difference is worth it.
@lucisferre, you're 100% correct here. I certainly don't ignore 300-600ms differences but I only look for them after I've exhausted other, perhaps larger, gains.
As for how many times the test was run, it was randomized but but somewhere between ~60-100 times.
For larger sites with tons of visitors, page load speed has a tangible impact on revenues. Being able to trim off another 100ms can result in millions of extra sales every month.
Perhaps we should focus on a CSS optimizer that rewrites CSS rules in the mixin style? Then it makes the whole thing an exercise in code style.