bzip2-codec
JAVASCRIPT / COMPRESSION LABLess in. More out.
Watch bzip2 decompression in motion. Real bytes, real throughput, and a live view inside the output. No server-side decoding. No whole-file buffer.
Throughput, as it happens
1-second window · 0 samples retainedWaiting for the browser to measure memory. It may wait for garbage collection.
Inside the output
sampled byte distributionUp to 256 sampled bytes per output chunk. Values accumulate during the run.
Fresh from the decoder
latest chunk · first 64 bytesA tiny window into the stream. The full decoded file is never retained.
THE PIPELINE
Small chunks.
Continuous work.
fetch → bzip2 → WritableStreamThe worker reads a compressed stream, decodes it in blocks, and passes output forward with backpressure. The interface receives small telemetry snapshots about eight times a second. Stop terminates the worker and its work.
Charts show this run, not a benchmark against another library. Throughput includes fetching and decompression; device speed and network conditions matter. Output is limited to 2 GiB per run.