MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / fmtMs

Function fmtMs

benchmarks/report.mjs:316–321  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

314// carries curated `cl-numeric` / `evaluate` / `solve` cases (tagged
315// `changelog`) that feed report_changelog.mjs's release tables; they still get
316// run and scored into results.json, but are excluded from this report.
317const CAT_KEYS = new Set(CATS.map((c) => c.key));
318const REPORTED = suite.cases.filter((c) => CAT_KEYS.has(c.category));
319
320function fmtMs(ms) {
321 if (ms == null) return '—';
322 if (ms < 1) return ms.toFixed(3);
323 if (ms < 10) return ms.toFixed(2);
324 return ms.toFixed(1);

Callers

nothing calls this directly

Calls 1

toFixedMethod · 0.80

Tested by

no test coverage detected