cronometro
Version:
Simple benchmarking suite powered by HDR histograms.
10 lines (9 loc) • 369 B
JavaScript
import { fileURLToPath } from 'node:url';
export const defaultOptions = {
iterations: 1e4,
warmup: true,
errorThreshold: 1,
print: true
};
export const percentiles = [0.001, 0.01, 0.1, 1, 2.5, 10, 25, 50, 75, 90, 97.5, 99, 99.9, 99.99, 99.999];
export const runnerPath = fileURLToPath(new URL(`./runner.${import.meta.url.slice(-2)}`, import.meta.url));