(maybe) unexpected perf results
See original GitHub issueHey, i tested this as a drop-in replacement for the sass
package,
compiling 48 files (~8k lines total) with no sass features besides nesting and variables.
These were the results (using compile
& compileAsync
):
sass-embedded sync 1.853s
sass-embedded async 460.744ms
sass sync 282.262ms
sass async 382.66ms
I have no issue with the current performance, but wanted to test the embedded version.
Are these expected performance results for my use-case, or could there be a problem?
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Unexpected performance tests results regarding variables in ...
Hi all, I recently used the Camunda performance test framework and more specifically the test regarding the use of variables in workflows.
Read more >Unexpected performance results with recursion - Stack Overflow
I wonder why i get unexpected performances with these two pairs of obvious examples of recursion. The same recursive function is faster inside...
Read more >When studying performance, you need to watch out not only ...
Generally speaking, a sudden improvement in performance has one of two sources. The first is the one you like: The explained improvement. Maybe ......
Read more >What to Do When You Think Your Performance Review Is Wrong
The easiest performance appraisal problems to get resolved may be those where the manager's opinion is based on factually incorrect information.
Read more >SVG Export - Compound Paths Cause Performance Issues ...
SVG Export - Compound Paths Cause Performance Issues & Unexpected Results ... The final issue, and maybe the craziest to me - if...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m not to familiar with the implementation details, but I assume there is some overhead in calling
compileAsync
each time. Not sure if that would be noticable. Would love to take a look at a sample as I’m very invested in havingembedded-sass
being faster than the js version.I’m closing this out since, as people have mentioned, this performance difference comes down to the overhead of starting and stopping the embedded process over and over and will tend to disappear once you’re compiling real Sass stylesheets instead.
It’s worth noting that we could mitigate this overhead by adding the ability to re-use the embedded process for multiple compilations, but we’d need to come up with a good API for doing so.