MCPcopy Create free account
hub / github.com/arfct/itty-bitty / testDecode

Function testDecode

docs/bitty.js:186–195  ·  view source on GitHub ↗
(rawData)

Source from the content-addressed store, hash-verified

184}
185
186async function testDecode(rawData) {
187 console.group("Testing decode")
188 let t1 = performance.now()
189 let gz = dataToBase64TD(rawData)
190 let t2 = performance.now()
191 console.log("textdecode", gz.length, Math.round((t2 - t1)*1000));
192 let xz = await dataToBase64FR(rawData);
193 let t3 = performance.now()
194 console.log("reader", xz.length, Math.round((t3 - t2)*1000));
195}
196
197async function testCompression(rawData) {
198 console.group("Testing compression")

Callers

nothing calls this directly

Calls 2

dataToBase64TDFunction · 0.85
dataToBase64FRFunction · 0.85

Tested by

no test coverage detected