Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wire: Use large tx for deserialize benchmark. #678

Merged
merged 1 commit into from
Apr 25, 2016

Commits on Apr 25, 2016

  1. wire: Add large tx deserialize benchmark.

    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
    davecgh committed Apr 25, 2016
    Configuration menu
    Copy the full SHA
    ec7d9b5 View commit details
    Browse the repository at this point in the history