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

Function avg

scripts/agent-eval/parse-bench-readme.mjs:120–120  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

118 );
119}
120const avg = (a) => a.length ? Math.round(a.reduce((s, x) => s + x, 0) / a.length) : 0;
121console.log(`\nAVERAGE saved: cost ${avg(savings.cost)}% · tokens ${avg(savings.tokens)}% · time ${avg(savings.time)}% · tool calls ${avg(savings.tools)}%`);
122
123// ---- Table 2: residual context occupancy. ----------------------------------

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected