Skip to content

Commit 28cf8f3

Browse files
committed
fix
1 parent d761623 commit 28cf8f3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/ci-performance.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,9 @@ jobs:
304304
echo "" >> comment.md
305305
echo "</details>" >> comment.md
306306
echo "" >> comment.md
307-
echo "*Benchmarks ran with ${BENCHMARK_ITERATIONS:-1000} iterations per test on Node.js ${{ env.NODE_VERSION }} (production mode, CPU pinned)*" >> comment.md
307+
echo "*Benchmarks ran with ${BENCHMARK_ITERATIONS:-10000} iterations per test on Node.js ${{ env.NODE_VERSION }} (production mode, CPU pinned)*" >> comment.md
308308
echo "" >> comment.md
309-
echo "> **Note:** Using 1k iterations with CPU affinity for measurement stability. Thresholds: ⚠️ >50%, ❌ >100%." >> comment.md
309+
echo "> **Note:** Using 10k iterations with CPU affinity for measurement stability. Thresholds: ⚠️ >50%, ❌ >100%." >> comment.md
310310
311311
- name: Comment PR with results
312312
if: github.event_name == 'pull_request'

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ Performance benchmarks are located in [`benchmark/performance.js`](benchmark/per
341341
4. **Test locally**: Run the benchmarks locally to verify they work:
342342
```bash
343343
npm run benchmark:quick # Quick test with 10 iterations
344-
npm run benchmark # Full test with 1,000 iterations
344+
npm run benchmark # Full test with 10,000 iterations
345345
```
346346

347347
For new features where no baseline exists, the CI will establish new benchmarks that future PRs will be compared against.

benchmark/performance.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const MONGODB_URI = process.env.MONGODB_URI || 'mongodb://localhost:27017/parse_
1919
const SERVER_URL = 'http://localhost:1337/parse';
2020
const APP_ID = 'benchmark-app-id';
2121
const MASTER_KEY = 'benchmark-master-key';
22-
const ITERATIONS = parseInt(process.env.BENCHMARK_ITERATIONS || '1000', 10);
22+
const ITERATIONS = parseInt(process.env.BENCHMARK_ITERATIONS || '10000', 10);
2323

2424
// Parse Server instance
2525
let parseServer;
@@ -363,7 +363,7 @@ async function runBenchmarks() {
363363
server.close();
364364
}
365365
// Give some time for cleanup
366-
setTimeout(() => process.exit(0), 1000);
366+
setTimeout(() => process.exit(0), 10000);
367367
}
368368
}
369369

0 commit comments

Comments
 (0)