Add/update filtered-sum-bms benchmark

This commit is contained in:
jonas-peeters committed 2026-06-06 18:00:20 +00:00
1 parent 2944683db9
commit 260d5fa4a5
8045 files changed
+2651026 -270206

No files matched your search

@@ -0,0 +1,9 @@
export async function blobReader(blob, onChunk, chunkSize = 1024 * 1024) {
const size = blob.size;
let totalBytesRead = 0;
while (totalBytesRead < size) {
const slice = blob.slice(totalBytesRead, Math.min(size, totalBytesRead + chunkSize));
onChunk(new Uint8Array(await slice.arrayBuffer()));
totalBytesRead += slice.size;
}
}