I am running the Bitcoin Core functional tests using the test runner and it is taking a long time to get through all the tests. Is there a way to speed it up?
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.Sign up to join this community
The Bitcoin Core test README states:
By default, up to 4 tests will be run in parallel by test_runner. To specify how many jobs to run, append
The individual tests and the test_runner harness have many command-line options. Run
test/functional/test_runner.py -hto see them all.
Pieter Wuille also explained how he gets the total time down below 4 minutes on GitHub:
You can run them in parallel; if you have sufficient RAM pretty extremely even.
test_runner.py -j60works fine on my 4-core 32 GiB RAM system, taking 3m46s. A lot of the time consists of processes waiting for each other, so it's not actually CPU bound.