Skip to content

An application to test different compression algorithms in node.

Notifications You must be signed in to change notification settings

Stieneee/node-compression-test

Repository files navigation

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

About

An application to test different compression algorithms in node.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published