1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/test
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
..
data Move webdriver interactions into driver module (#7798) 2020-01-13 11:07:32 -04:00
e2e Add benchmark script (#7869) 2020-01-21 12:02:45 -04:00
integration Move webdriver interactions into driver module (#7798) 2020-01-13 11:07:32 -04:00
lib Remove usages of xtend from the background scripts (#7796) 2020-01-13 08:59:36 -10:00
stub Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
unit Inline networkStore to avoid having too many event listeners (#7854) 2020-01-17 18:28:27 -03:30
unit-global Migrate codebase to use ESM (#7730) 2020-01-09 00:04:58 -03:30
web3 yarn lint --fix 2019-12-03 17:20:55 -03:30
base.conf.js eslint --fix . 2018-07-02 18:49:33 -04:00
flat.conf.js eslint --fix . 2018-07-02 18:49:33 -04:00
helper.js Don't log Ganache Testrpc started event (#7822) 2020-01-14 23:47:56 -03:30
setup.js Update ESLint rules for curly braces style (#7477) 2019-11-19 20:33:20 -03:30