Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

benchmark gzipped output #2220

Merged
merged 1 commit into from
Jul 8, 2017
Merged

benchmark gzipped output #2220

merged 1 commit into from
Jul 8, 2017

Conversation

alexlamsl
Copy link
Collaborator

@@ -65,6 +68,11 @@ urls.forEach(function(url) {
results[url].sha1 = data.toString("hex");
done();
});
uglifyjs.stdout.pipe(zlib.createGzip({
level: zlib.Z_BEST_COMPRESSION
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't web servers generally use default gzip compression?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, I used default gzip sizes for the benchmarks in the README.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't web servers generally use default gzip compression?

For dynamic content, probably.

Static content are not compressed on the fly, so they tend to spend more effort in squeezing bigger savings.

In fact, there is zopfli which is crazy slow but produce gzip-compatible output - though I don't think there is widespread adoption of that one.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Good to know. Hadn't heard of zopfli.

@alexlamsl alexlamsl merged commit 4956ad3 into mishoo:master Jul 8, 2017
@alexlamsl alexlamsl deleted the bench-gzip branch July 8, 2017 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants