We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e54ed90 commit d3a13f8Copy full SHA for d3a13f8
.github/workflows/cmd-run-benchmark.yml
@@ -33,7 +33,7 @@ jobs:
33
34
- name: Run Benchmark
35
run: |
36
- npm run benchmark -- --revs HEAD BASE
+ sudo npm run benchmark -- --revs HEAD BASE
37
38
- name: Create replyMessage
39
uses: actions/github-script@v6
resources/benchmark.ts
@@ -381,9 +381,12 @@ function sampleModule(modulePath: string): BenchmarkSample {
381
382
const sampleCode = `
383
import fs from 'node:fs';
384
+ import os from 'node:os';
385
386
import { benchmark } from '${moduleURL}';
387
388
+ os.setPriority(os.constants.priority.PRIORITY_HIGHEST);
389
+
390
// warm up, it looks like 7 is a magic number to reliably trigger JIT
391
benchmark.measure();
392
0 commit comments