UNPKG

eslint-rule-benchmark

Version:

Benchmark ESLint rules with detailed performance metrics for CI and plugin development

11 lines (10 loc) 276 B
import { formatNumber } from './format-number.js' function formatHz(hz) { if (typeof hz !== 'number' || !Number.isFinite(hz)) { return 'N/A' } let rounded = Math.round(hz) let formatted = formatNumber(rounded) return `${formatted} ops/sec` } export { formatHz }