Branch: refs/heads/master
Home: https://github.com/btcsuite/btcd
Commit: 27c0f9f8d1af6a44423b03a2e4f03d4a87a1ac40
https://github.com/btcsuite/btcd/commit/27c0f9f8d1af6a44423b03a2e4f03d4a87a1ac40
Author: Dave Collins <[email protected]>
Date: 2016-04-25 (Mon, 25 Apr 2016)
Changed paths:
M wire/bench_test.go
A wire/testdata/megatx.bin.bz2
Log Message:
-----------
wire: Add large tx deserialize benchmark. (#678)
This adds a benchmark for deserializing a large transaction that is
often referred to as the megatransaction since it is the largest Bitcoin
transaction mined to date. It consists of 5569 inputs and 1 output and
its hash is:
bb41a757f405890fb0f5856228e23b715702d714d59bf2b1feb70d8b2b4e3e08.
This is being done so there is a benchmark that tests more of a
worst-case scenario which is a better candidate for identifying and
testing improvements.
The following benchmark results shows the how much more intensive this
transaction is over the existing mock transaction:
DeserializeTxSmall 1000000 1751 ns/op 376 B/op 16 allocs/op
DeserializeTxLarge 300 5093980 ns/op 1672829 B/op 33430 allocs/op