dagger_test.go 413 B

12345678910111213141516171819
  1. package dagger
  2. import (
  3. "math/big"
  4. "testing"
  5. "github.com/ethereum/go-ethereum/common"
  6. )
  7. func BenchmarkDaggerSearch(b *testing.B) {
  8. hash := big.NewInt(0)
  9. diff := common.BigPow(2, 36)
  10. o := big.NewInt(0) // nonce doesn't matter. We're only testing against speed, not validity
  11. // Reset timer so the big generation isn't included in the benchmark
  12. b.ResetTimer()
  13. // Validate
  14. DaggerVerify(hash, diff, o)
  15. }