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