perf: reenable benchmark
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 12 May 2024 19:33:08 +0000 (21:33 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 12 May 2024 19:33:08 +0000 (21:33 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.github/workflows/internal-benchmark.yml
benchmarks/internal/bench.mjs

index 46692bf1b99d46b7ae3f33e920fc76a00ed3435c..52e806da9b05a6596a46c9fb56506f1ca1cceb84 100644 (file)
@@ -30,14 +30,14 @@ jobs:
           cache: 'pnpm'
       - name: Install dependencies
         run: pnpm install --ignore-scripts --frozen-lockfile
-      - uses: bencherdev/bencher@main
-      - name: Run production benchmark
-        run: |
-          bencher run \
-          --if-branch "$GITHUB_REF_NAME" \
-          --else-if-branch "$GITHUB_BASE_REF" \
-          --else-if-branch master \
-          --hash "$GITHUB_SHA" \
-          --err \
-          --github-actions ${{ secrets.GITHUB_TOKEN }} \
-          "pnpm benchmark:benchmark.js:prod"
+      - uses: bencherdev/bencher@main
+      - name: Run production benchmark
+        run: |
+          bencher run \
+          --if-branch "$GITHUB_REF_NAME" \
+          --else-if-branch "$GITHUB_BASE_REF" \
+          --else-if-branch master \
+          --hash "$GITHUB_SHA" \
+          --err \
+          --github-actions ${{ secrets.GITHUB_TOKEN }} \
+          "pnpm benchmark:benchmark.js:prod"
index 41cf62e61a04b155562b63390fea470b352d01e4..da0c023d611cf47904148f9c3541d05a4d400b99 100644 (file)
@@ -17,7 +17,7 @@ const poolSize = availableParallelism()
 const taskExecutions = 1
 const workerData = {
   function: TaskFunctions.factorial,
-  taskSize: 50000
+  taskSize: 1000
 }
 
 switch (