1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/test/e2e/webdriver
Mark Stacey 5734f7210c
Add benchmark script (#7869)
The script `benchmark.js` will collect page load metrics from the
extension, and print them to a file or the console. A method for
collecting metrics was added to the web driver to help with this.

This script will calculate the min, max, average, and standard
deviation for four metrics: 'firstPaint', 'domContentLoaded', 'load',
and 'domInteractive'. The variation between samples is sometimes high,
with the results varying between samples if only 3 were taken. However,
all tests I've done locally with 5 samples have produced results within
one standard deviation of each other. The default number of samples has
been set to 10, which should be more than enough to produce consistent
results.

The benchmark can be run with the npm script `benchmark:chrome` or
`benchmark:firefox`, e.g. `yarn benchmark:chrome`.
2020-01-21 12:02:45 -04:00
..
chrome.js Add page navigation to e2e web driver (#7867) 2020-01-20 13:03:07 -04:00
driver.js Add benchmark script (#7869) 2020-01-21 12:02:45 -04:00
firefox.js Add page navigation to e2e web driver (#7867) 2020-01-20 13:03:07 -04:00
index.js Add 1 second pause at the beginning of each e2e test run (#7872) 2020-01-20 18:40:01 -04:00