Skip to content

Commit

Permalink
benchmark.js: switch to the default gzip level
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Oct 10, 2021
1 parent 11fb035 commit 5f0a43b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ function readSize(filePath, callback) {
}

function gzip(inPath, outPath, callback) {
fs.createReadStream(inPath).pipe(zlib.createGzip({
level: zlib.Z_BEST_COMPRESSION
})).pipe(fs.createWriteStream(outPath)).on('finish', callback);
fs.createReadStream(inPath)
.pipe(zlib.createGzip())
.pipe(fs.createWriteStream(outPath))
.on('finish', callback);
}

function brotli(inPath, outPath, callback) {
Expand Down

0 comments on commit 5f0a43b

Please sign in to comment.