Skip to content

Commit

Permalink
ci: improve benchmarks stability (#18728)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexey Orlenko <alex@aqrln.net>
  • Loading branch information
art049 and aqrln committed May 5, 2023
1 parent 1c731aa commit 185a1a2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/client/package.json
Expand Up @@ -62,7 +62,7 @@
"index-browser.js"
],
"devDependencies": {
"@codspeed/benchmark.js-plugin": "1.0.2",
"@codspeed/benchmark.js-plugin": "1.1.0",
"@faker-js/faker": "7.6.0",
"@fast-check/jest": "1.6.1",
"@jest/create-cache-key-function": "29.5.0",
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion scripts/bench.ts
Expand Up @@ -19,11 +19,12 @@ async function main() {
}

async function run(benchmarks: string[]) {
const v8Flags = process.env.CODSPEED_V8_FLAGS ?? '' // Flags defined while running with CodSpeed
let failedCount = 0

for (const location of benchmarks) {
try {
await execa.command(`node -r esbuild-register ${location}`, {
await execa.command(`node ${v8Flags} -r esbuild-register ${location}`, {
stdio: 'inherit',
})
} catch (e) {
Expand Down

0 comments on commit 185a1a2

Please sign in to comment.