zlib_bench: measure zlib encode and decode performance

Add a tool for measuring encode/decode performance of gzip, zlib,
and raw data encoded in DEFLATE compressed format.

Given a file containing any data, encode (compress) it into gzip,
zlib, or raw DEFLATE format (selected from the command line) then
decode (uncompress) the DEFLATE data.

Verify that the file data and the uncompressed data match. Output
the median and maximum encoding and decoding rates in MB/s.

Bug: 798943
Change-Id: I6729a8e875452c6656bd16d5c798f5d1f3c12689
Reviewed-on: https://chromium-review.googlesource.com/850652
Commit-Queue: Noel Gordon <noel@chromium.org>
Reviewed-by: Chris Blume <cblume@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#530780}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 875ad5e3c08831f1efa91adade7fc350b1ef45bc
2 files changed
tree: de409f3100cf0e3a5fdff2a6f4eb585050a2a83a
  1. accessibility-audit/
  2. accessibility_test_framework/
  3. adobe/
  4. afl/
  5. analytics/
  6. android_async_task/
  7. android_crazy_linker/
  8. android_data_chart/
  9. android_media/
  10. android_opengl/
  11. android_platform/
  12. android_protobuf/
  13. android_support_test_runner/
  14. android_swipe_refresh/
  15. android_system_sdk/
  16. apache-portable-runtime/
  17. apache-win32/
  18. apk-patch-size-estimator/
  19. apple_apsl/
  20. apple_sample_code/
  21. ashmem/
  22. auto/
  23. axe-core/
  24. bazel/
  25. binutils/
  26. blanketjs/
  27. blink/
  28. boringssl/
  29. bouncycastle/
  30. breakpad/
  31. brotli/
  32. bspatch/
  33. byte_buddy/
  34. cacheinvalidation/
  35. ced/
  36. chaijs/
  37. checkstyle/
  38. cld_3/
  39. closure_compiler/
  40. colorama/
  41. content_shell_fonts/
  42. crashpad/
  43. crc32c/
  44. custom_tabs_client/
  45. d3/
  46. decklink/
  47. deqp/
  48. devscripts/
  49. dom_distiller_js/
  50. elfutils/
  51. errorprone/
  52. espresso/
  53. eu-strip/
  54. expat/
  55. fips181/
  56. flatbuffers/
  57. flot/
  58. fontconfig/
  59. freetype/
  60. gardiner_mod/
  61. gestures/
  62. gif_player/
  63. glslang/
  64. glslang-angle/
  65. google_appengine_cloudstorage/
  66. google_input_tools/
  67. google_toolbox_for_mac/
  68. googletest/
  69. gson/
  70. guava/
  71. gvr-android-keyboard/
  72. gvr-android-sdk/
  73. haha/
  74. hamcrest/
  75. harfbuzz-ng/
  76. hunspell/
  77. iaccessible2/
  78. iccjpeg/
  79. icu4j/
  80. ijar/
  81. ink/
  82. inspector_protocol/
  83. instrumented_libraries/
  84. intellij/
  85. isimpledom/
  86. javax_inject/
  87. jinja2/
  88. jmake/
  89. jsoncpp/
  90. jsr-305/
  91. jstemplate/
  92. junit/
  93. khronos/
  94. lcov/
  95. leakcanary/
  96. leveldatabase/
  97. libaddressinput/
  98. libaom/
  99. libdrm/
  100. libevdev/
  101. libFuzzer/
  102. libjingle_xmpp/
  103. libjpeg/
  104. liblouis/
  105. libovr/
  106. libphonenumber/
  107. libpng/
  108. libprotobuf-mutator/
  109. libsecret/
  110. libsync/
  111. libudev/
  112. libusb/
  113. libvpx/
  114. libwebm/
  115. libwebp/
  116. libxml/
  117. libXNVCtrl/
  118. libxslt/
  119. logilab/
  120. lzma_sdk/
  121. mach_override/
  122. markdown/
  123. markupsafe/
  124. material_design_icons/
  125. mesa/
  126. metrics_proto/
  127. minigbm/
  128. minizip/
  129. mocha/
  130. mockito/
  131. modp_b64/
  132. molokocacao/
  133. motemplate/
  134. mozilla/
  135. mt19937ar/
  136. netty-tcnative/
  137. netty4/
  138. node/
  139. objenesis/
  140. ocmock/
  141. openh264/
  142. openvr/
  143. opus/
  144. ots/
  145. ow2_asm/
  146. pexpect/
  147. ply/
  148. polymer/
  149. proguard/
  150. protobuf/
  151. pycoverage/
  152. pyftpdlib/
  153. pylint/
  154. pymock/
  155. pystache/
  156. Python-Markdown/
  157. pywebsocket/
  158. qcms/
  159. qunit/
  160. re2/
  161. requests/
  162. robolectric/
  163. s2cellid/
  164. sfntly/
  165. shaderc/
  166. simplejson/
  167. sinonjs/
  168. smhasher/
  169. snappy/
  170. speech-dispatcher/
  171. spirv-headers/
  172. SPIRV-Tools/
  173. spirv-tools-angle/
  174. sqlite/
  175. sqlite4java/
  176. sudden_motion_sensor/
  177. tcmalloc/
  178. tlslite/
  179. typ/
  180. ub-uiautomator/
  181. usb_ids/
  182. usrsctp/
  183. v4l-utils/
  184. visualmetrics/
  185. vulkan/
  186. vulkan-validation-layers/
  187. wayland/
  188. wayland-protocols/
  189. wds/
  190. web-animations-js/
  191. webdriver/
  192. webgl/
  193. WebKit/
  194. webrtc_overrides/
  195. widevine/
  196. win_build_output/
  197. woff2/
  198. wtl/
  199. xstream/
  200. yara/
  201. yasm/
  202. zlib/
  203. .gitignore
  204. BUILD.gn
  205. DEPS
  206. OWNERS
  207. PRESUBMIT.py
  208. README.chromium
  209. README.chromium.template