Skip to content

Instantly share code, notes, and snippets.

@AntonIXO
Created October 10, 2022 20:33
Show Gist options
  • Select an option

  • Save AntonIXO/9d91a8f561f39a77a94284189fb0a077 to your computer and use it in GitHub Desktop.

Select an option

Save AntonIXO/9d91a8f561f39a77a94284189fb0a077 to your computer and use it in GitHub Desktop.
zstd-jni vs Aircompressor
First benchmark:
[23:26:59] [Render thread/INFO]: Benchmarking chunk stream speed
[23:26:59] [Render thread/INFO]: Warming up
[23:27:33] [Render thread/INFO]: Generating 128MB random data
[23:27:34] [Render thread/INFO]: Starting benchmark for GZIP
[23:27:34] [Render thread/INFO]: GZIP write speed: 187.065 MB/s (187.069 MB/s compressed)
[23:27:34] [Render thread/INFO]: GZIP compression ratio: 100.002 %
[23:27:35] [Render thread/INFO]: GZIP read speed: 450.796 MB/s (450.807 MB/s compressed)
[23:27:35] [Render thread/INFO]: Generating 128MB random data
[23:27:36] [Render thread/INFO]: Starting benchmark for DEFLATE
[23:27:36] [Render thread/INFO]: DEFLATE write speed: 165.007 MB/s (165.011 MB/s compressed)
[23:27:36] [Render thread/INFO]: DEFLATE compression ratio: 100.002 %
[23:27:37] [Render thread/INFO]: DEFLATE read speed: 423.133 MB/s (423.142 MB/s compressed)
[23:27:37] [Render thread/INFO]: Generating 128MB random data
[23:27:38] [Render thread/INFO]: Starting benchmark for UNCOMPRESSED
[23:27:39] [Render thread/INFO]: UNCOMPRESSED write speed: 186.247 MB/s (186.251 MB/s compressed)
[23:27:39] [Render thread/INFO]: UNCOMPRESSED compression ratio: 100.002 %
[23:27:39] [Render thread/INFO]: UNCOMPRESSED read speed: 527.191 MB/s (527.203 MB/s compressed)
[23:27:39] [Render thread/INFO]: Generating 128MB random data
[23:27:40] [Render thread/INFO]: Starting benchmark for zstd_jni
[23:27:41] [Render thread/INFO]: zstd_jni write speed: 267.829 MB/s (267.835 MB/s compressed)
[23:27:41] [Render thread/INFO]: zstd_jni compression ratio: 100.002 %
[23:27:41] [Render thread/INFO]: zstd_jni read speed: 871.631 MB/s (871.651 MB/s compressed)
[23:27:41] [Render thread/INFO]: Generating 128MB random data
[23:27:42] [Render thread/INFO]: Starting benchmark for zstd_air
[23:27:43] [Render thread/INFO]: zstd_air write speed: 208.496 MB/s (208.501 MB/s compressed)
[23:27:43] [Render thread/INFO]: zstd_air compression ratio: 100.002 %
[23:27:43] [Render thread/INFO]: zstd_air read speed: 507.593 MB/s (507.605 MB/s compressed)
Second benchmark:
[23:23:41] [Render thread/INFO]: Benchmarking chunk stream speed
[23:23:41] [Render thread/INFO]: Warming up
[23:24:09] [Render thread/INFO]: Generating 128MB random data
[23:24:10] [Render thread/INFO]: Starting benchmark for GZIP
[23:24:11] [Render thread/INFO]: GZIP write speed: 205.848 MB/s (205.853 MB/s compressed)
[23:24:11] [Render thread/INFO]: GZIP compression ratio: 100.002 %
[23:24:11] [Render thread/INFO]: GZIP read speed: 564.582 MB/s (564.595 MB/s compressed)
[23:24:11] [Render thread/INFO]: Generating 128MB random data
[23:24:12] [Render thread/INFO]: Starting benchmark for DEFLATE
[23:24:12] [Render thread/INFO]: DEFLATE write speed: 216.253 MB/s (216.258 MB/s compressed)
[23:24:12] [Render thread/INFO]: DEFLATE compression ratio: 100.002 %
[23:24:13] [Render thread/INFO]: DEFLATE read speed: 554.299 MB/s (554.312 MB/s compressed)
[23:24:13] [Render thread/INFO]: Generating 128MB random data
[23:24:13] [Render thread/INFO]: Starting benchmark for UNCOMPRESSED
[23:24:14] [Render thread/INFO]: UNCOMPRESSED write speed: 211.11 MB/s (211.115 MB/s compressed)
[23:24:14] [Render thread/INFO]: UNCOMPRESSED compression ratio: 100.002 %
[23:24:14] [Render thread/INFO]: UNCOMPRESSED read speed: 598.76 MB/s (598.774 MB/s compressed)
[23:24:14] [Render thread/INFO]: Generating 128MB random data
[23:24:15] [Render thread/INFO]: Starting benchmark for zstd_jni
[23:24:15] [Render thread/INFO]: zstd_jni write speed: 307.866 MB/s (307.873 MB/s compressed)
[23:24:15] [Render thread/INFO]: zstd_jni compression ratio: 100.002 %
[23:24:16] [Render thread/INFO]: zstd_jni read speed: 883.201 MB/s (883.221 MB/s compressed)
[23:24:16] [Render thread/INFO]: Generating 128MB random data
[23:24:16] [Render thread/INFO]: Starting benchmark for zstd_air
[23:24:17] [Render thread/INFO]: zstd_air write speed: 218.29 MB/s (218.295 MB/s compressed)
[23:24:17] [Render thread/INFO]: zstd_air compression ratio: 100.002 %
[23:24:17] [Render thread/INFO]: zstd_air read speed: 588.252 MB/s (588.266 MB/s compressed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment