2021-05-10 13:02:25 -04:00
|
|
|
# Monitoring
|
|
|
|
|
|
|
|
## Client modules
|
|
|
|
|
|
|
|
To open a report of client build:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ npm run build -- --analyze-bundle && npm run client-report
|
|
|
|
```
|
|
|
|
|
|
|
|
## API benchmark
|
|
|
|
|
|
|
|
To benchmark the REST API and save result in `benchmark.json`:
|
|
|
|
|
|
|
|
```
|
2022-02-28 09:19:44 -05:00
|
|
|
$ node dist/scripts/benchmark.js -o benchmark.json
|
|
|
|
```
|
|
|
|
|
|
|
|
You can also grep on a specific test:
|
|
|
|
|
|
|
|
```
|
|
|
|
$ node dist/scripts/benchmark.js --grep homepage
|
2021-05-10 13:02:25 -04:00
|
|
|
```
|