Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Reduce the execution time of some tests #10377

Merged
merged 4 commits into from
Nov 28, 2021

Conversation

kianenigma
Copy link
Contributor

@kianenigma kianenigma commented Nov 26, 2021

I noticed that some tests where were taking an unreasonably long duration on my machine. Turned out they had constant configurations that implied so, so I changed them.

Example:

bench_get_npos_targets debug build before: <idk, it just takes forever, more than a few minutes 🤷>
bench_get_npos_targets debug build after: 2.92s

bench_get_npos_targets release build before: 0.58s
bench_get_npos_targets release build after: 0.06s

pallet_election_provider_multi_phase all tests debug before: 23.92s
pallet_election_provider_multi_phase all tests debug after: 0.42s

luckily the CI is running tests in release, so less of a big deal.

polkadot companion: paritytech/polkadot#4379
skip check-dependent-cumulus

@kianenigma kianenigma added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Nov 26, 2021
@kianenigma kianenigma added A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). and removed A0-please_review Pull request needs code review. labels Nov 27, 2021
@kianenigma
Copy link
Contributor Author

bot merge

@paritytech-processbot
Copy link

Error: It's not possible to meet the minimal approval count of 1 in paritytech/polkadot#4379

@bkchr
Copy link
Member

bkchr commented Nov 28, 2021

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 3fdb445 into master Nov 28, 2021
@paritytech-processbot paritytech-processbot bot deleted the kiz-tame-bench-test-execution-times branch November 28, 2021 12:47
chevdor pushed a commit that referenced this pull request Dec 1, 2021
* Reduce the execution time of some tests

* Fix

* Fix build

* fmt
niklasad1 added a commit that referenced this pull request Dec 2, 2021
chevdor pushed a commit that referenced this pull request Jan 11, 2022
* Reduce the execution time of some tests

* Fix

* Fix build

* fmt
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
* Reduce the execution time of some tests

* Fix

* Fix build

* fmt
AurevoirXavier added a commit to darwinia-network/darwinia-common that referenced this pull request Sep 8, 2022
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* Reduce the execution time of some tests

* Fix

* Fix build

* fmt
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants