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

Run performance tests in mainnet preset #2935

Merged
merged 6 commits into from
Aug 10, 2021
Merged

Conversation

dapplion
Copy link
Contributor

Motivation

Some tests need to recreate mainnet conditions and so need the mainnet preset. The minimal preset was being applied because lodestar test setup.ts was initializing both BLS and the preset.

Description

Split lodestar test initialization. Initialize BLS and preset on regular tests, initialize BLS only in perf tests

@codeclimate
Copy link

codeclimate bot commented Aug 10, 2021

Code Climate has analyzed commit 3edb045 and detected 0 issues on this pull request.

View more on Code Climate.

@github-actions
Copy link
Contributor

⚠️ Performance Alert ⚠️

Possible performance regression was detected for some benchmarks.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold.

Benchmark suite Current: 9aff2b5 Previous: 05e8265 Ratio
Process block - 250000 vs - 7PWei - with 0 validator exit 6.2960 ms/op 354.94 us/op 17.74
epoch phase0 - 250000 vs - 7PWei - beforeProcessEpoch 1.9365 s/op 634.02 ms/op 3.05
shuffle list - 16384 els 18.056 ms/op 1.5060 ms/op 11.99
shuffle list - 250000 els 258.81 ms/op 21.502 ms/op 12.04
Full benchmark results
Benchmark suite Current: 9aff2b5 Previous: 05e8265 Ratio
getCommitteeAssignments - req 1000 vs - 250000 vc 9.2060 ms/op 7.8467 ms/op 1.17
epoch altair - 250000 vs - 7PWei - processInactivityUpdates 3.0701 s/op 2.2111 s/op 1.39
epoch altair - 250000 vs - 7PWei - processRewardsAndPenalties 1.2022 s/op 883.38 ms/op 1.36
epoch altair - 250000 vs - 7PWei - processParticipationFlagUpdates 485.37 ms/op 353.07 ms/op 1.37
Process block - 250000 vs - 7PWei - with 0 validator exit 6.2960 ms/op 354.94 us/op 17.74
Process block - 250000 vs - 7PWei - with 1 validator exit 33.336 ms/op 32.650 ms/op 1.02
Process block - 250000 vs - 7PWei - with 16 validator exits 44.365 ms/op 26.815 ms/op 1.65
epoch phase0 - 250000 vs - 7PWei - beforeProcessEpoch 1.9365 s/op 634.02 ms/op 3.05
epoch phase0 - 250000 vs - 7PWei - processRewardsAndPenalties 976.70 ms/op 458.47 ms/op 2.13
epoch phase0 - 250000 vs - 7PWei - processEffectiveBalanceUpdates 139.00 ms/op 109.10 ms/op 1.27
getAttestationDeltas - 250000 vs - 7PWei 134.06 ms/op 92.590 ms/op 1.45
processSlots - 250000 vs - 7PWei - 32 empty slots 3.6392 s/op 4.5431 s/op 0.80
shuffle list - 16384 els 18.056 ms/op 1.5060 ms/op 11.99
shuffle list - 250000 els 258.81 ms/op 21.502 ms/op 12.04
getPubkeys - persistent - req 1000 vs - 250000 vc 20.877 us/op 15.169 us/op 1.38
BLS verify - blst-native 2.3536 ms/op 1.6439 ms/op 1.43
BLS verifyMultipleSignatures 3 - blst-native 4.8998 ms/op 3.3547 ms/op 1.46
BLS verifyMultipleSignatures 8 - blst-native 10.557 ms/op 7.2510 ms/op 1.46
BLS verifyMultipleSignatures 32 - blst-native 41.545 ms/op 28.700 ms/op 1.45
BLS aggregatePubkeys 32 - blst-native 51.873 us/op 35.819 us/op 1.45
BLS aggregatePubkeys 128 - blst-native 202.75 us/op 137.18 us/op 1.48
getAttestationsForBlock 95.326 ms/op 86.567 ms/op 1.10
validate gossip signedAggregateAndProof - struct 5.9011 ms/op 5.3061 ms/op 1.11
validate gossip signedAggregateAndProof - treeBacked 5.7736 ms/op 4.0418 ms/op 1.43
validate gossip attestation - struct 2.6591 ms/op 1.8708 ms/op 1.42
validate gossip attestation - treeBacked 2.6945 ms/op 1.9100 ms/op 1.41

by benchmarkbot/action

@dapplion dapplion merged commit 485ec69 into master Aug 10, 2021
@dapplion dapplion deleted the dapplion/perf-mainnet branch August 10, 2021 17:04
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.

None yet

2 participants