• Adenilson Cavalcanti's avatar
    Adding a compression level flag to zlib_bench · 6f29a9bb
    Adenilson Cavalcanti authored
    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: default avatarChris Blume <cblume@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#584233}
    6f29a9bb
zlib_bench.cc 9.67 KB