From 9008b155d3c8d2a32c4c8945f1174243d48d4e90 Mon Sep 17 00:00:00 2001 From: obscuren Date: Thu, 4 Dec 2014 10:28:02 +0100 Subject: Renamed `chain` => `core` --- core/dagger_test.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 core/dagger_test.go (limited to 'core/dagger_test.go') diff --git a/core/dagger_test.go b/core/dagger_test.go new file mode 100644 index 000000000..e80064e6b --- /dev/null +++ b/core/dagger_test.go @@ -0,0 +1,19 @@ +package core + +import ( + "math/big" + "testing" + + "github.com/ethereum/go-ethereum/ethutil" +) + +func BenchmarkDaggerSearch(b *testing.B) { + hash := big.NewInt(0) + diff := ethutil.BigPow(2, 36) + o := big.NewInt(0) // nonce doesn't matter. We're only testing against speed, not validity + + // Reset timer so the big generation isn't included in the benchmark + b.ResetTimer() + // Validate + DaggerVerify(hash, diff, o) +} -- cgit v1.2.3