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

chore: fix block production step time panels #6271

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Jan 9, 2024

Motivation

As discussed on discord, the panels added in #6145 are not correct as _sum and _count suffixes are missing in the expressions. The dashboard was also not updated according to Contributing to Grafana dashboards which causes a diff locally when running node scripts/download_dashboards.mjs.

Description

Fix expressions in block production step time panels, add _sum and _count suffix to each metric name to properly calculate avg time per step.

A single expression per label is kept as it is desired to have the labels / graph in a specific order instead of alphabetical order.

image

Note: A lot of the diff in this PR is due to downloading the dashboard through the API via download script instead of manually applying changing as it was done in #6145.

@nflaig nflaig requested a review from a team as a code owner January 9, 2024 11:42
Copy link
Contributor

github-actions bot commented Jan 9, 2024

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 70f99fc Previous: 3927ffd Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.0294 ms/op 555.27 us/op 1.85
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 94.839 us/op 90.165 us/op 1.05
BLS verify - blst-native 1.3276 ms/op 1.3201 ms/op 1.01
BLS verifyMultipleSignatures 3 - blst-native 2.7798 ms/op 2.8556 ms/op 0.97
BLS verifyMultipleSignatures 8 - blst-native 6.1078 ms/op 6.1382 ms/op 1.00
BLS verifyMultipleSignatures 32 - blst-native 22.346 ms/op 22.759 ms/op 0.98
BLS verifyMultipleSignatures 64 - blst-native 44.341 ms/op 47.221 ms/op 0.94
BLS verifyMultipleSignatures 128 - blst-native 87.869 ms/op 94.284 ms/op 0.93
BLS deserializing 10000 signatures 956.73 ms/op 964.84 ms/op 0.99
BLS deserializing 100000 signatures 9.4262 s/op 9.1109 s/op 1.03
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.4123 ms/op 1.4072 ms/op 1.00
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.5747 ms/op 1.5366 ms/op 1.02
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.4285 ms/op 2.3670 ms/op 1.03
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.6107 ms/op 3.4759 ms/op 1.04
BLS verifyMultipleSignatures - same message - 128 - blst-native 5.8705 ms/op 5.7139 ms/op 1.03
BLS aggregatePubkeys 32 - blst-native 30.495 us/op 26.310 us/op 1.16
BLS aggregatePubkeys 128 - blst-native 104.39 us/op 103.14 us/op 1.01
getAttestationsForBlock 65.102 ms/op 46.722 ms/op 1.39
getSlashingsAndExits - default max 187.88 us/op 179.36 us/op 1.05
getSlashingsAndExits - 2k 583.39 us/op 474.09 us/op 1.23
proposeBlockBody type=full, size=empty 6.5791 ms/op 8.2614 ms/op 0.80
isKnown best case - 1 super set check 533.00 ns/op 416.00 ns/op 1.28
isKnown normal case - 2 super set checks 454.00 ns/op 502.00 ns/op 0.90
isKnown worse case - 16 super set checks 424.00 ns/op 645.00 ns/op 0.66
CheckpointStateCache - add get delete 8.2820 us/op 6.4160 us/op 1.29
validate api signedAggregateAndProof - struct 3.0961 ms/op 2.9512 ms/op 1.05
validate gossip signedAggregateAndProof - struct 2.9358 ms/op 3.0648 ms/op 0.96
validate gossip attestation - vc 640000 1.4057 ms/op 1.4726 ms/op 0.95
batch validate gossip attestation - vc 640000 - chunk 32 181.57 us/op 181.92 us/op 1.00
batch validate gossip attestation - vc 640000 - chunk 64 170.95 us/op 157.26 us/op 1.09
batch validate gossip attestation - vc 640000 - chunk 128 170.85 us/op 141.50 us/op 1.21
batch validate gossip attestation - vc 640000 - chunk 256 157.64 us/op 132.11 us/op 1.19
pickEth1Vote - no votes 1.4552 ms/op 1.2969 ms/op 1.12
pickEth1Vote - max votes 15.297 ms/op 10.325 ms/op 1.48
pickEth1Vote - Eth1Data hashTreeRoot value x2048 24.896 ms/op 20.538 ms/op 1.21
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 39.478 ms/op 31.718 ms/op 1.24
pickEth1Vote - Eth1Data fastSerialize value x2048 787.69 us/op 723.19 us/op 1.09
pickEth1Vote - Eth1Data fastSerialize tree x2048 6.1806 ms/op 5.1554 ms/op 1.20
bytes32 toHexString 862.00 ns/op 555.00 ns/op 1.55
bytes32 Buffer.toString(hex) 297.00 ns/op 312.00 ns/op 0.95
bytes32 Buffer.toString(hex) from Uint8Array 617.00 ns/op 422.00 ns/op 1.46
bytes32 Buffer.toString(hex) + 0x 316.00 ns/op 311.00 ns/op 1.02
Object access 1 prop 0.25600 ns/op 0.17100 ns/op 1.50
Map access 1 prop 0.16000 ns/op 0.15400 ns/op 1.04
Object get x1000 7.9130 ns/op 8.0190 ns/op 0.99
Map get x1000 0.97300 ns/op 0.84300 ns/op 1.15
Object set x1000 89.738 ns/op 57.899 ns/op 1.55
Map set x1000 61.377 ns/op 44.051 ns/op 1.39
Return object 10000 times 0.27970 ns/op 0.25510 ns/op 1.10
Throw Error 10000 times 4.3130 us/op 4.0054 us/op 1.08
fastMsgIdFn sha256 / 200 bytes 3.6390 us/op 3.4910 us/op 1.04
fastMsgIdFn h32 xxhash / 200 bytes 399.00 ns/op 300.00 ns/op 1.33
fastMsgIdFn h64 xxhash / 200 bytes 425.00 ns/op 351.00 ns/op 1.21
fastMsgIdFn sha256 / 1000 bytes 12.453 us/op 12.015 us/op 1.04
fastMsgIdFn h32 xxhash / 1000 bytes 548.00 ns/op 488.00 ns/op 1.12
fastMsgIdFn h64 xxhash / 1000 bytes 507.00 ns/op 475.00 ns/op 1.07
fastMsgIdFn sha256 / 10000 bytes 109.73 us/op 111.19 us/op 0.99
fastMsgIdFn h32 xxhash / 10000 bytes 2.1630 us/op 2.0840 us/op 1.04
fastMsgIdFn h64 xxhash / 10000 bytes 1.4920 us/op 1.4240 us/op 1.05
send data - 1000 256B messages 27.871 ms/op 21.376 ms/op 1.30
send data - 1000 512B messages 36.413 ms/op 31.490 ms/op 1.16
send data - 1000 1024B messages 51.012 ms/op 45.345 ms/op 1.12
send data - 1000 1200B messages 49.106 ms/op 41.349 ms/op 1.19
send data - 1000 2048B messages 65.333 ms/op 50.692 ms/op 1.29
send data - 1000 4096B messages 81.920 ms/op 43.340 ms/op 1.89
send data - 1000 16384B messages 198.89 ms/op 121.15 ms/op 1.64
send data - 1000 65536B messages 646.82 ms/op 567.38 ms/op 1.14
enrSubnets - fastDeserialize 64 bits 2.2620 us/op 1.9750 us/op 1.15
enrSubnets - ssz BitVector 64 bits 631.00 ns/op 598.00 ns/op 1.06
enrSubnets - fastDeserialize 4 bits 291.00 ns/op 256.00 ns/op 1.14
enrSubnets - ssz BitVector 4 bits 792.00 ns/op 695.00 ns/op 1.14
prioritizePeers score -10:0 att 32-0.1 sync 2-0 142.20 us/op 141.50 us/op 1.00
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 192.95 us/op 174.82 us/op 1.10
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 244.04 us/op 204.23 us/op 1.19
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 447.44 us/op 432.63 us/op 1.03
prioritizePeers score 0:0 att 64-1 sync 4-1 503.92 us/op 436.40 us/op 1.15
array of 16000 items push then shift 1.7690 us/op 1.7901 us/op 0.99
LinkedList of 16000 items push then shift 12.612 ns/op 10.260 ns/op 1.23
array of 16000 items push then pop 178.68 ns/op 114.17 ns/op 1.57
LinkedList of 16000 items push then pop 11.593 ns/op 10.688 ns/op 1.08
array of 24000 items push then shift 2.9225 us/op 3.1103 us/op 0.94
LinkedList of 24000 items push then shift 12.671 ns/op 10.902 ns/op 1.16
array of 24000 items push then pop 265.66 ns/op 183.10 ns/op 1.45
LinkedList of 24000 items push then pop 11.817 ns/op 10.211 ns/op 1.16
intersect bitArray bitLen 8 6.9770 ns/op 7.2670 ns/op 0.96
intersect array and set length 8 97.158 ns/op 80.814 ns/op 1.20
intersect bitArray bitLen 128 35.779 ns/op 39.396 ns/op 0.91
intersect array and set length 128 1.2969 us/op 1.1867 us/op 1.09
bitArray.getTrueBitIndexes() bitLen 128 2.4340 us/op 2.0030 us/op 1.22
bitArray.getTrueBitIndexes() bitLen 248 3.8440 us/op 3.4680 us/op 1.11
bitArray.getTrueBitIndexes() bitLen 512 8.7530 us/op 6.9050 us/op 1.27
Buffer.concat 32 items 1.2250 us/op 1.1850 us/op 1.03
Uint8Array.set 32 items 2.5660 us/op 2.2880 us/op 1.12
Set add up to 64 items then delete first 6.0875 us/op 5.5770 us/op 1.09
OrderedSet add up to 64 items then delete first 8.0944 us/op 7.7212 us/op 1.05
Set add up to 64 items then delete last 6.1208 us/op 6.4551 us/op 0.95
OrderedSet add up to 64 items then delete last 8.6844 us/op 8.1024 us/op 1.07
Set add up to 64 items then delete middle 5.9288 us/op 6.2410 us/op 0.95
OrderedSet add up to 64 items then delete middle 10.031 us/op 9.3651 us/op 1.07
Set add up to 128 items then delete first 12.432 us/op 12.624 us/op 0.98
OrderedSet add up to 128 items then delete first 17.026 us/op 16.464 us/op 1.03
Set add up to 128 items then delete last 12.407 us/op 12.521 us/op 0.99
OrderedSet add up to 128 items then delete last 17.078 us/op 15.619 us/op 1.09
Set add up to 128 items then delete middle 12.496 us/op 12.597 us/op 0.99
OrderedSet add up to 128 items then delete middle 24.875 us/op 22.546 us/op 1.10
Set add up to 256 items then delete first 24.773 us/op 24.054 us/op 1.03
OrderedSet add up to 256 items then delete first 33.701 us/op 30.706 us/op 1.10
Set add up to 256 items then delete last 22.865 us/op 24.347 us/op 0.94
OrderedSet add up to 256 items then delete last 32.211 us/op 28.661 us/op 1.12
Set add up to 256 items then delete middle 22.863 us/op 24.929 us/op 0.92
OrderedSet add up to 256 items then delete middle 54.493 us/op 57.105 us/op 0.95
transfer serialized Status (84 B) 2.2120 us/op 2.1310 us/op 1.04
copy serialized Status (84 B) 1.8270 us/op 2.0130 us/op 0.91
transfer serialized SignedVoluntaryExit (112 B) 2.0960 us/op 2.4090 us/op 0.87
copy serialized SignedVoluntaryExit (112 B) 1.9660 us/op 2.0570 us/op 0.96
transfer serialized ProposerSlashing (416 B) 3.7400 us/op 3.5950 us/op 1.04
copy serialized ProposerSlashing (416 B) 3.3110 us/op 3.5850 us/op 0.92
transfer serialized Attestation (485 B) 3.1070 us/op 3.7110 us/op 0.84
copy serialized Attestation (485 B) 2.8030 us/op 3.7060 us/op 0.76
transfer serialized AttesterSlashing (33232 B) 3.3720 us/op 3.6820 us/op 0.92
copy serialized AttesterSlashing (33232 B) 10.196 us/op 10.128 us/op 1.01
transfer serialized Small SignedBeaconBlock (128000 B) 3.8180 us/op 4.0680 us/op 0.94
copy serialized Small SignedBeaconBlock (128000 B) 32.109 us/op 28.118 us/op 1.14
transfer serialized Avg SignedBeaconBlock (200000 B) 3.9320 us/op 5.0730 us/op 0.78
copy serialized Avg SignedBeaconBlock (200000 B) 44.132 us/op 33.050 us/op 1.34
transfer serialized BlobsSidecar (524380 B) 4.3390 us/op 4.6310 us/op 0.94
copy serialized BlobsSidecar (524380 B) 154.89 us/op 203.03 us/op 0.76
transfer serialized Big SignedBeaconBlock (1000000 B) 5.1940 us/op 4.8600 us/op 1.07
copy serialized Big SignedBeaconBlock (1000000 B) 288.88 us/op 221.78 us/op 1.30
pass gossip attestations to forkchoice per slot 5.5838 ms/op 5.3034 ms/op 1.05
forkChoice updateHead vc 100000 bc 64 eq 0 807.54 us/op 845.48 us/op 0.96
forkChoice updateHead vc 600000 bc 64 eq 0 5.4978 ms/op 5.9782 ms/op 0.92
forkChoice updateHead vc 1000000 bc 64 eq 0 9.0973 ms/op 10.241 ms/op 0.89
forkChoice updateHead vc 600000 bc 320 eq 0 4.7266 ms/op 5.4357 ms/op 0.87
forkChoice updateHead vc 600000 bc 1200 eq 0 5.6130 ms/op 5.8088 ms/op 0.97
forkChoice updateHead vc 600000 bc 7200 eq 0 6.1780 ms/op 7.6805 ms/op 0.80
forkChoice updateHead vc 600000 bc 64 eq 1000 11.863 ms/op 16.046 ms/op 0.74
forkChoice updateHead vc 600000 bc 64 eq 10000 13.114 ms/op 15.525 ms/op 0.84
forkChoice updateHead vc 600000 bc 64 eq 300000 33.840 ms/op 38.927 ms/op 0.87
computeDeltas 500000 validators 300 proto nodes 7.4169 ms/op 8.6666 ms/op 0.86
computeDeltas 500000 validators 1200 proto nodes 7.1908 ms/op 8.7024 ms/op 0.83
computeDeltas 500000 validators 7200 proto nodes 7.0255 ms/op 8.8783 ms/op 0.79
computeDeltas 750000 validators 300 proto nodes 10.783 ms/op 13.598 ms/op 0.79
computeDeltas 750000 validators 1200 proto nodes 10.480 ms/op 13.580 ms/op 0.77
computeDeltas 750000 validators 7200 proto nodes 9.8812 ms/op 12.681 ms/op 0.78
computeDeltas 1400000 validators 300 proto nodes 20.745 ms/op 22.562 ms/op 0.92
computeDeltas 1400000 validators 1200 proto nodes 19.681 ms/op 22.741 ms/op 0.87
computeDeltas 1400000 validators 7200 proto nodes 20.104 ms/op 23.622 ms/op 0.85
computeDeltas 2100000 validators 300 proto nodes 32.279 ms/op 35.738 ms/op 0.90
computeDeltas 2100000 validators 1200 proto nodes 31.511 ms/op 39.018 ms/op 0.81
computeDeltas 2100000 validators 7200 proto nodes 31.408 ms/op 36.381 ms/op 0.86
computeProposerBoostScoreFromBalances 500000 validators 4.9356 ms/op 4.7245 ms/op 1.04
computeProposerBoostScoreFromBalances 750000 validators 4.6181 ms/op 5.0653 ms/op 0.91
computeProposerBoostScoreFromBalances 1400000 validators 4.8671 ms/op 4.3825 ms/op 1.11
computeProposerBoostScoreFromBalances 2100000 validators 4.8195 ms/op 4.0667 ms/op 1.19
altair processAttestation - 250000 vs - 7PWei normalcase 3.4676 ms/op 2.4028 ms/op 1.44
altair processAttestation - 250000 vs - 7PWei worstcase 4.7430 ms/op 3.5223 ms/op 1.35
altair processAttestation - setStatus - 1/6 committees join 215.50 us/op 199.00 us/op 1.08
altair processAttestation - setStatus - 1/3 committees join 401.86 us/op 381.43 us/op 1.05
altair processAttestation - setStatus - 1/2 committees join 582.45 us/op 518.39 us/op 1.12
altair processAttestation - setStatus - 2/3 committees join 805.56 us/op 653.43 us/op 1.23
altair processAttestation - setStatus - 4/5 committees join 956.41 us/op 913.92 us/op 1.05
altair processAttestation - setStatus - 100% committees join 1.0609 ms/op 1.0537 ms/op 1.01
altair processBlock - 250000 vs - 7PWei normalcase 13.438 ms/op 12.107 ms/op 1.11
altair processBlock - 250000 vs - 7PWei normalcase hashState 53.394 ms/op 44.539 ms/op 1.20
altair processBlock - 250000 vs - 7PWei worstcase 46.553 ms/op 42.545 ms/op 1.09
altair processBlock - 250000 vs - 7PWei worstcase hashState 119.11 ms/op 106.82 ms/op 1.11
phase0 processBlock - 250000 vs - 7PWei normalcase 4.0854 ms/op 2.9428 ms/op 1.39
phase0 processBlock - 250000 vs - 7PWei worstcase 39.126 ms/op 35.668 ms/op 1.10
altair processEth1Data - 250000 vs - 7PWei normalcase 878.15 us/op 696.40 us/op 1.26
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 22.141 us/op 8.1200 us/op 2.73
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 88.936 us/op 45.553 us/op 1.95
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 23.196 us/op 19.196 us/op 1.21
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 23.283 us/op 14.166 us/op 1.64
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 212.72 us/op 222.66 us/op 0.96
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 2.0493 ms/op 1.3202 ms/op 1.55
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 2.5561 ms/op 1.7299 ms/op 1.48
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 2.6932 ms/op 1.9167 ms/op 1.41
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 5.2206 ms/op 4.8576 ms/op 1.07
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 3.3290 ms/op 2.9063 ms/op 1.15
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 8.4625 ms/op 6.0378 ms/op 1.40
Tree 40 250000 create 629.93 ms/op 472.00 ms/op 1.33
Tree 40 250000 get(125000) 244.58 ns/op 243.77 ns/op 1.00
Tree 40 250000 set(125000) 1.9970 us/op 1.4557 us/op 1.37
Tree 40 250000 toArray() 30.358 ms/op 28.303 ms/op 1.07
Tree 40 250000 iterate all - toArray() + loop 27.350 ms/op 27.624 ms/op 0.99
Tree 40 250000 iterate all - get(i) 84.925 ms/op 84.409 ms/op 1.01
MutableVector 250000 create 23.225 ms/op 18.179 ms/op 1.28
MutableVector 250000 get(125000) 7.6930 ns/op 7.6600 ns/op 1.00
MutableVector 250000 set(125000) 463.25 ns/op 391.64 ns/op 1.18
MutableVector 250000 toArray() 4.8327 ms/op 4.2849 ms/op 1.13
MutableVector 250000 iterate all - toArray() + loop 4.9824 ms/op 5.1301 ms/op 0.97
MutableVector 250000 iterate all - get(i) 1.6345 ms/op 1.8732 ms/op 0.87
Array 250000 create 4.4644 ms/op 4.6105 ms/op 0.97
Array 250000 clone - spread 1.6561 ms/op 1.6670 ms/op 0.99
Array 250000 get(125000) 1.6170 ns/op 1.6310 ns/op 0.99
Array 250000 set(125000) 5.6790 ns/op 5.2200 ns/op 1.09
Array 250000 iterate all - loop 183.80 us/op 243.80 us/op 0.75
effectiveBalanceIncrements clone Uint8Array 300000 66.306 us/op 72.659 us/op 0.91
effectiveBalanceIncrements clone MutableVector 300000 496.00 ns/op 1.5620 us/op 0.32
effectiveBalanceIncrements rw all Uint8Array 300000 218.87 us/op 264.97 us/op 0.83
effectiveBalanceIncrements rw all MutableVector 300000 178.12 ms/op 134.50 ms/op 1.32
phase0 afterProcessEpoch - 250000 vs - 7PWei 124.06 ms/op 142.27 ms/op 0.87
phase0 beforeProcessEpoch - 250000 vs - 7PWei 65.458 ms/op 63.767 ms/op 1.03
altair processEpoch - mainnet_e81889 575.65 ms/op 627.07 ms/op 0.92
mainnet_e81889 - altair beforeProcessEpoch 105.45 ms/op 99.209 ms/op 1.06
mainnet_e81889 - altair processJustificationAndFinalization 26.567 us/op 25.334 us/op 1.05
mainnet_e81889 - altair processInactivityUpdates 7.7882 ms/op 7.5775 ms/op 1.03
mainnet_e81889 - altair processRewardsAndPenalties 54.178 ms/op 75.553 ms/op 0.72
mainnet_e81889 - altair processRegistryUpdates 5.4730 us/op 5.8950 us/op 0.93
mainnet_e81889 - altair processSlashings 689.00 ns/op 1.2860 us/op 0.54
mainnet_e81889 - altair processEth1DataReset 729.00 ns/op 1.5940 us/op 0.46
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.4973 ms/op 2.1168 ms/op 0.71
mainnet_e81889 - altair processSlashingsReset 5.6390 us/op 8.8390 us/op 0.64
mainnet_e81889 - altair processRandaoMixesReset 9.7750 us/op 15.419 us/op 0.63
mainnet_e81889 - altair processHistoricalRootsUpdate 1.2920 us/op 1.7280 us/op 0.75
mainnet_e81889 - altair processParticipationFlagUpdates 3.2260 us/op 6.6760 us/op 0.48
mainnet_e81889 - altair processSyncCommitteeUpdates 974.00 ns/op 1.6860 us/op 0.58
mainnet_e81889 - altair afterProcessEpoch 127.73 ms/op 148.23 ms/op 0.86
capella processEpoch - mainnet_e217614 2.9689 s/op 2.9338 s/op 1.01
mainnet_e217614 - capella beforeProcessEpoch 680.50 ms/op 695.20 ms/op 0.98
mainnet_e217614 - capella processJustificationAndFinalization 21.769 us/op 28.117 us/op 0.77
mainnet_e217614 - capella processInactivityUpdates 20.035 ms/op 28.085 ms/op 0.71
mainnet_e217614 - capella processRewardsAndPenalties 485.14 ms/op 684.41 ms/op 0.71
mainnet_e217614 - capella processRegistryUpdates 33.426 us/op 46.170 us/op 0.72
mainnet_e217614 - capella processSlashings 818.00 ns/op 1.8310 us/op 0.45
mainnet_e217614 - capella processEth1DataReset 1.0450 us/op 1.2850 us/op 0.81
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.9914 ms/op 17.028 ms/op 0.29
mainnet_e217614 - capella processSlashingsReset 5.2070 us/op 9.2080 us/op 0.57
mainnet_e217614 - capella processRandaoMixesReset 10.204 us/op 19.141 us/op 0.53
mainnet_e217614 - capella processHistoricalRootsUpdate 691.00 ns/op 2.0630 us/op 0.33
mainnet_e217614 - capella processParticipationFlagUpdates 3.3720 us/op 4.8690 us/op 0.69
mainnet_e217614 - capella afterProcessEpoch 333.95 ms/op 496.02 ms/op 0.67
phase0 processEpoch - mainnet_e58758 670.61 ms/op 597.60 ms/op 1.12
mainnet_e58758 - phase0 beforeProcessEpoch 220.31 ms/op 227.45 ms/op 0.97
mainnet_e58758 - phase0 processJustificationAndFinalization 33.496 us/op 38.473 us/op 0.87
mainnet_e58758 - phase0 processRewardsAndPenalties 54.536 ms/op 79.532 ms/op 0.69
mainnet_e58758 - phase0 processRegistryUpdates 18.590 us/op 22.600 us/op 0.82
mainnet_e58758 - phase0 processSlashings 859.00 ns/op 1.4520 us/op 0.59
mainnet_e58758 - phase0 processEth1DataReset 1.1220 us/op 1.3640 us/op 0.82
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.6962 ms/op 1.9981 ms/op 0.85
mainnet_e58758 - phase0 processSlashingsReset 7.4050 us/op 12.756 us/op 0.58
mainnet_e58758 - phase0 processRandaoMixesReset 9.0190 us/op 13.523 us/op 0.67
mainnet_e58758 - phase0 processHistoricalRootsUpdate 1.3510 us/op 1.4380 us/op 0.94
mainnet_e58758 - phase0 processParticipationRecordUpdates 9.5390 us/op 12.009 us/op 0.79
mainnet_e58758 - phase0 afterProcessEpoch 114.81 ms/op 114.15 ms/op 1.01
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.9199 ms/op 1.7003 ms/op 1.13
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.9924 ms/op 2.0011 ms/op 1.00
altair processInactivityUpdates - 250000 normalcase 33.418 ms/op 40.285 ms/op 0.83
altair processInactivityUpdates - 250000 worstcase 35.281 ms/op 31.693 ms/op 1.11
phase0 processRegistryUpdates - 250000 normalcase 19.108 us/op 16.910 us/op 1.13
phase0 processRegistryUpdates - 250000 badcase_full_deposits 711.74 us/op 475.05 us/op 1.50
phase0 processRegistryUpdates - 250000 worstcase 0.5 203.72 ms/op 207.84 ms/op 0.98
altair processRewardsAndPenalties - 250000 normalcase 79.328 ms/op 104.57 ms/op 0.76
altair processRewardsAndPenalties - 250000 worstcase 78.171 ms/op 78.227 ms/op 1.00
phase0 getAttestationDeltas - 250000 normalcase 13.950 ms/op 16.022 ms/op 0.87
phase0 getAttestationDeltas - 250000 worstcase 13.845 ms/op 17.141 ms/op 0.81
phase0 processSlashings - 250000 worstcase 148.83 us/op 119.27 us/op 1.25
altair processSyncCommitteeUpdates - 250000 200.85 ms/op 219.36 ms/op 0.92
BeaconState.hashTreeRoot - No change 321.00 ns/op 433.00 ns/op 0.74
BeaconState.hashTreeRoot - 1 full validator 180.58 us/op 259.88 us/op 0.69
BeaconState.hashTreeRoot - 32 full validator 2.2533 ms/op 2.5697 ms/op 0.88
BeaconState.hashTreeRoot - 512 full validator 25.950 ms/op 21.616 ms/op 1.20
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 255.33 us/op 211.66 us/op 1.21
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 3.1867 ms/op 2.9941 ms/op 1.06
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 44.422 ms/op 36.990 ms/op 1.20
BeaconState.hashTreeRoot - 1 balances 213.84 us/op 200.68 us/op 1.07
BeaconState.hashTreeRoot - 32 balances 1.7238 ms/op 1.9968 ms/op 0.86
BeaconState.hashTreeRoot - 512 balances 17.076 ms/op 18.330 ms/op 0.93
BeaconState.hashTreeRoot - 250000 balances 277.40 ms/op 282.05 ms/op 0.98
aggregationBits - 2048 els - zipIndexesInBitList 37.663 us/op 32.232 us/op 1.17
byteArrayEquals 32 83.630 ns/op 89.846 ns/op 0.93
Buffer.compare 32 58.705 ns/op 66.127 ns/op 0.89
byteArrayEquals 1024 2.2732 us/op 2.6221 us/op 0.87
Buffer.compare 1024 76.556 ns/op 97.098 ns/op 0.79
byteArrayEquals 16384 35.172 us/op 40.461 us/op 0.87
Buffer.compare 16384 274.94 ns/op 353.76 ns/op 0.78
byteArrayEquals 123687377 264.53 ms/op 308.70 ms/op 0.86
Buffer.compare 123687377 9.8122 ms/op 8.1777 ms/op 1.20
byteArrayEquals 32 - diff last byte 83.326 ns/op 81.071 ns/op 1.03
Buffer.compare 32 - diff last byte 59.999 ns/op 64.126 ns/op 0.94
byteArrayEquals 1024 - diff last byte 2.1169 us/op 2.3398 us/op 0.90
Buffer.compare 1024 - diff last byte 74.557 ns/op 79.359 ns/op 0.94
byteArrayEquals 16384 - diff last byte 33.437 us/op 35.255 us/op 0.95
Buffer.compare 16384 - diff last byte 268.27 ns/op 302.88 ns/op 0.89
byteArrayEquals 123687377 - diff last byte 256.26 ms/op 278.46 ms/op 0.92
Buffer.compare 123687377 - diff last byte 9.5451 ms/op 9.1365 ms/op 1.04
byteArrayEquals 32 - random bytes 6.5070 ns/op 6.6850 ns/op 0.97
Buffer.compare 32 - random bytes 64.126 ns/op 70.525 ns/op 0.91
byteArrayEquals 1024 - random bytes 6.6190 ns/op 6.2350 ns/op 1.06
Buffer.compare 1024 - random bytes 62.976 ns/op 68.696 ns/op 0.92
byteArrayEquals 16384 - random bytes 6.5180 ns/op 7.1580 ns/op 0.91
Buffer.compare 16384 - random bytes 63.423 ns/op 71.921 ns/op 0.88
byteArrayEquals 123687377 - random bytes 9.1400 ns/op 10.630 ns/op 0.86
Buffer.compare 123687377 - random bytes 75.720 ns/op 84.910 ns/op 0.89
regular array get 100000 times 47.087 us/op 54.347 us/op 0.87
wrappedArray get 100000 times 46.711 us/op 51.353 us/op 0.91
arrayWithProxy get 100000 times 14.943 ms/op 17.144 ms/op 0.87
ssz.Root.equals 55.681 ns/op 60.412 ns/op 0.92
byteArrayEquals 55.750 ns/op 59.389 ns/op 0.94
Buffer.compare 13.710 ns/op 14.200 ns/op 0.97
shuffle list - 16384 els 7.7379 ms/op 7.7077 ms/op 1.00
shuffle list - 250000 els 107.37 ms/op 115.61 ms/op 0.93
processSlot - 1 slots 21.185 us/op 18.861 us/op 1.12
processSlot - 32 slots 3.5635 ms/op 3.6839 ms/op 0.97
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 61.744 ms/op 57.791 ms/op 1.07
getCommitteeAssignments - req 1 vs - 250000 vc 2.6048 ms/op 2.6841 ms/op 0.97
getCommitteeAssignments - req 100 vs - 250000 vc 3.8984 ms/op 4.0453 ms/op 0.96
getCommitteeAssignments - req 1000 vs - 250000 vc 4.2844 ms/op 4.4373 ms/op 0.97
findModifiedValidators - 10000 modified validators 538.43 ms/op 606.37 ms/op 0.89
findModifiedValidators - 1000 modified validators 459.98 ms/op 449.04 ms/op 1.02
findModifiedValidators - 100 modified validators 431.20 ms/op 423.64 ms/op 1.02
findModifiedValidators - 10 modified validators 444.83 ms/op 435.34 ms/op 1.02
findModifiedValidators - 1 modified validators 438.91 ms/op 406.20 ms/op 1.08
findModifiedValidators - no difference 454.43 ms/op 467.70 ms/op 0.97
compare ViewDUs 5.0662 s/op 5.1207 s/op 0.99
compare each validator Uint8Array 1.5267 s/op 2.2302 s/op 0.68
compare ViewDU to Uint8Array 1.3269 s/op 1.5122 s/op 0.88
migrate state 1000000 validators, 24 modified, 0 new 799.47 ms/op 857.99 ms/op 0.93
migrate state 1000000 validators, 1700 modified, 1000 new 1.1707 s/op 1.0681 s/op 1.10
migrate state 1000000 validators, 3400 modified, 2000 new 1.4704 s/op 1.2766 s/op 1.15
migrate state 1500000 validators, 24 modified, 0 new 860.23 ms/op 748.92 ms/op 1.15
migrate state 1500000 validators, 1700 modified, 1000 new 1.1261 s/op 1.1621 s/op 0.97
migrate state 1500000 validators, 3400 modified, 2000 new 1.3878 s/op 1.3209 s/op 1.05
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.2600 ns/op 4.1000 ns/op 1.04
state getBlockRootAtSlot - 250000 vs - 7PWei 705.70 ns/op 735.12 ns/op 0.96
computeProposers - vc 250000 9.7578 ms/op 9.4539 ms/op 1.03
computeEpochShuffling - vc 250000 114.49 ms/op 102.01 ms/op 1.12
getNextSyncCommittee - vc 250000 169.43 ms/op 155.63 ms/op 1.09
computeSigningRoot for AttestationData 24.407 us/op 29.115 us/op 0.84
hash AttestationData serialized data then Buffer.toString(base64) 2.3910 us/op 2.2632 us/op 1.06
toHexString serialized data 1.0973 us/op 1.0476 us/op 1.05
Buffer.toString(base64) 217.88 ns/op 222.88 ns/op 0.98

by benchmarkbot/action

Copy link

codecov bot commented Jan 9, 2024

Codecov Report

Merging #6271 (bd88354) into unstable (3927ffd) will increase coverage by 0.08%.
The diff coverage is n/a.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #6271      +/-   ##
============================================
+ Coverage     80.38%   80.47%   +0.08%     
============================================
  Files           202      202              
  Lines         19622    19622              
  Branches       1176     1176              
============================================
+ Hits          15773    15790      +17     
+ Misses         3821     3805      -16     
+ Partials         28       27       -1     

@nazarhussain nazarhussain merged commit 55bc136 into unstable Jan 9, 2024
15 of 16 checks passed
@nazarhussain nazarhussain deleted the nflaig/fix-block-production-dashboard branch January 9, 2024 13:37
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.14.0 🎉

ensi321 pushed a commit to ensi321/lodestar that referenced this pull request Jan 22, 2024
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

3 participants