A test of various compressions algorithms and packages in node.
After experimenting with different zstd packages I wanted to compare their performance of taring and compressing a folder.
- simple-zstd - https://www.npmjs.com/package/simple-zstd
- https://www.npmjs.com/package/node-zstandard
- @xingrz/cppzst - https://www.npmjs.com/package/@xingrz/cppzst (Appears to be the newest of cppzst heritage)
These packages did not offer a nodejs stream interface.
- https://www.npmjs.com/package/zstd.ts
- https://www.npmjs.com/package/@oneidentity/zstd-js
- https://www.npmjs.com/package/@mongodb-js/zstd
Several packages that rely on a nodejs binding failed to install.
- zstd - https://www.npmjs.com/package/zstd (FAILED TO INSTALL)
- node-zstd - https://www.npmjs.com/package/node-zstd (FAILED TO INSTALL)
- node-zstd - https://www.npmjs.com/package/node-zstd2 (FAILED TO INSTALL)
http://www.mattmahoney.net/dc/textdata.html enwiki8 was used.
Ubuntu 20.04 Node v18.7.0 AMD Ryzen 5 5600X
- 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.
MIT