MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / computeThroughput

Function computeThroughput

src/llm/cache-layout.ts:90–93  ·  view source on GitHub ↗
(outputTokens: number, latencyMs: number)

Source from the content-addressed store, hash-verified

88
89/** Output tokens per second. Returns 0 for non-positive latency to avoid Infinity. */
90export function computeThroughput(outputTokens: number, latencyMs: number): number {
91 if (latencyMs <= 0 || outputTokens <= 0) return 0;
92 return (outputTokens / latencyMs) * 1000;
93}

Callers 2

completeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected