Skip to content

edwards: Run tests in parallel.#3723

Merged
davecgh merged 4 commits into
decred:masterfrom
jholdstock:edwards-tests
Jul 5, 2026
Merged

edwards: Run tests in parallel.#3723
davecgh merged 4 commits into
decred:masterfrom
jholdstock:edwards-tests

Conversation

@jholdstock

Copy link
Copy Markdown
Member

On my system with a i7-10750H CPU these changes reduce the total runtime for the edwards package tests from ~9.3s to ~1.7s.

The second commit deliberately does not use t.Run as that would lead to an additional 50 lines of output when running go test -v.

None of the tests in this package were tagged with t.Parallel despite
them sharing no global state and there being no risk of races.

On my system with a i7-10750H CPU using t.Parallel reduces the total
runtime for the edwards package tests from ~9.3s to ~4.7s.
TestSchnorrThreshold and TestNonStandardSignatures were previously
running 50 test cases sequentially.

On my system with a i7-10750H CPU running them in parallel using
goroutines reduces the total runtime for the edwards package tests from
~4.7s to ~1.7s.
@davecgh davecgh added this to the 2.2.0 milestone Jul 5, 2026
@davecgh davecgh merged commit 8cf54ac into decred:master Jul 5, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants