MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / pct

Function pct

scripts/agent-eval/parse-bench-readme.mjs:74–74  ·  view source on GitHub ↗
(w, wo)

Source from the content-addressed store, hash-verified

72const fmtTime = (s) => s >= 60 ? `${Math.floor(s / 60)}m ${Math.round(s % 60)}s` : `${Math.round(s)}s`;
73const fmtTok = (t) => t >= 1e6 ? `${(t / 1e6).toFixed(1)}M` : `${Math.round(t / 1000)}k`;
74const pct = (w, wo) => wo > 0 ? Math.round((1 - w / wo) * 100) : 0;
75
76// Exclude MCP-cold-start-raced WITH runs by default — they measure a startup
77// race, not steady-state value. `CG_INCLUDE_RACED=1` keeps them (to see the raw

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected