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.

Cypress causing battery drain and heat on M1

See original GitHub issue

Current 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:closed
  • Created 2 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jennifer-shehanecommented, Aug 26, 2021

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.

0reactions
emilyrohrboughcommented, Nov 17, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

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