MCPcopy Create free account
hub / github.com/modem-dev/hunk / formatUnit

Function formatUnit

scripts/compare-release-benchmarks.ts:291–293  ·  view source on GitHub ↗
(unit: BenchmarkMetricResult["unit"])

Source from the content-addressed store, hash-verified

289}
290
291function formatUnit(unit: BenchmarkMetricResult["unit"]) {
292 return unit === "bytes" ? "B" : unit;
293}
294
295function formatThresholdValue(value: number, unit: BenchmarkMetricResult["unit"]) {
296 if (unit === "bytes") {

Callers 2

formatThresholdValueFunction · 0.85
formatComparisonMarkdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected