Cypress causing battery drain and heat on M1
See original GitHub issueCurrent behavior
I am not sure what is exact reason for this but I am using M1 with cypress for over a month now and every time I open cypress it drains battery of M1 faster than any other application. It also heats up while running cypress.
Desired behavior
It should not consume so much battery and produce so much heat.
Test code to reproduce
Nothing specific even the default test cases results in same behaviour.
My cypress configuration:
{
"component": {
"componentFolder": "src/tests/cypress/components",
"testFiles": "**/*spec.{js,jsx,ts,tsx}"
},
"viewportHeight": 660,
"viewportWidth": 1600
}
Cypress Version
7.2.0
Other
Cypress package version: 7.2.0 Cypress binary version: 7.2.0 Electron version: 12.0.0-beta.14 Bundled Node version: 14.15.1
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
MBP M1 Pro battery draining really quickly - Apple Community
My new Macbook Pro M1 Pro 14' drains really quickly on battery - more than 20% an hour - doing just reading PDFs...
Read more >Cypress 10.2.0: Run tests up to 2x faster on Apple silicon (M1)
We want you to have the best performance, speed, and reliability possible if you're running Cypress tests on Apple devices. We're happy to ......
Read more >macOS Ventura battery drain - MacPaw
Running out of memory may be another reason your Mac uses lots of energy, causing the battery to drain more quickly.
Read more >Macbook Air M1 Battery Drain? : r/macbookair - Reddit
It could be because it's brand new. While the system is indexing (for Spotlight for instance), downloading stuff from your iCloud, setting up ......
Read more >US6643151B1 - Multiple output dynamically regulated charge pump ...
Consequently, the service life of the battery in a portable electronic device ... degrading performance and possibly causing damage due to heat generation....
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
We’ve made some improvements in terms of performance, which could save some CPU in our more recent versions. You may want to update and see if it still has this effect.
As of Cypress 10.2.0, Cypress is available natively on Apple silicon, including the M1 and M2 processor families. For more details, read our blog post. Addresses #19908.
Closing as fix. Please open a new issue if you experience any other problems.