Cypress interceptors slower than hitting the actual backend #29790
Unanswered
johannesstricker
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey 👋
In an effort to improve our Cypress test runtime, we experimented with a dynamic request cache. It works as follows:
For (2) we've tried different cache mechanisms:
No matter what we tried, our cache solutions runs even slower than without using the cache at all. In the headful Cypress runner, we can see that the requests get intercepted and don't hit the BE (cause the green circle next to the request log is not filled). Still, in the network tab we can see that the requests take between 50ms and 150ms, which sounds like an eternity, given that it's coming from the cache.
We have a lot of outgoing requests, so I understand there is some overhead for Cypress to set this up. But I would still expect the network latency to be much worse, especially cause there are a lot of external requests involved, that don't hit localhost.
Does anyone have a clue what could be going on here?
Beta Was this translation helpful? Give feedback.
All reactions