forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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}
- Loading branch information
Noel Gordon
authored and
Commit Bot
committed
Feb 13, 2019
1 parent
f0cfdc6
commit 74c7f46
Showing
1 changed file
with
46 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters