Skip to content

Latest commit

 

History

History
63 lines (37 loc) · 1.54 KB

README.md

File metadata and controls

63 lines (37 loc) · 1.54 KB

Node Compression Test

A test of various compressions algorithms and packages in node.

Why

After experimenting with different zstd packages I wanted to compare their performance of taring and compressing a folder.

Packages

GZIP

Brotli

ZSTD

No Stream Interface

These packages did not offer a nodejs stream interface.

Uninstalled Packages

Several packages that rely on a nodejs binding failed to install.

Test

http://www.mattmahoney.net/dc/textdata.html enwiki8 was used.

Ubuntu 20.04 Node v18.7.0 AMD Ryzen 5 5600X

Results

Results 1

Results 2

Conclusions

  • simple-zstd sees at minimum ~20% reduction in total time in comparison to cppzst.
  • simple-zstd time improvement is during compression.
  • node-zstandard is not responding to different level requests.

License

MIT