Skip to content

Instantly share code, notes, and snippets.

@mdcallag
Created January 3, 2023 16:53
Show Gist options
  • Save mdcallag/7e00e357fbe29e553e9334ccdab53902 to your computer and use it in GitHub Desktop.
Save mdcallag/7e00e357fbe29e553e9334ccdab53902 to your computer and use it in GitHub Desktop.
c7g.2xl
--- gcc 11.3.0, c7g.2xl
Each pair of results is for 4kb, then 8kb block size.
crc32c : 0.212 micros/op 4719868 ops/sec 0.271 seconds 1280000 operations; 18437.0 MB/s (4096 per op)
crc32c : 0.415 micros/op 2409357 ops/sec 0.266 seconds 640000 operations; 18823.1 MB/s (8192 per op)
xxh3 : 0.404 micros/op 2475793 ops/sec 0.517 seconds 1280000 operations; 9671.1 MB/s (4096 per op)
xxh3 : 0.811 micros/op 1232345 ops/sec 0.519 seconds 640000 operations; 9627.7 MB/s (8192 per op)
uncompress : 0.398 micros/op 2513533 ops/sec 0.104 seconds 262144 operations; 9818.5 MB/s
uncompress : 0.757 micros/op 1320784 ops/sec 0.099 seconds 131072 operations; 10318.6 MB/s
uncompress : 3.949 micros/op 253243 ops/sec 1.035 seconds 262144 operations; 989.2 MB/s
uncompress : 7.335 micros/op 136324 ops/sec 0.961 seconds 131072 operations; 1065.0 MB/s
compress : 4.454 micros/op 224501 ops/sec 1.168 seconds 262144 operations; 877.0 MB/s (output: 55.2%)
compress : 8.734 micros/op 114498 ops/sec 1.145 seconds 131072 operations; 894.5 MB/s (output: 55.1%)
compress : 13.334 micros/op 74995 ops/sec 3.495 seconds 262144 operations; 293.0 MB/s (output: 44.2%)
compress : 23.672 micros/op 42243 ops/sec 3.103 seconds 131072 operations; 330.0 MB/s (output: 42.9%)
--- clang 14.0.0, c7g.2xl
Each pair of results is for 4kb, then 8kb block size.
crc32c : 0.213 micros/op 4685023 ops/sec 0.273 seconds 1280000 operations; 18300.9 MB/s (4096 per op)
crc32c : 0.419 micros/op 2385994 ops/sec 0.268 seconds 640000 operations; 18640.6 MB/s (8192 per op)
xxh3 : 0.247 micros/op 4049441 ops/sec 0.316 seconds 1280000 operations; 15818.1 MB/s (4096 per op)
xxh3 : 0.473 micros/op 2115639 ops/sec 0.303 seconds 640000 operations; 16528.4 MB/s (8192 per op)
uncompress : 0.407 micros/op 2457108 ops/sec 0.107 seconds 262144 operations; 9598.1 MB/s
uncompress : 0.767 micros/op 1303693 ops/sec 0.101 seconds 131072 operations; 10185.1 MB/s
uncompress : 3.962 micros/op 252399 ops/sec 1.039 seconds 262144 operations; 985.9 MB/s
uncompress : 7.359 micros/op 135888 ops/sec 0.965 seconds 131072 operations; 1061.6 MB/s
compress : 4.456 micros/op 224417 ops/sec 1.168 seconds 262144 operations; 876.6 MB/s (output: 55.2%)
compress : 8.725 micros/op 114615 ops/sec 1.144 seconds 131072 operations; 895.4 MB/s (output: 55.1%)
compress : 13.304 micros/op 75164 ops/sec 3.488 seconds 262144 operations; 293.6 MB/s (output: 44.2%)
compress : 23.816 micros/op 41988 ops/sec 3.122 seconds 131072 operations; 328.0 MB/s (output: 42.9%)
--- gcc 11.3.0, c7g.2xl
--- clang 14.0.0, c7g.2xl
The results are gcc, then clang at 4kb block size, then at 8kb block size.
crc32c : 0.212 micros/op 4719868 ops/sec -> 4kb, gcc
crc32c : 0.213 micros/op 4685023 ops/sec -> 4kb, clang
-
crc32c : 0.415 micros/op 2409357 ops/sec -> 8kb, gcc
crc32c : 0.419 micros/op 2385994 ops/sec -> 8kb, clang
-
xxh3 : 0.404 micros/op 2475793 ops/sec
xxh3 : 0.247 micros/op 4049441 ops/sec
-
xxh3 : 0.811 micros/op 1232345 ops/sec
xxh3 : 0.473 micros/op 2115639 ops/sec
-
uncompress : 0.398 micros/op 2513533 ops/sec
uncompress : 0.407 micros/op 2457108 ops/sec
-
uncompress : 0.757 micros/op 1320784 ops/sec
uncompress : 0.767 micros/op 1303693 ops/sec
-
uncompress : 3.949 micros/op 253243 ops/sec
uncompress : 3.962 micros/op 252399 ops/sec
-
uncompress : 7.335 micros/op 136324 ops/sec
uncompress : 7.359 micros/op 135888 ops/sec
-
compress : 4.454 micros/op 224501 ops/sec
compress : 4.456 micros/op 224417 ops/sec
-
compress : 8.734 micros/op 114498 ops/sec
compress : 8.725 micros/op 114615 ops/sec
-
compress : 13.334 micros/op 74995 ops/sec
compress : 13.304 micros/op 75164 ops/sec
-
compress : 23.672 micros/op 42243 ops/sec
compress : 23.816 micros/op 41988 ops/sec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment