mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
Delete core/rawdb/schema_test.go
This commit is contained in:
parent
a8291445f7
commit
08ee6b45e0
1 changed files with 0 additions and 22 deletions
|
|
@ -1,22 +0,0 @@
|
||||||
package rawdb
|
|
||||||
|
|
||||||
import (
|
|
||||||
"math/rand"
|
|
||||||
"testing"
|
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
|
||||||
)
|
|
||||||
|
|
||||||
var sink []byte
|
|
||||||
|
|
||||||
func BenchmarkStorageHistoryIndexBlockKey(b *testing.B) {
|
|
||||||
var h1, h2 common.Hash
|
|
||||||
for i := range h1 {
|
|
||||||
h1[i] = byte(rand.Intn(256))
|
|
||||||
h2[i] = byte(rand.Intn(256))
|
|
||||||
}
|
|
||||||
b.ResetTimer()
|
|
||||||
for i := 0; i < b.N; i++ {
|
|
||||||
sink = storageHistoryIndexBlockKey(h1, h2, uint32(i))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue