diff --git a/apps/web-app/src/assets/benchmarkResults.json b/apps/web-app/src/assets/benchmarkResults.json index 33509b6..bb9f761 100644 --- a/apps/web-app/src/assets/benchmarkResults.json +++ b/apps/web-app/src/assets/benchmarkResults.json @@ -196,5 +196,11 @@ "operationType": 0, "operationsPerSecond": 345.1457845458141, "runsSampled": 285 + }, + { + "version": "1.7.0", + "operationType": 0, + "operationsPerSecond": 769.1726455838527, + "runsSampled": 290 } -] +] \ No newline at end of file diff --git a/benchmark/src/main.ts b/benchmark/src/main.ts index f1a9e61..372033e 100644 --- a/benchmark/src/main.ts +++ b/benchmark/src/main.ts @@ -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 diff --git a/package.json b/package.json index 252ffda..b5e1f0a 100644 --- a/package.json +++ b/package.json @@ -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,