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

refactor: compute validator monitor log level only once #6010

Merged
merged 1 commit into from
Sep 30, 2023

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Sep 29, 2023

Motivation

Minor optimization but might be worth it as validator monitor logs are done quite frequently if there are a lot of attached validators.

Description

Move log level computation outside of log function, there's no need to run this on every log call as the value never changes.

@nflaig nflaig requested a review from a team as a code owner September 29, 2023 15:01
@github-actions
Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 5441b35 Previous: 9cd65cc Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 521.75 us/op 495.22 us/op 1.05
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 84.118 us/op 78.816 us/op 1.07
BLS verify - blst-native 1.3589 ms/op 1.3569 ms/op 1.00
BLS verifyMultipleSignatures 3 - blst-native 2.8583 ms/op 2.8361 ms/op 1.01
BLS verifyMultipleSignatures 8 - blst-native 6.2316 ms/op 6.2244 ms/op 1.00
BLS verifyMultipleSignatures 32 - blst-native 23.379 ms/op 22.677 ms/op 1.03
BLS verifyMultipleSignatures 64 - blst-native 44.891 ms/op 44.893 ms/op 1.00
BLS verifyMultipleSignatures 128 - blst-native 92.211 ms/op 89.447 ms/op 1.03
BLS deserializing 10000 signatures 919.98 ms/op 919.65 ms/op 1.00
BLS deserializing 100000 signatures 9.5234 s/op 9.2274 s/op 1.03
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.4656 ms/op 1.3928 ms/op 1.05
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.6288 ms/op 1.5662 ms/op 1.04
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.5106 ms/op 2.5912 ms/op 0.97
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.7127 ms/op 3.9789 ms/op 0.93
BLS verifyMultipleSignatures - same message - 128 - blst-native 6.0513 ms/op 5.7253 ms/op 1.06
BLS aggregatePubkeys 32 - blst-native 27.371 us/op 26.151 us/op 1.05
BLS aggregatePubkeys 128 - blst-native 109.32 us/op 102.68 us/op 1.06
getAttestationsForBlock 81.672 ms/op 39.841 ms/op 2.05
isKnown best case - 1 super set check 608.00 ns/op 297.00 ns/op 2.05
isKnown normal case - 2 super set checks 740.00 ns/op 286.00 ns/op 2.59
isKnown worse case - 16 super set checks 731.00 ns/op 282.00 ns/op 2.59
CheckpointStateCache - add get delete 8.9840 us/op 5.2000 us/op 1.73
validate api signedAggregateAndProof - struct 3.2281 ms/op 2.8743 ms/op 1.12
validate gossip signedAggregateAndProof - struct 3.3829 ms/op 2.8781 ms/op 1.18
validate gossip attestation - vc 640000 1.5483 ms/op 1.4212 ms/op 1.09
batch validate gossip attestation - vc 640000 - chunk 32 208.49 us/op 175.30 us/op 1.19
batch validate gossip attestation - vc 640000 - chunk 64 179.79 us/op 153.49 us/op 1.17
batch validate gossip attestation - vc 640000 - chunk 128 170.08 us/op 142.82 us/op 1.19
batch validate gossip attestation - vc 640000 - chunk 256 161.34 us/op 136.63 us/op 1.18
pickEth1Vote - no votes 1.4342 ms/op 1.3638 ms/op 1.05
pickEth1Vote - max votes 14.130 ms/op 12.618 ms/op 1.12
pickEth1Vote - Eth1Data hashTreeRoot value x2048 21.040 ms/op 19.099 ms/op 1.10
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 36.287 ms/op 27.088 ms/op 1.34
pickEth1Vote - Eth1Data fastSerialize value x2048 697.86 us/op 677.79 us/op 1.03
pickEth1Vote - Eth1Data fastSerialize tree x2048 5.4426 ms/op 6.9498 ms/op 0.78
bytes32 toHexString 644.00 ns/op 511.00 ns/op 1.26
bytes32 Buffer.toString(hex) 330.00 ns/op 333.00 ns/op 0.99
bytes32 Buffer.toString(hex) from Uint8Array 511.00 ns/op 485.00 ns/op 1.05
bytes32 Buffer.toString(hex) + 0x 354.00 ns/op 323.00 ns/op 1.10
Object access 1 prop 0.20600 ns/op 0.16900 ns/op 1.22
Map access 1 prop 0.17900 ns/op 0.16800 ns/op 1.07
Object get x1000 8.5670 ns/op 8.1530 ns/op 1.05
Map get x1000 0.71000 ns/op 0.55600 ns/op 1.28
Object set x1000 60.245 ns/op 51.859 ns/op 1.16
Map set x1000 46.430 ns/op 41.517 ns/op 1.12
Return object 10000 times 0.25160 ns/op 0.26020 ns/op 0.97
Throw Error 10000 times 4.4164 us/op 4.2821 us/op 1.03
fastMsgIdFn sha256 / 200 bytes 3.5290 us/op 3.6120 us/op 0.98
fastMsgIdFn h32 xxhash / 200 bytes 339.00 ns/op 315.00 ns/op 1.08
fastMsgIdFn h64 xxhash / 200 bytes 410.00 ns/op 376.00 ns/op 1.09
fastMsgIdFn sha256 / 1000 bytes 12.560 us/op 12.060 us/op 1.04
fastMsgIdFn h32 xxhash / 1000 bytes 476.00 ns/op 457.00 ns/op 1.04
fastMsgIdFn h64 xxhash / 1000 bytes 485.00 ns/op 467.00 ns/op 1.04
fastMsgIdFn sha256 / 10000 bytes 116.53 us/op 111.00 us/op 1.05
fastMsgIdFn h32 xxhash / 10000 bytes 2.1750 us/op 2.0800 us/op 1.05
fastMsgIdFn h64 xxhash / 10000 bytes 1.4380 us/op 1.4770 us/op 0.97
send data - 1000 256B messages 24.578 ms/op 20.903 ms/op 1.18
send data - 1000 512B messages 29.982 ms/op 29.622 ms/op 1.01
send data - 1000 1024B messages 43.866 ms/op 45.581 ms/op 0.96
send data - 1000 1200B messages 34.701 ms/op 30.346 ms/op 1.14
send data - 1000 2048B messages 39.051 ms/op 28.092 ms/op 1.39
send data - 1000 4096B messages 40.513 ms/op 34.586 ms/op 1.17
send data - 1000 16384B messages 94.194 ms/op 82.592 ms/op 1.14
send data - 1000 65536B messages 341.42 ms/op 285.82 ms/op 1.19
enrSubnets - fastDeserialize 64 bits 1.5750 us/op 1.4310 us/op 1.10
enrSubnets - ssz BitVector 64 bits 561.00 ns/op 535.00 ns/op 1.05
enrSubnets - fastDeserialize 4 bits 239.00 ns/op 215.00 ns/op 1.11
enrSubnets - ssz BitVector 4 bits 619.00 ns/op 514.00 ns/op 1.20
prioritizePeers score -10:0 att 32-0.1 sync 2-0 127.28 us/op 112.83 us/op 1.13
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 168.24 us/op 156.00 us/op 1.08
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 201.22 us/op 192.24 us/op 1.05
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 365.06 us/op 320.90 us/op 1.14
prioritizePeers score 0:0 att 64-1 sync 4-1 403.48 us/op 361.81 us/op 1.12
array of 16000 items push then shift 1.8596 us/op 1.7834 us/op 1.04
LinkedList of 16000 items push then shift 11.324 ns/op 9.4590 ns/op 1.20
array of 16000 items push then pop 117.41 ns/op 98.528 ns/op 1.19
LinkedList of 16000 items push then pop 11.262 ns/op 9.4310 ns/op 1.19
array of 24000 items push then shift 3.1427 us/op 2.5729 us/op 1.22
LinkedList of 24000 items push then shift 14.683 ns/op 9.5280 ns/op 1.54
array of 24000 items push then pop 192.62 ns/op 134.60 ns/op 1.43
LinkedList of 24000 items push then pop 10.564 ns/op 9.5450 ns/op 1.11
intersect bitArray bitLen 8 7.7600 ns/op 7.4420 ns/op 1.04
intersect array and set length 8 82.375 ns/op 58.213 ns/op 1.42
intersect bitArray bitLen 128 35.974 ns/op 34.740 ns/op 1.04
intersect array and set length 128 1.0264 us/op 811.38 ns/op 1.26
bitArray.getTrueBitIndexes() bitLen 128 2.2260 us/op 1.6290 us/op 1.37
bitArray.getTrueBitIndexes() bitLen 248 3.4310 us/op 2.7280 us/op 1.26
bitArray.getTrueBitIndexes() bitLen 512 6.1160 us/op 5.2270 us/op 1.17
Buffer.concat 32 items 1.0430 us/op 977.00 ns/op 1.07
Uint8Array.set 32 items 2.2190 us/op 1.7490 us/op 1.27
Set add up to 64 items then delete first 4.9814 us/op 4.7179 us/op 1.06
OrderedSet add up to 64 items then delete first 6.5702 us/op 5.8719 us/op 1.12
Set add up to 64 items then delete last 5.1930 us/op 4.9654 us/op 1.05
OrderedSet add up to 64 items then delete last 6.0568 us/op 5.9686 us/op 1.01
Set add up to 64 items then delete middle 5.2032 us/op 4.8185 us/op 1.08
OrderedSet add up to 64 items then delete middle 7.9898 us/op 7.4027 us/op 1.08
Set add up to 128 items then delete first 10.624 us/op 10.332 us/op 1.03
OrderedSet add up to 128 items then delete first 14.009 us/op 13.451 us/op 1.04
Set add up to 128 items then delete last 10.470 us/op 9.9037 us/op 1.06
OrderedSet add up to 128 items then delete last 13.529 us/op 13.035 us/op 1.04
Set add up to 128 items then delete middle 9.8274 us/op 10.280 us/op 0.96
OrderedSet add up to 128 items then delete middle 20.811 us/op 19.191 us/op 1.08
Set add up to 256 items then delete first 21.188 us/op 21.508 us/op 0.99
OrderedSet add up to 256 items then delete first 28.453 us/op 28.632 us/op 0.99
Set add up to 256 items then delete last 21.201 us/op 20.648 us/op 1.03
OrderedSet add up to 256 items then delete last 27.003 us/op 26.657 us/op 1.01
Set add up to 256 items then delete middle 21.134 us/op 20.327 us/op 1.04
OrderedSet add up to 256 items then delete middle 53.405 us/op 50.246 us/op 1.06
transfer serialized Status (84 B) 1.9030 us/op 2.0080 us/op 0.95
copy serialized Status (84 B) 1.6040 us/op 1.7770 us/op 0.90
transfer serialized SignedVoluntaryExit (112 B) 2.0400 us/op 2.2010 us/op 0.93
copy serialized SignedVoluntaryExit (112 B) 1.6550 us/op 1.8880 us/op 0.88
transfer serialized ProposerSlashing (416 B) 2.1980 us/op 2.5360 us/op 0.87
copy serialized ProposerSlashing (416 B) 2.1100 us/op 3.3190 us/op 0.64
transfer serialized Attestation (485 B) 2.3380 us/op 3.5220 us/op 0.66
copy serialized Attestation (485 B) 2.3320 us/op 3.2950 us/op 0.71
transfer serialized AttesterSlashing (33232 B) 2.4310 us/op 3.3170 us/op 0.73
copy serialized AttesterSlashing (33232 B) 7.0850 us/op 7.0660 us/op 1.00
transfer serialized Small SignedBeaconBlock (128000 B) 3.6160 us/op 3.5530 us/op 1.02
copy serialized Small SignedBeaconBlock (128000 B) 20.876 us/op 15.559 us/op 1.34
transfer serialized Avg SignedBeaconBlock (200000 B) 3.9830 us/op 3.6440 us/op 1.09
copy serialized Avg SignedBeaconBlock (200000 B) 25.904 us/op 18.510 us/op 1.40
transfer serialized BlobsSidecar (524380 B) 3.8110 us/op 3.6430 us/op 1.05
copy serialized BlobsSidecar (524380 B) 89.022 us/op 106.94 us/op 0.83
transfer serialized Big SignedBeaconBlock (1000000 B) 4.0020 us/op 3.8600 us/op 1.04
copy serialized Big SignedBeaconBlock (1000000 B) 194.45 us/op 169.34 us/op 1.15
pass gossip attestations to forkchoice per slot 4.2145 ms/op 4.0359 ms/op 1.04
forkChoice updateHead vc 100000 bc 64 eq 0 739.70 us/op 718.27 us/op 1.03
forkChoice updateHead vc 600000 bc 64 eq 0 6.4296 ms/op 4.6425 ms/op 1.38
forkChoice updateHead vc 1000000 bc 64 eq 0 8.2829 ms/op 7.9869 ms/op 1.04
forkChoice updateHead vc 600000 bc 320 eq 0 4.7245 ms/op 4.8189 ms/op 0.98
forkChoice updateHead vc 600000 bc 1200 eq 0 4.7403 ms/op 4.7609 ms/op 1.00
forkChoice updateHead vc 600000 bc 7200 eq 0 5.6854 ms/op 5.7311 ms/op 0.99
forkChoice updateHead vc 600000 bc 64 eq 1000 11.874 ms/op 12.690 ms/op 0.94
forkChoice updateHead vc 600000 bc 64 eq 10000 13.407 ms/op 13.773 ms/op 0.97
forkChoice updateHead vc 600000 bc 64 eq 300000 20.500 ms/op 20.355 ms/op 1.01
computeDeltas 500000 validators 300 proto nodes 7.0220 ms/op 6.9728 ms/op 1.01
computeDeltas 500000 validators 1200 proto nodes 6.9886 ms/op 6.8002 ms/op 1.03
computeDeltas 500000 validators 7200 proto nodes 7.0220 ms/op 6.7534 ms/op 1.04
computeDeltas 750000 validators 300 proto nodes 10.541 ms/op 10.473 ms/op 1.01
computeDeltas 750000 validators 1200 proto nodes 10.654 ms/op 10.300 ms/op 1.03
computeDeltas 750000 validators 7200 proto nodes 10.657 ms/op 10.127 ms/op 1.05
computeDeltas 1400000 validators 300 proto nodes 19.244 ms/op 19.851 ms/op 0.97
computeDeltas 1400000 validators 1200 proto nodes 19.803 ms/op 19.739 ms/op 1.00
computeDeltas 1400000 validators 7200 proto nodes 20.499 ms/op 19.319 ms/op 1.06
computeDeltas 2100000 validators 300 proto nodes 29.570 ms/op 29.367 ms/op 1.01
computeDeltas 2100000 validators 1200 proto nodes 32.658 ms/op 27.760 ms/op 1.18
computeDeltas 2100000 validators 7200 proto nodes 31.417 ms/op 28.390 ms/op 1.11
computeProposerBoostScoreFromBalances 500000 validators 3.6754 ms/op 3.5496 ms/op 1.04
computeProposerBoostScoreFromBalances 750000 validators 3.3737 ms/op 3.5785 ms/op 0.94
computeProposerBoostScoreFromBalances 1400000 validators 3.4742 ms/op 3.5829 ms/op 0.97
computeProposerBoostScoreFromBalances 2100000 validators 3.4823 ms/op 3.7481 ms/op 0.93
altair processAttestation - 250000 vs - 7PWei normalcase 3.2456 ms/op 3.2369 ms/op 1.00
altair processAttestation - 250000 vs - 7PWei worstcase 4.0816 ms/op 4.1296 ms/op 0.99
altair processAttestation - setStatus - 1/6 committees join 206.01 us/op 207.37 us/op 0.99
altair processAttestation - setStatus - 1/3 committees join 347.11 us/op 380.94 us/op 0.91
altair processAttestation - setStatus - 1/2 committees join 477.69 us/op 535.36 us/op 0.89
altair processAttestation - setStatus - 2/3 committees join 641.01 us/op 648.52 us/op 0.99
altair processAttestation - setStatus - 4/5 committees join 831.47 us/op 863.67 us/op 0.96
altair processAttestation - setStatus - 100% committees join 944.58 us/op 991.71 us/op 0.95
altair processBlock - 250000 vs - 7PWei normalcase 8.3473 ms/op 8.0919 ms/op 1.03
altair processBlock - 250000 vs - 7PWei normalcase hashState 29.802 ms/op 33.254 ms/op 0.90
altair processBlock - 250000 vs - 7PWei worstcase 43.525 ms/op 40.476 ms/op 1.08
altair processBlock - 250000 vs - 7PWei worstcase hashState 91.567 ms/op 95.199 ms/op 0.96
phase0 processBlock - 250000 vs - 7PWei normalcase 2.3663 ms/op 3.0086 ms/op 0.79
phase0 processBlock - 250000 vs - 7PWei worstcase 33.573 ms/op 37.157 ms/op 0.90
altair processEth1Data - 250000 vs - 7PWei normalcase 590.43 us/op 645.17 us/op 0.92
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 11.813 us/op 22.922 us/op 0.52
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 78.829 us/op 76.848 us/op 1.03
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 20.330 us/op 31.131 us/op 0.65
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 13.214 us/op 17.947 us/op 0.74
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 202.67 us/op 217.99 us/op 0.93
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.1527 ms/op 1.5551 ms/op 0.74
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.5824 ms/op 2.3470 ms/op 0.67
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.4685 ms/op 2.1253 ms/op 0.69
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.3872 ms/op 4.1557 ms/op 0.82
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.5393 ms/op 3.2391 ms/op 0.78
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.9087 ms/op 7.0427 ms/op 0.70
Tree 40 250000 create 332.06 ms/op 391.38 ms/op 0.85
Tree 40 250000 get(125000) 205.61 ns/op 240.52 ns/op 0.85
Tree 40 250000 set(125000) 974.32 ns/op 1.1261 us/op 0.87
Tree 40 250000 toArray() 21.778 ms/op 23.501 ms/op 0.93
Tree 40 250000 iterate all - toArray() + loop 22.891 ms/op 23.834 ms/op 0.96
Tree 40 250000 iterate all - get(i) 75.360 ms/op 85.805 ms/op 0.88
MutableVector 250000 create 12.663 ms/op 18.460 ms/op 0.69
MutableVector 250000 get(125000) 6.6330 ns/op 7.7130 ns/op 0.86
MutableVector 250000 set(125000) 245.46 ns/op 530.05 ns/op 0.46
MutableVector 250000 toArray() 3.6356 ms/op 4.1965 ms/op 0.87
MutableVector 250000 iterate all - toArray() + loop 3.3646 ms/op 4.1544 ms/op 0.81
MutableVector 250000 iterate all - get(i) 1.5758 ms/op 1.8102 ms/op 0.87
Array 250000 create 2.7560 ms/op 3.8459 ms/op 0.72
Array 250000 clone - spread 1.0208 ms/op 1.2929 ms/op 0.79
Array 250000 get(125000) 0.51900 ns/op 0.71800 ns/op 0.72
Array 250000 set(125000) 0.59400 ns/op 1.0780 ns/op 0.55
Array 250000 iterate all - loop 84.168 us/op 104.27 us/op 0.81
effectiveBalanceIncrements clone Uint8Array 300000 23.206 us/op 52.875 us/op 0.44
effectiveBalanceIncrements clone MutableVector 300000 276.00 ns/op 427.00 ns/op 0.65
effectiveBalanceIncrements rw all Uint8Array 300000 180.87 us/op 212.76 us/op 0.85
effectiveBalanceIncrements rw all MutableVector 300000 80.910 ms/op 137.11 ms/op 0.59
phase0 afterProcessEpoch - 250000 vs - 7PWei 118.19 ms/op 130.72 ms/op 0.90
phase0 beforeProcessEpoch - 250000 vs - 7PWei 40.750 ms/op 42.785 ms/op 0.95
altair processEpoch - mainnet_e81889 466.27 ms/op 588.41 ms/op 0.79
mainnet_e81889 - altair beforeProcessEpoch 61.754 ms/op 77.743 ms/op 0.79
mainnet_e81889 - altair processJustificationAndFinalization 14.730 us/op 20.555 us/op 0.72
mainnet_e81889 - altair processInactivityUpdates 6.7348 ms/op 10.023 ms/op 0.67
mainnet_e81889 - altair processRewardsAndPenalties 60.689 ms/op 78.901 ms/op 0.77
mainnet_e81889 - altair processRegistryUpdates 2.5980 us/op 6.0120 us/op 0.43
mainnet_e81889 - altair processSlashings 476.00 ns/op 795.00 ns/op 0.60
mainnet_e81889 - altair processEth1DataReset 557.00 ns/op 912.00 ns/op 0.61
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.2607 ms/op 1.8087 ms/op 0.70
mainnet_e81889 - altair processSlashingsReset 3.0560 us/op 7.4340 us/op 0.41
mainnet_e81889 - altair processRandaoMixesReset 4.9620 us/op 10.723 us/op 0.46
mainnet_e81889 - altair processHistoricalRootsUpdate 934.00 ns/op 1.7750 us/op 0.53
mainnet_e81889 - altair processParticipationFlagUpdates 2.0130 us/op 4.5420 us/op 0.44
mainnet_e81889 - altair processSyncCommitteeUpdates 624.00 ns/op 1.4090 us/op 0.44
mainnet_e81889 - altair afterProcessEpoch 126.62 ms/op 152.90 ms/op 0.83
capella processEpoch - mainnet_e217614 1.4908 s/op 1.8828 s/op 0.79
mainnet_e217614 - capella beforeProcessEpoch 241.74 ms/op 315.52 ms/op 0.77
mainnet_e217614 - capella processJustificationAndFinalization 13.369 us/op 22.859 us/op 0.58
mainnet_e217614 - capella processInactivityUpdates 21.000 ms/op 25.106 ms/op 0.84
mainnet_e217614 - capella processRewardsAndPenalties 253.26 ms/op 318.43 ms/op 0.80
mainnet_e217614 - capella processRegistryUpdates 20.211 us/op 30.790 us/op 0.66
mainnet_e217614 - capella processSlashings 467.00 ns/op 819.00 ns/op 0.57
mainnet_e217614 - capella processEth1DataReset 420.00 ns/op 523.00 ns/op 0.80
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.2607 ms/op 5.0473 ms/op 0.84
mainnet_e217614 - capella processSlashingsReset 2.4500 us/op 4.4760 us/op 0.55
mainnet_e217614 - capella processRandaoMixesReset 4.9340 us/op 5.6360 us/op 0.88
mainnet_e217614 - capella processHistoricalRootsUpdate 734.00 ns/op 1.0560 us/op 0.70
mainnet_e217614 - capella processParticipationFlagUpdates 1.5070 us/op 3.8350 us/op 0.39
mainnet_e217614 - capella afterProcessEpoch 302.04 ms/op 330.15 ms/op 0.91
phase0 processEpoch - mainnet_e58758 418.60 ms/op 567.36 ms/op 0.74
mainnet_e58758 - phase0 beforeProcessEpoch 98.846 ms/op 154.99 ms/op 0.64
mainnet_e58758 - phase0 processJustificationAndFinalization 18.878 us/op 19.037 us/op 0.99
mainnet_e58758 - phase0 processRewardsAndPenalties 50.334 ms/op 52.476 ms/op 0.96
mainnet_e58758 - phase0 processRegistryUpdates 9.5850 us/op 16.220 us/op 0.59
mainnet_e58758 - phase0 processSlashings 551.00 ns/op 972.00 ns/op 0.57
mainnet_e58758 - phase0 processEth1DataReset 514.00 ns/op 661.00 ns/op 0.78
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.0018 ms/op 1.4317 ms/op 0.70
mainnet_e58758 - phase0 processSlashingsReset 2.1900 us/op 4.6150 us/op 0.47
mainnet_e58758 - phase0 processRandaoMixesReset 3.7760 us/op 6.7380 us/op 0.56
mainnet_e58758 - phase0 processHistoricalRootsUpdate 1.4390 us/op 642.00 ns/op 2.24
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.2590 us/op 4.7890 us/op 0.89
mainnet_e58758 - phase0 afterProcessEpoch 102.72 ms/op 112.54 ms/op 0.91
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.3023 ms/op 1.3196 ms/op 0.99
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.9410 ms/op 2.4793 ms/op 0.78
altair processInactivityUpdates - 250000 normalcase 16.845 ms/op 23.065 ms/op 0.73
altair processInactivityUpdates - 250000 worstcase 17.172 ms/op 23.868 ms/op 0.72
phase0 processRegistryUpdates - 250000 normalcase 10.065 us/op 15.580 us/op 0.65
phase0 processRegistryUpdates - 250000 badcase_full_deposits 431.56 us/op 502.98 us/op 0.86
phase0 processRegistryUpdates - 250000 worstcase 0.5 137.82 ms/op 155.21 ms/op 0.89
altair processRewardsAndPenalties - 250000 normalcase 57.392 ms/op 60.286 ms/op 0.95
altair processRewardsAndPenalties - 250000 worstcase 54.167 ms/op 57.869 ms/op 0.94
phase0 getAttestationDeltas - 250000 normalcase 8.7642 ms/op 10.351 ms/op 0.85
phase0 getAttestationDeltas - 250000 worstcase 8.6055 ms/op 9.7875 ms/op 0.88
phase0 processSlashings - 250000 worstcase 2.4563 ms/op 2.6788 ms/op 0.92
altair processSyncCommitteeUpdates - 250000 153.21 ms/op 170.54 ms/op 0.90
BeaconState.hashTreeRoot - No change 351.00 ns/op 532.00 ns/op 0.66
BeaconState.hashTreeRoot - 1 full validator 128.57 us/op 174.56 us/op 0.74
BeaconState.hashTreeRoot - 32 full validator 1.2736 ms/op 1.4982 ms/op 0.85
BeaconState.hashTreeRoot - 512 full validator 13.371 ms/op 17.864 ms/op 0.75
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 148.22 us/op 194.41 us/op 0.76
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.0502 ms/op 2.7642 ms/op 0.74
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 24.617 ms/op 28.899 ms/op 0.85
BeaconState.hashTreeRoot - 1 balances 119.65 us/op 148.50 us/op 0.81
BeaconState.hashTreeRoot - 32 balances 1.0894 ms/op 1.3761 ms/op 0.79
BeaconState.hashTreeRoot - 512 balances 10.045 ms/op 11.926 ms/op 0.84
BeaconState.hashTreeRoot - 250000 balances 204.93 ms/op 184.14 ms/op 1.11
aggregationBits - 2048 els - zipIndexesInBitList 16.925 us/op 16.425 us/op 1.03
regular array get 100000 times 45.009 us/op 47.112 us/op 0.96
wrappedArray get 100000 times 34.170 us/op 45.768 us/op 0.75
arrayWithProxy get 100000 times 16.675 ms/op 15.363 ms/op 1.09
ssz.Root.equals 266.00 ns/op 232.00 ns/op 1.15
byteArrayEquals 259.00 ns/op 234.00 ns/op 1.11
shuffle list - 16384 els 7.3079 ms/op 7.4292 ms/op 0.98
shuffle list - 250000 els 111.70 ms/op 110.19 ms/op 1.01
processSlot - 1 slots 19.197 us/op 17.663 us/op 1.09
processSlot - 32 slots 3.8656 ms/op 3.3785 ms/op 1.14
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 52.098 ms/op 50.288 ms/op 1.04
getCommitteeAssignments - req 1 vs - 250000 vc 2.6991 ms/op 2.6441 ms/op 1.02
getCommitteeAssignments - req 100 vs - 250000 vc 3.9797 ms/op 3.9373 ms/op 1.01
getCommitteeAssignments - req 1000 vs - 250000 vc 4.3257 ms/op 4.3006 ms/op 1.01
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 7.2100 ns/op 5.6500 ns/op 1.28
state getBlockRootAtSlot - 250000 vs - 7PWei 799.54 ns/op 986.90 ns/op 0.81
computeProposers - vc 250000 11.255 ms/op 10.373 ms/op 1.09
computeEpochShuffling - vc 250000 133.26 ms/op 112.06 ms/op 1.19
getNextSyncCommittee - vc 250000 188.68 ms/op 156.54 ms/op 1.21
computeSigningRoot for AttestationData 34.397 us/op 26.896 us/op 1.28
hash AttestationData serialized data then Buffer.toString(base64) 2.5811 us/op 2.6036 us/op 0.99
toHexString serialized data 1.2981 us/op 1.3373 us/op 0.97
Buffer.toString(base64) 308.20 ns/op 261.25 ns/op 1.18

by benchmarkbot/action

@wemeetagain wemeetagain merged commit b46dfcb into unstable Sep 30, 2023
15 checks passed
@wemeetagain wemeetagain deleted the nflaig/compute-vmon-log-level-once branch September 30, 2023 12:28
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.12.0 🎉

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