An example of mine: a javascript-file that was 485kb before compression is 299kb after compression with brotli.js. The same file is 94.4kb when compressed 'on-the-fly' with ngx_brotli. I'm using quality 11 compression.
Steps to reproduce would be to install ngx_brotli on an nginx server, and compare file-sizes with the result of the following:
var fs = require('fs')var brotli = require('brotli')var result = brotli.compress(someFile, { quality: 11 })fs.writeFile(someDir, result)
An example of mine: a javascript-file that was 485kb before compression is 299kb after compression with brotli.js. The same file is 94.4kb when compressed 'on-the-fly' with ngx_brotli. I'm using quality 11 compression.
Steps to reproduce would be to install ngx_brotli on an nginx server, and compare file-sizes with the result of the following:
var fs = require('fs')
var brotli = require('brotli')
var result = brotli.compress(someFile, { quality: 11 })
fs.writeFile(someDir, result)