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

Function formatThreshold

scripts/compare-release-benchmarks.ts:307–319  ·  view source on GitHub ↗
(
  threshold: BenchmarkThreshold | undefined,
  unit: BenchmarkMetricResult["unit"],
)

Source from the content-addressed store, hash-verified

305}
306
307function formatThreshold(
308 threshold: BenchmarkThreshold | undefined,
309 unit: BenchmarkMetricResult["unit"],
310) {
311 if (!threshold) {
312 return "—";
313 }
314
315 return `+${((threshold.maxRegressionRatio - 1) * 100).toFixed(0)}% and +${formatThresholdValue(
316 threshold.minAbsoluteRegression,
317 unit,
318 )}`;
319}
320
321/** Render a compact Markdown report suitable for GitHub Actions summaries. */
322export function formatComparisonMarkdown(

Callers 1

formatComparisonMarkdownFunction · 0.85

Calls 1

formatThresholdValueFunction · 0.85

Tested by

no test coverage detected