MCPcopy Create free account
hub / github.com/Alphanimble/htmlstream / calcThroughput

Function calcThroughput

demo/App.tsx:181–184  ·  view source on GitHub ↗
(chunkSize: number, intervalMs: number)

Source from the content-addressed store, hash-verified

179const DEFAULT_PRESET = "normal";
180
181function calcThroughput(chunkSize: number, intervalMs: number): number {
182 if (intervalMs <= 0) return 0;
183 return Math.round((chunkSize / intervalMs) * 1000);
184}
185
186interface Message {
187 id: string;

Callers 1

AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected