Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Benchmark existing ways to check for
IDENTITY
CIDs
Add benchmarks that compare two ways of checking for `multihash.IDENTITY` code: 1. `Cid.Prefix().MhType` 2. Decode of `Cid.Hash()` This benchmark illustrates that using Cid.Prefix is efficient than `multihash.Decode`. Users wishing to perform such a check should use `Cid.Prefix`. Consider that `Cid.Prefix` is already efficient enough and gains are likely small if a dedicated API for performing this check to be introduced. Relates to #133
- Loading branch information