1 // Copyright (c) 2015 The btcsuite developers
2 // Use of this source code is governed by an ISC
3 // license that can be found in the LICENSE file.
10 "github.com/btcsuite/btcutil"
13 // BenchmarkIsCoinBase performs a simple benchmark against the IsCoinBase
15 func BenchmarkIsCoinBase(b *testing.B) {
16 tx, _ := btcutil.NewBlock(&Block100000).Tx(1)
18 for i := 0; i < b.N; i++ {
23 // BenchmarkIsCoinBaseTx performs a simple benchmark against the IsCoinBaseTx
25 func BenchmarkIsCoinBaseTx(b *testing.B) {
26 tx := Block100000.Transactions[1]
28 for i := 0; i < b.N; i++ {