Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
c6i.2xl
--- gcc 11.3.0, c6i.2xl
Each pair of results is for 4kb, then 8kb block size.
crc32c : 0.156 micros/op 6411348 ops/sec 0.200 seconds 1280000 operations; 25044.3 MB/s (4096 per op)
crc32c : 0.305 micros/op 3281024 ops/sec 0.195 seconds 640000 operations; 25633.0 MB/s (8192 per op)
xxh3 : 0.085 micros/op 11703285 ops/sec 0.109 seconds 1280000 operations; 45716.0 MB/s (4096 per op)
xxh3 : 0.152 micros/op 6596850 ops/sec 0.097 seconds 640000 operations; 51537.9 MB/s (8192 per op)
uncompress : 0.371 micros/op 2698092 ops/sec 0.097 seconds 262144 operations; 10539.4 MB/s
uncompress : 0.719 micros/op 1389608 ops/sec 0.094 seconds 131072 operations; 10856.3 MB/s
uncompress : 3.516 micros/op 284401 ops/sec 0.922 seconds 262144 operations; 1110.9 MB/s
uncompress : 6.440 micros/op 155278 ops/sec 0.844 seconds 131072 operations; 1213.1 MB/s
compress : 3.888 micros/op 257205 ops/sec 1.019 seconds 262144 operations; 1004.7 MB/s (output: 55.2%)
compress : 7.647 micros/op 130763 ops/sec 1.002 seconds 131072 operations; 1021.6 MB/s (output: 55.1%)
compress : 12.349 micros/op 80980 ops/sec 3.237 seconds 262144 operations; 316.3 MB/s (output: 44.2%)
compress : 21.113 micros/op 47363 ops/sec 2.767 seconds 131072 operations; 370.0 MB/s (output: 42.9%)
--- clang 14.0.0, c6i.2xl
Each pair of results is for 4kb, then 8kb block size.
crc32c : 0.268 micros/op 3726878 ops/sec 0.343 seconds 1280000 operations; 14558.1 MB/s (4096 per op)
crc32c : 0.492 micros/op 2032300 ops/sec 0.315 seconds 640000 operations; 15877.4 MB/s (8192 per op)
xxh3 : 0.099 micros/op 10085331 ops/sec 0.127 seconds 1280000 operations; 39395.8 MB/s (4096 per op)
xxh3 : 0.197 micros/op 5084166 ops/sec 0.126 seconds 640000 operations; 39720.1 MB/s (8192 per op)
uncompress : 0.384 micros/op 2606375 ops/sec 0.101 seconds 262144 operations; 10181.2 MB/s
uncompress : 0.757 micros/op 1320850 ops/sec 0.099 seconds 131072 operations; 10319.1 MB/s
uncompress : 3.584 micros/op 279030 ops/sec 0.939 seconds 262144 operations; 1090.0 MB/s
uncompress : 6.721 micros/op 148776 ops/sec 0.881 seconds 131072 operations; 1162.3 MB/s
compress : 3.888 micros/op 257194 ops/sec 1.019 seconds 262144 operations; 1004.7 MB/s (output: 55.2%)
compress : 7.783 micros/op 128489 ops/sec 1.020 seconds 131072 operations; 1003.8 MB/s (output: 55.1%)
compress : 12.616 micros/op 79266 ops/sec 3.307 seconds 262144 operations; 309.6 MB/s (output: 44.2%)
compress : 21.773 micros/op 45927 ops/sec 2.854 seconds 131072 operations; 358.8 MB/s (output: 42.9%)
--- gcc 11.3.0, c6i.2xl
--- clang 14.0.0, c6i.2xl
The results are gcc, then clang at 4kb block size, then at 8kb block size.
crc32c : 0.156 micros/op 6411348 ops/sec -> 4kb, gcc
crc32c : 0.268 micros/op 3726878 ops/sec -> 4kb, clang
-
crc32c : 0.305 micros/op 3281024 ops/sec -> 8kb, gcc
crc32c : 0.492 micros/op 2032300 ops/sec -> 8kb, clang
-
xxh3 : 0.085 micros/op 11703285 ops/sec
xxh3 : 0.099 micros/op 10085331 ops/sec
-
xxh3 : 0.152 micros/op 6596850 ops/sec
xxh3 : 0.197 micros/op 5084166 ops/sec
-
uncompress : 0.371 micros/op 2698092 ops/sec
uncompress : 0.384 micros/op 2606375 ops/sec
-
uncompress : 0.719 micros/op 1389608 ops/sec
uncompress : 0.757 micros/op 1320850 ops/sec
-
uncompress : 3.516 micros/op 284401 ops/sec
uncompress : 3.584 micros/op 279030 ops/sec
-
uncompress : 6.440 micros/op 155278 ops/sec
uncompress : 6.721 micros/op 148776 ops/sec
-
compress : 3.888 micros/op 257205 ops/sec
compress : 3.888 micros/op 257194 ops/sec
-
compress : 7.647 micros/op 130763 ops/sec
compress : 7.783 micros/op 128489 ops/sec
-
compress : 12.349 micros/op 80980 ops/sec
compress : 12.616 micros/op 79266 ops/sec
-
compress : 21.113 micros/op 47363 ops/sec
compress : 21.773 micros/op 45927 ops/sec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment