diff --git a/crypto/keccak/keccak.go b/crypto/keccak/keccak.go deleted file mode 100644 index f4b07a325a..0000000000 --- a/crypto/keccak/keccak.go +++ /dev/null @@ -1,3 +0,0 @@ - - -package keccak diff --git a/crypto/keccak/sha3_test.go b/crypto/keccak/sha3_test.go index 832b6e5742..28a20ec72d 100644 --- a/crypto/keccak/sha3_test.go +++ b/crypto/keccak/sha3_test.go @@ -208,22 +208,3 @@ func BenchmarkPermutationFunction(b *testing.B) { keccakF1600(&lanes) } } - -// benchmarkHash tests the speed to hash num buffers of buflen each. -func benchmarkHash(b *testing.B, h hash.Hash, size, num int) { - b.StopTimer() - h.Reset() - data := sequentialBytes(size) - b.SetBytes(int64(size * num)) - b.StartTimer() - - var state []byte - for i := 0; i < b.N; i++ { - for j := 0; j < num; j++ { - h.Write(data) - } - state = h.Sum(state[:0]) - } - b.StopTimer() - h.Reset() -}