question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Performance with 2.0.0

See original GitHub issue

Disclaimer

This might be something that you guys are already aware of OR it might just be insignificant.

Version

2.0.0-7 and 1.4.4

Reproduction

I ran the tests in styled-components/benchmark and 2.0.0-7 was significantly slower.

Processor specs: 2.6 GHz Intel Core i5 8 GB 1600 MHz DDR3

Results:


Results for browser (could not get native to work for me)

test                               1.4.4          2.0.0-7        increase
---------------------------------  -------------  -------------  ---------
simple component                   0.085±0.011ms  0.186±0.046ms  2.19x
prop changes                       0.216±0.023ms  0.380±0.075ms  1.76x
prop shorthands                    0.099±0.027ms  0.186±0.066ms  1.88x
prop shorthands with prop changes  0.261±0.071ms  0.359±0.099ms  1.37x

Let me know if this is useful

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:48 (38 by maintainers)

github_iconTop GitHub Comments

6reactions
mxstbrcommented, Apr 1, 2017

Just merged #619 and released v2.0.0-11. Results on my machine without pre-processing with the Babel plugin:

Detailed results

v1.4.4

simple component                   0.120±0.046ms 
prop changes                       0.275±0.040ms
prop shorthands                    0.096±0.017ms
prop shorthands with prop changes  0.260±0.050ms

v2.0.0-10

simple component                   0.212±0.073ms
prop changes                       0.511±0.098ms
prop shorthands                    0.260±0.088ms
prop shorthands with prop changes  0.678±0.321ms

v2.0.0-11

simple component                   0.182±0.063ms
prop changes                       0.371±0.076ms
prop shorthands                    0.188±0.064ms
prop shorthands with prop changes  0.422±0.100ms

Summary

v2.0.0-11 is much better, thanks @philpl!

                                   v1.4.4         v2.0.0-10      v2.0.0-11      v2.0.0-11 (preprocessed)
---------------------------------  -------------  -------------  -------------  -------------
simple component                   0.120±0.046ms  0.212±0.073ms  0.182±0.063ms  0.128±0.049ms
prop changes                       0.275±0.040ms  0.511±0.098ms  0.371±0.076ms  0.287±0.039ms
prop shorthands                    0.096±0.017ms  0.260±0.088ms  0.188±0.064ms  0.142±0.030ms
prop shorthands with prop changes  0.260±0.050ms  0.678±0.321ms  0.422±0.100ms  0.291±0.042ms
5reactions
mxstbrcommented, Sep 27, 2017

Publishing v2.2.0 with the performance improvements!

Read more comments on GitHub >

github_iconTop Results From Across the Web

2022 Porsche Macan 2.0T 0-100km/h & engine sound
... all-wheel drive For more stats and test results simply head over to our performance data page: http://performancedrive.com.au/perfor.
Read more >
2021 Toyota GR Supra 2.0 First Test: Supra or Subpar?
Its acceleration is 0.8 second slower than the more powerful 2021 Toyota GR Supra 3.0 we tested earlier in 2021.
Read more >
Planning for performance - PowerVC version 2.0.0 - IBM
As you plan your IBM® Power® Virtualization Center environment, ensure that you adhere to the recommended hardware and software minimums and maximums to ......
Read more >
Tested: 2021 Toyota Supra 2.0 Brings Performance and Value
The new four-cylinder Supra gives up 127 horses to its six-cylinder sibling, but it's still an impressive sports car and costs considerably ...
Read more >
Enhancing performance - Pandas
Cython (writing C extensions for pandas)#. For many use cases writing pandas in pure Python and NumPy is sufficient. In some computationally heavy...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found