Skip to content

Commit

Permalink
fix: benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
yann510 committed Sep 12, 2023
1 parent 1405328 commit 05800db
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion apps/web-app/src/assets/benchmarkResults.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,5 +196,11 @@
"operationType": 0,
"operationsPerSecond": 345.1457845458141,
"runsSampled": 285
},
{
"version": "1.7.0",
"operationType": 0,
"operationsPerSecond": 769.1726455838527,
"runsSampled": 290
}
]
]
1 change: 1 addition & 0 deletions benchmark/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ async function main() {
)

for (const version of missingVersionsToBenchmark) {
console.log(`Benchmarking version ${version}`)
execSync(`npm i --prefix ${__dirname} ss-search@${version}`)

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:all": "nx run-many --target=test --all",
"build:all": "nx run-many --target=build --all",
"semantic-release:all": "nx run-many --target=semantic-release --all",
"benchmark": "node dist/benchmark/main.js",
"benchmark": "nx run benchmark:build && node dist/benchmark/main.js",
"web-app:serve": "nx run web-app:serve"
},
"private": true,
Expand Down

0 comments on commit 05800db

Please sign in to comment.