dagger_test.go 411 B

123456789101112131415161718
  1. package ethchain
  2. import (
  3. "github.com/ethereum/eth-go/ethutil"
  4. "math/big"
  5. "testing"
  6. )
  7. func BenchmarkDaggerSearch(b *testing.B) {
  8. hash := big.NewInt(0)
  9. diff := ethutil.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. }