[ANNOUNCE] ngx_brotli

Piotr Sikora piotrsikora at google.com
Mon Oct 12 21:31:22 UTC 2015


Hey Aleks,

> https://bugzilla.mozilla.org/show_bug.cgi?id=366559
>
> In the firefox thread are some concerns about cpu usage vs bandwith savings.
> Do you have done some tests from this point of view?

That thread is quite old and a lot of the comments there might apply
to the original Brotli implementation, which was quite slow, compared
to what was released recently.

Anyway, Brotli Team did some benchmarks:
http://www.gstatic.com/b/brotlidocs/brotli-2015-09-22.pdf

...and there are more numbers in the Chromium thread:
https://code.google.com/p/chromium/issues/detail?id=452335

At this point, Brotli is pretty much always a better choice. Compared
to gzip, at the same compression level, you get significantly better
compression ratio and comparable (or slightly faster) decompression
speed, at the cost of compression speed... And if you're concerned
with CPU usage (i.e. compression speed on the server side), you might
just lower the compression level and you'll most likely get better
compression ratio and faster compression speed than with gzip at
higher level.

Also, don't forget to pre-compress your static assets at brotli 11! :)

Note: Brotli is still being actively worked on, so this will only get
better over time ;)

Best regards,
Piotr Sikora



More information about the nginx mailing list