current commit
260903.24 · test: fix node:bench test timing
'use strict';

const { bench } = require('node:bench');

if (globalThis.benchRunnerPreloaded !== true) {
  throw new Error('benchmark preload did not run');
}

bench('preloaded', {
  params: { preloaded: true },
  samples: 1,
}, (b) => {
  b.record({ duration_ns: 1n, operations: 1 });
});