OSDN Git Service

Thanos did someting
[bytom/vapor.git] / vendor / github.com / btcsuite / btcd / blockchain / bench_test.go
diff --git a/vendor/github.com/btcsuite/btcd/blockchain/bench_test.go b/vendor/github.com/btcsuite/btcd/blockchain/bench_test.go
deleted file mode 100644 (file)
index 43d3152..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2015 The btcsuite developers
-// Use of this source code is governed by an ISC
-// license that can be found in the LICENSE file.
-
-package blockchain
-
-import (
-       "testing"
-
-       "github.com/btcsuite/btcutil"
-)
-
-// BenchmarkIsCoinBase performs a simple benchmark against the IsCoinBase
-// function.
-func BenchmarkIsCoinBase(b *testing.B) {
-       tx, _ := btcutil.NewBlock(&Block100000).Tx(1)
-       b.ResetTimer()
-       for i := 0; i < b.N; i++ {
-               IsCoinBase(tx)
-       }
-}
-
-// BenchmarkIsCoinBaseTx performs a simple benchmark against the IsCoinBaseTx
-// function.
-func BenchmarkIsCoinBaseTx(b *testing.B) {
-       tx := Block100000.Transactions[1]
-       b.ResetTimer()
-       for i := 0; i < b.N; i++ {
-               IsCoinBaseTx(tx)
-       }
-}