Skip to content

mganss/IisGzip

Repository files navigation

IisGzip

IisGzip is a command line wrapper around the gzip compression library used by Microsoft IIS.

If you're looking for a way to let IIS compress content using a different compressor, check out this other project.

Usage

IisGzip.exe [-0..10] [-dPathToDll] < in.txt > out.txt.gz

Default compression level is 10. Make sure you have IIS installed.

Performance

Here are a few completely unscientific benchmarks:

Inputgzip 1.4 -97-Zip 9.20 -tgzip -mx=9IisGzip -10Zopfli b87006b (numiterations=15)
enwik8
Size (bytes)100'000'00036'445'24835'102'88435'065'64534'987'671
Savings compared to gzip3.7%3.8%4.0%
Compression Time6.6s89s18s503s
jquery-1.11.1.min.js
Size (bytes)95'78633'08332'19132'35832'091
Savings compared to gzip2.7%2.2%3.0%
Compression Time (100 runs)1.9s9.0s3.0s33s

Here's a benchmark of the different compression levels offered by the IIS gzip library:

Compression Level012345678910
jquery-1.11.1.min.js
Compression Time (1000 runs), in s14.614.414.715.015.416.417.517.818.218.528.5
Size (bytes)42'74840'94939'43738'45134'38333'66233'34933'31133'29333'29332'358
Savings compared to level 05%8%11%20%22%22%23%23%23%25%
enwik8
Compression Time (s)1.71.82.12.83.04.56.97.88.48.418.2
Size (bytes)47'524'21443'999'42042'452'50141'284'37638'132'42437'200'50936'667'33336'601'31736'579'17336'578'95335'065'645
Savings compared to level 08%11%14%20%22%23%23%24%24%27%

About

A command line wrapper around the IIS gzip compression DLL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published