Skip to content

Conversation

@maflcko
Copy link
Member

@maflcko maflcko commented Aug 5, 2021

No need to waste time by forcing creation of more than 1000 blocks to get the benefits of being able to test BIP 66. Also, reducing the height makes it more likely that (third-party) tests are conforming to BIP 66, which is enforced on mainnet for all new blocks.

@fanquake fanquake added the Tests label Aug 5, 2021
@maflcko maflcko force-pushed the 2108-regtestFasterBip66 branch from 295236b to fafe896 Compare August 5, 2021 10:08
@theStack
Copy link
Contributor

theStack commented Aug 5, 2021

Strong Concept ACK

Copy link
Contributor

@Zero-1729 Zero-1729 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK fafe896

@DrahtBot
Copy link
Contributor

DrahtBot commented Aug 5, 2021

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #21862 (test: Set regtest.BIP65Height = 112 to speed up tests by MarcoFalke)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@GeneFerneau
Copy link

Concept + code review ACK fafe896

@brunoerg
Copy link
Contributor

brunoerg commented Aug 6, 2021

Concept ACK

Copy link
Contributor

@kristapsk kristapsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK fafe896. Full functional test suite showed few second speed incrase on my laptop (although I didn't do proper benchmarking with multiple runs, just single time ./test/functional/test_runner.py on current master vs this PR).

@maflcko
Copy link
Member Author

maflcko commented Aug 6, 2021

This should only affect the speed of test/functional/feature_dersig.py and no other test

Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested ACK fafe896

master branch:

$ time ./test/functional/feature_dersig.py
...
    0m15.29s real     0m11.55s user    0m05.72s system

PR branch:

$ time ./test/functional/feature_dersig.py
...
    0m03.97s real     0m01.42s user    0m01.34s system

🎉

Copy link
Contributor

@Zero-1729 Zero-1729 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK fafe896

Tested on macOS v11.4

Master

$ time ./test/functional/feature_dersig.py
...
./test/functional/feature_dersig.py  1.65s user 0.42s system

After Patch

$ time ./test/functional/feature_dersig.py
...
./test/functional/feature_dersig.py  0.37s user 0.15s system

@0xB10C
Copy link
Contributor

0xB10C commented Aug 8, 2021

crACK fafe896

Copy link
Contributor

@hg333 hg333 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK fafe896

Tested on Ubuntu 20.04

Master branch:

$ time ./test/functional/feature_dersig.py 
...
real	0m23.470s
user	0m6.761s
sys	0m1.232s

PR branch:

$ time ./test/functional/feature_dersig.py 
...
real	0m3.051s
user	0m0.646s
sys	0m0.131s

@laanwj
Copy link
Member

laanwj commented Aug 10, 2021

ACK fafe896

@laanwj laanwj merged commit 0b5344b into bitcoin:master Aug 10, 2021
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Aug 15, 2021
…tests

fafe896 test: Set regtest.BIP66Height = 102 to speed up tests (MarcoFalke)

Pull request description:

  No need to waste time by forcing creation of more than 1000 blocks to get the benefits of being able to test BIP 66. Also, reducing the height makes it more likely that (third-party) tests are conforming to BIP 66, which is enforced on mainnet for all new blocks.

ACKs for top commit:
  GeneFerneau:
    Concept + code review ACK [fafe896](bitcoin@fafe896)
  0xB10C:
    crACK fafe896
  laanwj:
    ACK fafe896
  Zero-1729:
    tACK fafe896
  kristapsk:
    ACK fafe896. Full functional test suite showed few second speed incrase on my laptop (although I didn't do proper benchmarking with multiple runs, just single `time ./test/functional/test_runner.py` on current master vs this PR).
  theStack:
    Tested ACK fafe896
  hg333:
    tACK bitcoin@fafe896

Tree-SHA512: 4bbee3c8587d612e74a59fde49b6439c1296f2fc27d3a7cf59a35e920f729fdd581c930290bd04def618f81412236676ddb99b4ceb4d80dfb9fd610b128a04b1
@maflcko maflcko deleted the 2108-regtestFasterBip66 branch August 22, 2021 17:55
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.