https://github.com/patrickhulce/lighthouse-trace-evaluations
Scripts to aid in analyzing large sets of traces collected with lighthouse.
https://github.com/patrickhulce/lighthouse-trace-evaluations
Last synced: 11 months ago
JSON representation
Scripts to aid in analyzing large sets of traces collected with lighthouse.
- Host: GitHub
- URL: https://github.com/patrickhulce/lighthouse-trace-evaluations
- Owner: patrickhulce
- License: apache-2.0
- Created: 2017-09-25T22:16:41.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-05T18:47:32.000Z (over 8 years ago)
- Last Synced: 2025-05-26T19:05:38.785Z (about 1 year ago)
- Language: JavaScript
- Size: 46.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# trace-evaluations
This project houses scripts to aid in analyzing large sets of traces collected with [lighthouse](https://github.com/GoogleChrome/lighthouse).
## Processing Traces
```
$ node ./bin/process.js
Options:
--help Show help [boolean]
--version Show version number [boolean]
--processor, -p [string] [required]
--input, -i [string] [required]
--output, -o [string] [required]
--limit, -l [number] [default: Infinity]
```
### Extract Metrics from Plots Folder
```
node ./bin/process.js -p ./lib/processors/metrics-processor.js -i path/to/plots/run -o metrics.json
```
### Extract Metrics from List of Files
**list.json**
```
[
{"path": "/path/to/folder/with/1st/lighthouse-files"},
{"path": "/path/to/folder/with/2nd/lighthouse-files"},
{"path": "/path/to/folder/with/3rd/lighthouse-files"},
]
```
```
node ./bin/process.js -p ./lib/processors/metrics-processor.js -i path/to/list.json -o metrics.json
```
## Analyzing Different Runs
```
$ node ./bin/analyze.js
Options:
--help Show help [boolean]
--version Show version number [boolean]
--analyzer, -a [string] [required]
--input, -i [array] [required]
--output, -o [string] [required]
--split, -s [number] [default: 8]
--limit, -l [number] [default: Infinity]
```
### Analyze Lighthouse FastMode Performance
```
node ./bin/analyze.js -a ./lib/analyzers/fast-mode-accuracy-analyzer.js -i path/to/throttled-run -i path/to/unthrottled-run -o analysis.json
```