Improve benchmark script CLI options

This commit is contained in:
Chocobozzz
2022-02-28 15:19:44 +01:00
parent f7ac03ee94
commit 1087427616
3 changed files with 23 additions and 4 deletions
+7 -1
View File
@@ -13,5 +13,11 @@ $ npm run build -- --analyze-bundle && npm run client-report
To benchmark the REST API and save result in `benchmark.json`:
```
$ node dist/scripts/benchmark.js benchmark.json
$ node dist/scripts/benchmark.js -o benchmark.json
```
You can also grep on a specific test:
```
$ node dist/scripts/benchmark.js --grep homepage
```