Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/fromatob/compression-comparison

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/fromatob/compression-comparison

  • v0.0.0-20190911104132-2c631544413d
  • Source
  • Go
  • Socket score

Version published
Created
Source

compression-comparison

A small tool to compare compression with Brotli and gzip.

The idea is to see how gzip and Brotli compare on your own data. To use it, replace input with an example of the data you'd want to compress, e.g. a JSON file with a response from your API. Then run

go run .

to see compression ratios, and

go test -bench .

to compare compression and decompression speed.

Brotli has a quality setting that lets you trade off speed and effectiveness. The benchmarks include quality 4, which should work well for on-the-fly encryption, and quality 11, which will give the best compression ratio.

Prerequisites

You'll need

  • Go, of course.
  • The Brotli library, including header files. On Ubuntu, sudo apt install libbrotli-dev should do the trick. On macOS, you can do brew install brotli.

FAQs

Package last updated on 11 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc