Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Beelink
--- gcc 11.3.0
Each pair of results is for 4kb, then 8kb block size.
crc32c : 0.295 micros/op 3384041 ops/sec 0.378 seconds 1280000 operations; 13218.9 MB/s (4096 per op)
crc32c : 0.556 micros/op 1797692 ops/sec 0.356 seconds 640000 operations; 14044.5 MB/s (8192 per op)
xxh3 : 0.175 micros/op 5712271 ops/sec 0.224 seconds 1280000 operations; 22313.6 MB/s (4096 per op)
xxh3 : 0.330 micros/op 3028696 ops/sec 0.211 seconds 640000 operations; 23661.7 MB/s (8192 per op)
uncompress : 0.855 micros/op 1169873 ops/sec 0.224 seconds 262144 operations; 4569.8 MB/s
uncompress : 1.634 micros/op 611845 ops/sec 0.214 seconds 131072 operations; 4780.0 MB/s
uncompress : 6.897 micros/op 144983 ops/sec 1.808 seconds 262144 operations; 566.3 MB/s
uncompress : 12.753 micros/op 78408 ops/sec 1.672 seconds 131072 operations; 612.6 MB/s
compress : 6.827 micros/op 146481 ops/sec 1.790 seconds 262144 operations; 572.2 MB/s (output: 55.2%)
compress : 13.216 micros/op 75664 ops/sec 1.732 seconds 131072 operations; 591.1 MB/s (output: 55.1%)
compress : 26.484 micros/op 37758 ops/sec 6.943 seconds 262144 operations; 147.5 MB/s (output: 44.2%)
compress : 46.354 micros/op 21572 ops/sec 6.076 seconds 131072 operations; 168.5 MB/s (output: 42.9%)
--- clang 14.0.0-1ubuntu1
Each pair of results is for 4kb, then 8kb block size.
crc32c : 0.336 micros/op 2978122 ops/sec 0.430 seconds 1280000 operations; 11633.3 MB/s (4096 per op)
crc32c : 0.605 micros/op 1652568 ops/sec 0.387 seconds 640000 operations; 12910.7 MB/s (8192 per op)
xxh3 : 0.150 micros/op 6682781 ops/sec 0.192 seconds 1280000 operations; 26104.6 MB/s (4096 per op)
xxh3 : 0.296 micros/op 3378574 ops/sec 0.189 seconds 640000 operations; 26395.1 MB/s (8192 per op)
uncompress : 0.857 micros/op 1166458 ops/sec 0.225 seconds 262144 operations; 4556.5 MB/s
uncompress : 1.620 micros/op 617282 ops/sec 0.212 seconds 131072 operations; 4822.5 MB/s
uncompress : 6.882 micros/op 145295 ops/sec 1.804 seconds 262144 operations; 567.6 MB/s
uncompress : 12.693 micros/op 78783 ops/sec 1.664 seconds 131072 operations; 615.5 MB/s
compress : 6.783 micros/op 147422 ops/sec 1.778 seconds 262144 operations; 575.9 MB/s (output: 55.2%)
compress : 13.347 micros/op 74919 ops/sec 1.749 seconds 131072 operations; 585.3 MB/s (output: 55.1%)
compress : 26.586 micros/op 37613 ops/sec 6.969 seconds 262144 operations; 146.9 MB/s (output: 44.2%)
compress : 46.862 micros/op 21339 ops/sec 6.142 seconds 131072 operations; 166.7 MB/s (output: 42.9%)
--- gcc 11.3.0
--- clang 14.0.0-1ubuntu1
The results are gcc, then clang at 4kb block size, then at 8kb block size.
crc32c : 0.295 micros/op 3384041 ops/sec -> 4kb, gcc
crc32c : 0.336 micros/op 2978122 ops/sec -> 4kb, clang
-
crc32c : 0.556 micros/op 1797692 ops/sec -> 8kb, gcc
crc32c : 0.605 micros/op 1652568 ops/sec -> 8kb, clang
-
xxh3 : 0.175 micros/op 5712271 ops/sec
xxh3 : 0.150 micros/op 6682781 ops/sec
-
xxh3 : 0.330 micros/op 3028696 ops/sec
xxh3 : 0.296 micros/op 3378574 ops/sec
-
uncompress : 0.855 micros/op 1169873 ops/sec
uncompress : 0.857 micros/op 1166458 ops/sec
-
uncompress : 1.634 micros/op 611845 ops/sec
uncompress : 1.620 micros/op 617282 ops/sec
-
uncompress : 6.897 micros/op 144983 ops/sec
uncompress : 6.882 micros/op 145295 ops/sec
-
uncompress : 12.753 micros/op 78408 ops/sec
uncompress : 12.693 micros/op 78783 ops/sec
-
compress : 6.827 micros/op 146481 ops/sec
compress : 6.783 micros/op 147422 ops/sec
-
compress : 13.216 micros/op 75664 ops/sec
compress : 13.347 micros/op 74919 ops/sec
-
compress : 26.484 micros/op 37758 ops/sec
compress : 26.586 micros/op 37613 ops/sec
-
compress : 46.354 micros/op 21572 ops/sec
compress : 46.862 micros/op 21339 ops/sec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment