commit | 74c7f46559047433d694f20cf574815bfa4cb8a6 | [log] [tgz] |
---|---|---|
author | Noel Gordon <noel@chromium.org> | Wed Feb 13 10:10:32 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Feb 13 10:10:32 2019 |
tree | 04da34c11bc8ca59fe37361ec0e196513c33ad6a | |
parent | f0cfdc62d455022f854df24dd9ef7b1f279102f7 [diff] |
[zlib_bench] improve program options handling The program options handling has grown a little weedy. Add get_options helper. The wrapper (gzip|zlib|raw) is a required arg, not an optional arg, so remove --wrapper. Limit the --compression level to [1-9] since 0 causes compression failure in practice. Use Z_DEFAULT_COMPRESSION if --compression is not given (zlib@6). Make the compression_level static global since it is a program-level constant. Update usage helper. Bug: 798943 Change-Id: I8e19bd029c1163a00a1b6a2a252c1a4e5da1a633 Reviewed-on: https://chromium-review.googlesource.com/c/1460242 Reviewed-by: Chris Blume <cblume@chromium.org> Commit-Queue: Noel Gordon <noel@chromium.org> Cr-Commit-Position: refs/heads/master@{#631624}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .