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.

Rules run a lot slower now

See original GitHub issue

Hi, I’ve noticed that recently this plugin has gotten a lot slower. I use many eslint rules, and still this plugin is over 50% of the runtime. It looks like it spends the majority of its time in parseJestFnCall.

Here is a sampling of the output from TIMING=all

jest/consistent-test-it                                    | 12047.834 |     5.5%
jest/no-disabled-tests                                     |  8272.639 |     3.8%
jest/no-duplicate-hooks                                    |  8047.621 |     3.7%
jest/no-identical-title                                    |  8024.471 |     3.7%
jest/require-top-level-describe                            |  7910.195 |     3.6%
jest/no-alias-methods                                      |  4233.073 |     1.9%
jest/no-export                                             |  4037.647 |     1.9%
jest/valid-expect                                          |  4012.385 |     1.8%
jest/valid-title                                           |  4009.165 |     1.8%
jest/prefer-hooks-on-top                                   |  3998.323 |     1.8%
jest/prefer-comparison-matcher                             |  3997.734 |     1.8%
jest/prefer-to-contain                                     |  3995.129 |     1.8%
jest/prefer-todo                                           |  3993.870 |     1.8%
jest/no-large-snapshots                                    |  3992.662 |     1.8%
jest/prefer-equality-matcher                               |  3988.052 |     1.8%
jest/prefer-strict-equal                                   |  3982.349 |     1.8%
jest/no-interpolation-in-snapshots                         |  3981.740 |     1.8%
jest/prefer-expect-resolves                                |  3981.178 |     1.8%
jest/no-focused-tests                                      |  3972.438 |     1.8%
jest/prefer-to-have-length                                 |  3968.205 |     1.8%
jest/require-to-throw-message                              |  3964.580 |     1.8%
jest/no-test-prefixes                                      |  3957.872 |     1.8%
jest/valid-describe-callback                               |  3945.417 |     1.8%

Thanks!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
SLKnutsoncommented, Nov 4, 2022

In my actual project, the eslint-plugin-jest time went from 116 seconds to 15 seconds 👍

0reactions
SimenBcommented, Nov 4, 2022

What’s that, 7.5x improvement? Nice!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Outlook rule execution disruptingly slow - Microsoft Community
You can manually run one or more rules. 1. On the File tab, choose Manage Rules & Alerts, and on the E-mail Rules...
Read more >
Why Am I Running Slower? 14 Reasons You're Running Slow
14 Reasons You're Running Slower · Changes in weather · Not replacing old shoes · Lack of variety in pace · Too low...
Read more >
Long Runs: Does the 3 hour rule apply to slower runners?
I have talked about long runs a lot, especially for marathon training. If you are familiar with the book, we talk about 25-30%...
Read more >
The 5 Rules of Running SLOW to Run Faster - YouTube
Be sure not to make these mistakes that will ruin your low heart rate running. If you're running slow to run faster, following...
Read more >
How to Run Slower to Run Faster - Lifehacker
Here are tricks to run slower now so that you can run faster later. ... I listen to a lot of musicals that...
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