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