Compression Library Benchmark is an interactive web app to benchmark and compare popular JavaScript compression and serialization libraries. Instantly see how FFLATE, Pako, LZString, CBOR, and MessagePack stack up on speed and compression using either a built-in 1MB payload or your own files.
-
⚡ One-Click Benchmarking:
Instantly compare multiple libraries. -
📦 Flexible Payloads:
Use the default 1MB JSON or upload your own text file. -
📊 Detailed Results Table:
View original and compressed sizes (KB), encode/decode times (ms), total operation times, compression ratios, and size reduction—all side by side. -
👀 Live Payload Preview:
See your loaded payload and its size before benchmarking.
🏷️ Library | 🔎 Description |
---|---|
FFLATE | Fast, efficient DEFLATE/GZIP |
Pako | Popular zlib port for browsers |
LZString | Lightweight string compression |
CBOR | Concise Binary Object Representation |
MessagePack | Efficient binary serialization |
-
Clone the repo:
git clone https://github.com/ChiragChrg/compression-library-benchmark.git cd compression-library-benchmark
-
Install dependencies:
npm install
-
Run the app:
npm run dev
Open
http://localhost:5173
in your browser.
.
├── public/ # Static assets
├── src/ # Source code
│ ├── assets/ # Images and icons
│ ├── utils/ # Utility functions
│ ├── App.tsx # Main app component
│ └── main.tsx # Entry point
├── package.json # Project metadata and scripts
├── vite.config.ts # Vite configuration
└── README.md # This file
Contributions, issues, and feature requests are welcome!
Whether you want to add new compression libraries, fix bugs, or improve the user experience, feel free to open an issue or submit a pull request.
Want to add a new compression library? Check out our detailed Contributing Guide for step-by-step instructions.
This project is licensed under the MIT License.
You are free to use, modify, and share this project, as long as you include the original copyright.
© 2025 ChiragChrg — All rights reserved under MIT.