Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We're going to use BLAKE3 internally quite a lot in the future, so we're going to have a way to debug and verify its operation. This commit introduces a --b3sum tool mode which is pretty much a carbon copy of the official rust based b3sum tool. $ b3sum AUTHORS ef16663afb2548b2c155db790ed360f1fde46e777fb686d43c48454397094184 AUTHORS $ fy-tool --b3sum AUTHORS ef16663afb2548b2c155db790ed360f1fde46e777fb686d43c48454397094184 AUTHORS $ b3sum AUTHORS | fy-tool --b3sum --check - AUTHORS: OK Highlights: - About the same speed on memory cached file I/O or SDD media. Not surprising since 97% of time spend is on the assembly hashing functions, if the stealing thread pool implementation are similar. - Much faster on HDD uncached file I/O (about 40%) due to rotational media detection and adjusting accordingly. - In either case, file BLAKE3 hashing is I/O limited in all cases, on a reasonably recent machine. - Backend selection via --backend switch - List available backends with --list-backends - Extensive options for controlling operation, use --b3sum --help Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
- Loading branch information