Adding a compression level flag to zlib_bench

Optimizations can have different impact depending on the compression
level used.

It is quite handy to be able to change the compression level used for
experiments while optimizing zlib.

This patch adds an optional flag (-compression) to allow passing the desired compression
level (0 to 9). To keep consistency, the user has to pass the target
wrapper format (e.g. -wrapper gzip|zlib|raw).

Finally, a help parameter is now supported (i.e. ./zlib_bench -h | --help) that
will print the expected parameters while invoking the tool.

Change-Id: I0b29fc2bd31bfccc39a7b7a10b510d9ca46d47e2
Reviewed-on: https://chromium-review.googlesource.com/1180341
Commit-Queue: Adenilson Cavalcanti <cavalcantii@chromium.org>
Reviewed-by: Chris Blume <cblume@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#584233}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6f29a9bb60f011adc4743da6fbd10d9f639ffb89
1 file changed