MCPcopy Create free account
hub / github.com/coder/ghostty-web / throughput

Function throughput

bench/versus.ts:72–84  ·  view source on GitHub ↗
(prefix: string, data: Record<string, Uint8Array | string>)

Source from the content-addressed store, hash-verified

70};
71
72const throughput = async (prefix: string, data: Record<string, Uint8Array | string>) => {
73 await Promise.all(
74 Object.entries(data).map(async ([name, data]) => {
75 await group(`${prefix}: ${name}`, async () => {
76 await withTerminals(async (term) => {
77 await new Promise<void>((resolve) => {
78 term.write(data, resolve);
79 });
80 });
81 });
82 })
83 );
84};
85
86await throughput('raw bytes', {
87 '1KB': generateRawBytes(1024),

Callers 1

versus.tsFile · 0.85

Calls 2

withTerminalsFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…