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 385597e commit 51ddd25Copy full SHA for 51ddd25
resources/benchmark.ts
@@ -376,9 +376,12 @@ interface BenchmarkSample {
376
function sampleModule(modulePath: string): BenchmarkSample {
377
const sampleCode = `
378
import fs from 'node:fs';
379
+ import os from 'node:os';
380
381
import { benchmark } from '${modulePath}';
382
383
+ os.setPriority(os.constants.priority.PRIORITY_HIGHEST);
384
+
385
// warm up, it looks like 7 is a magic number to reliably trigger JIT
386
benchmark.measure();
387
0 commit comments