Add functions to measure how long an action takes #260
Labels
beginner
Small - requires some line changes and a test or two
enhancement
New feature or request
hacktoberfest-accepted
Hacktoberfest!
Should we add
performance.mark()
andperformance.measure()
functions to measure an action's performance?Filip Hric posted an article about doing this with Cypress: https://filiphric.com/testing-frontend-performance-with-cypress
This is different than our WebPerformance metrics or the Chrome DevTools Protocol performance metrics since this is based on an action and the user has the ability to set it.
This is similar to the
stopwatch
decorator we have (I want to change this decorator too though...), but would be based on the browser's perception instead of the current thread running the test. Is this a good idea? Would this be useful?Filip's example would look something like this:
Or we could use a decorator approach as well
The text was updated successfully, but these errors were encountered: