7 "github.com/vapor/account"
8 dbm "github.com/vapor/database/leveldb"
9 "github.com/vapor/mining"
10 "github.com/vapor/test"
13 // Function NewBlockTemplate's benchmark - 0.05s
14 func BenchmarkNewBlockTpl(b *testing.B) {
15 testDB := dbm.NewDB("testdb", "leveldb", "temp")
16 defer os.RemoveAll("temp")
18 chain, _, txPool, err := test.MockChain(testDB)
22 accountManager := account.NewManager(testDB, chain)
25 for i := 0; i < b.N; i++ {
26 mining.NewBlockTemplate(chain, txPool, accountManager)