Skip to content

Commit 8bf82dc

Browse files
committed
chore: update benchmark setup
1 parent 3a92227 commit 8bf82dc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ packages/respect-core/src/modules/runtime-expressions/abnf-parser.cjs
66
benchmark/api-definitions/
77
LICENSE.md
88
snapshot*.txt
9+
.changeset/pre.json

benchmark/make-test-command.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -eo pipefail # Fail on script errors
66
git clone https://github.com/Rebilly/api-definitions.git
77

88
# Store the command into a text file:
9-
echo REDOCLY_SUPPRESS_UPDATE_NOTICE=true hyperfine -i --warmup 3 $(cat package.json | jq '.dependencies' | jq 'keys' | jq 'map("'\''node node_modules/" + . + "/bin/cli.js lint core@public --config=api-definitions/redocly.yaml'\''")' | jq 'join(" ")' | xargs) --export-markdown benchmark_check.md --export-json benchmark_check.json > test-command.txt
9+
echo REDOCLY_SUPPRESS_UPDATE_NOTICE=true hyperfine --warmup 3 $(cat package.json | jq '.dependencies' | jq 'keys' | jq 'map("'\''node node_modules/" + . + "/bin/cli.js lint --config=api-definitions/redocly.yaml --generate-ignore-file'\''")' | jq 'join(" ")' | xargs) --export-markdown benchmark_check.md --export-json benchmark_check.json > test-command.txt
1010

1111
# Put the command in the test section of the package.json:
1212
cat package.json | jq ".scripts.test = \"$(cat test-command.txt)\"" > package.json

0 commit comments

Comments
 (0)