Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
primitives: Add check proof of work benchmark.
The following is a comparison between the existing implementation in the blockchain/standalone module with big integers (old) and the new implementation (new) averaging 10 runs each: name old time/op new time/op delta ----------------------------------------------------------------------------- CheckProofOfWork 314ns ± 1% 43ns ± 0% -86.42% (p=0.000 n=10+10) name old allocs/op new allocs/op delta ------------------------------------------------------------------------------ CheckProofOfWork 5.00 ± 0% 0.00 -100.00% (p=0.000 n=10+10)
- Loading branch information