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

feat: add error log to notifier if execution client auth failed #7239

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Nov 25, 2024

Motivation

Follow up on #6919, while it's less likely that this happens unnoticed, ie. in case the initial error is missed, a user might still miss it when updating EL client and for some reason changing the secret.

Description

Add error log to notifier if execution client auth failed. The error will be logged at the start of every epoch if EL authentication is not working (eg. due to mismatching JWT secret)

@nflaig nflaig requested a review from a team as a code owner November 25, 2024 16:27
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: 9c36148 Previous: b78cb92 Ratio
BeaconState.hashTreeRoot - No change 577.00 ns/op 186.00 ns/op 3.10
Full benchmark results
Benchmark suite Current: 9c36148 Previous: b78cb92 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.8428 ms/op 2.3636 ms/op 0.78
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 48.299 us/op 75.104 us/op 0.64
BLS verify - blst 935.76 us/op 879.66 us/op 1.06
BLS verifyMultipleSignatures 3 - blst 1.5650 ms/op 1.3506 ms/op 1.16
BLS verifyMultipleSignatures 8 - blst 2.1526 ms/op 2.2216 ms/op 0.97
BLS verifyMultipleSignatures 32 - blst 4.6169 ms/op 6.3587 ms/op 0.73
BLS verifyMultipleSignatures 64 - blst 8.5117 ms/op 11.207 ms/op 0.76
BLS verifyMultipleSignatures 128 - blst 16.049 ms/op 21.691 ms/op 0.74
BLS deserializing 10000 signatures 630.74 ms/op 670.72 ms/op 0.94
BLS deserializing 100000 signatures 6.2719 s/op 6.9543 s/op 0.90
BLS verifyMultipleSignatures - same message - 3 - blst 934.17 us/op 928.46 us/op 1.01
BLS verifyMultipleSignatures - same message - 8 - blst 1.0859 ms/op 1.0317 ms/op 1.05
BLS verifyMultipleSignatures - same message - 32 - blst 1.6619 ms/op 1.8293 ms/op 0.91
BLS verifyMultipleSignatures - same message - 64 - blst 2.4826 ms/op 2.8070 ms/op 0.88
BLS verifyMultipleSignatures - same message - 128 - blst 4.2410 ms/op 4.4043 ms/op 0.96
BLS aggregatePubkeys 32 - blst 17.777 us/op 19.468 us/op 0.91
BLS aggregatePubkeys 128 - blst 62.799 us/op 67.614 us/op 0.93
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 68.011 ms/op 136.91 ms/op 0.50
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 48.368 ms/op 70.702 ms/op 0.68
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 37.391 ms/op 48.592 ms/op 0.77
getSlashingsAndExits - default max 77.532 us/op 119.09 us/op 0.65
getSlashingsAndExits - 2k 264.24 us/op 430.95 us/op 0.61
proposeBlockBody type=full, size=empty 4.9773 ms/op 6.4601 ms/op 0.77
isKnown best case - 1 super set check 502.00 ns/op 585.00 ns/op 0.86
isKnown normal case - 2 super set checks 466.00 ns/op 606.00 ns/op 0.77
isKnown worse case - 16 super set checks 462.00 ns/op 599.00 ns/op 0.77
InMemoryCheckpointStateCache - add get delete 2.6790 us/op 3.4720 us/op 0.77
validate api signedAggregateAndProof - struct 1.7548 ms/op 1.6020 ms/op 1.10
validate gossip signedAggregateAndProof - struct 1.4335 ms/op 1.6810 ms/op 0.85
batch validate gossip attestation - vc 640000 - chunk 32 121.46 us/op 134.48 us/op 0.90
batch validate gossip attestation - vc 640000 - chunk 64 101.74 us/op 128.61 us/op 0.79
batch validate gossip attestation - vc 640000 - chunk 128 97.854 us/op 122.14 us/op 0.80
batch validate gossip attestation - vc 640000 - chunk 256 96.517 us/op 122.43 us/op 0.79
pickEth1Vote - no votes 840.97 us/op 1.2147 ms/op 0.69
pickEth1Vote - max votes 5.7374 ms/op 12.066 ms/op 0.48
pickEth1Vote - Eth1Data hashTreeRoot value x2048 14.075 ms/op 22.741 ms/op 0.62
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 14.684 ms/op 36.837 ms/op 0.40
pickEth1Vote - Eth1Data fastSerialize value x2048 365.85 us/op 591.98 us/op 0.62
pickEth1Vote - Eth1Data fastSerialize tree x2048 2.0072 ms/op 3.1316 ms/op 0.64
bytes32 toHexString 583.00 ns/op 585.00 ns/op 1.00
bytes32 Buffer.toString(hex) 469.00 ns/op 225.00 ns/op 2.08
bytes32 Buffer.toString(hex) from Uint8Array 520.00 ns/op 451.00 ns/op 1.15
bytes32 Buffer.toString(hex) + 0x 441.00 ns/op 224.00 ns/op 1.97
Object access 1 prop 0.33900 ns/op 0.18000 ns/op 1.88
Map access 1 prop 0.32600 ns/op 0.11100 ns/op 2.94
Object get x1000 5.3790 ns/op 5.0230 ns/op 1.07
Map get x1000 5.8890 ns/op 5.8550 ns/op 1.01
Object set x1000 22.524 ns/op 35.968 ns/op 0.63
Map set x1000 18.847 ns/op 27.023 ns/op 0.70
Return object 10000 times 0.29910 ns/op 0.31090 ns/op 0.96
Throw Error 10000 times 2.6998 us/op 3.0405 us/op 0.89
toHex 115.80 ns/op 130.15 ns/op 0.89
Buffer.from 106.38 ns/op 119.75 ns/op 0.89
shared Buffer 73.337 ns/op 80.728 ns/op 0.91
fastMsgIdFn sha256 / 200 bytes 1.9640 us/op 1.9800 us/op 0.99
fastMsgIdFn h32 xxhash / 200 bytes 401.00 ns/op 247.00 ns/op 1.62
fastMsgIdFn h64 xxhash / 200 bytes 478.00 ns/op 225.00 ns/op 2.12
fastMsgIdFn sha256 / 1000 bytes 5.8290 us/op 5.9820 us/op 0.97
fastMsgIdFn h32 xxhash / 1000 bytes 560.00 ns/op 384.00 ns/op 1.46
fastMsgIdFn h64 xxhash / 1000 bytes 504.00 ns/op 322.00 ns/op 1.57
fastMsgIdFn sha256 / 10000 bytes 46.620 us/op 50.433 us/op 0.92
fastMsgIdFn h32 xxhash / 10000 bytes 1.8250 us/op 1.8030 us/op 1.01
fastMsgIdFn h64 xxhash / 10000 bytes 1.2630 us/op 1.1610 us/op 1.09
send data - 1000 256B messages 10.050 ms/op 13.840 ms/op 0.73
send data - 1000 512B messages 15.436 ms/op 19.185 ms/op 0.80
send data - 1000 1024B messages 19.937 ms/op 26.673 ms/op 0.75
send data - 1000 1200B messages 23.005 ms/op 31.290 ms/op 0.74
send data - 1000 2048B messages 28.964 ms/op 43.947 ms/op 0.66
send data - 1000 4096B messages 25.253 ms/op 32.803 ms/op 0.77
send data - 1000 16384B messages 67.171 ms/op 84.363 ms/op 0.80
send data - 1000 65536B messages 233.31 ms/op 185.60 ms/op 1.26
enrSubnets - fastDeserialize 64 bits 1.1610 us/op 890.00 ns/op 1.30
enrSubnets - ssz BitVector 64 bits 517.00 ns/op 280.00 ns/op 1.85
enrSubnets - fastDeserialize 4 bits 328.00 ns/op 120.00 ns/op 2.73
enrSubnets - ssz BitVector 4 bits 514.00 ns/op 276.00 ns/op 1.86
prioritizePeers score -10:0 att 32-0.1 sync 2-0 122.99 us/op 138.22 us/op 0.89
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 149.50 us/op 137.78 us/op 1.09
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 312.62 us/op 288.63 us/op 1.08
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 435.05 us/op 493.81 us/op 0.88
prioritizePeers score 0:0 att 64-1 sync 4-1 509.38 us/op 777.88 us/op 0.65
array of 16000 items push then shift 1.2940 us/op 1.3672 us/op 0.95
LinkedList of 16000 items push then shift 7.4810 ns/op 6.9590 ns/op 1.08
array of 16000 items push then pop 104.95 ns/op 116.62 ns/op 0.90
LinkedList of 16000 items push then pop 6.2840 ns/op 6.3200 ns/op 0.99
array of 24000 items push then shift 1.8164 us/op 1.9599 us/op 0.93
LinkedList of 24000 items push then shift 6.8510 ns/op 6.5860 ns/op 1.04
array of 24000 items push then pop 109.71 ns/op 157.18 ns/op 0.70
LinkedList of 24000 items push then pop 6.0650 ns/op 6.0300 ns/op 1.01
intersect bitArray bitLen 8 5.2320 ns/op 5.5230 ns/op 0.95
intersect array and set length 8 38.346 ns/op 39.555 ns/op 0.97
intersect bitArray bitLen 128 25.675 ns/op 26.854 ns/op 0.96
intersect array and set length 128 562.90 ns/op 645.52 ns/op 0.87
bitArray.getTrueBitIndexes() bitLen 128 2.1380 us/op 2.0880 us/op 1.02
bitArray.getTrueBitIndexes() bitLen 248 4.2670 us/op 3.8520 us/op 1.11
bitArray.getTrueBitIndexes() bitLen 512 7.6120 us/op 9.5240 us/op 0.80
Buffer.concat 32 items 1.0650 us/op 968.00 ns/op 1.10
Uint8Array.set 32 items 1.6520 us/op 1.8380 us/op 0.90
Buffer.copy 1.7320 us/op 2.0000 us/op 0.87
Uint8Array.set - with subarray 2.3160 us/op 3.2440 us/op 0.71
Uint8Array.set - without subarray 1.5780 us/op 1.8510 us/op 0.85
getUint32 - dataview 400.00 ns/op 292.00 ns/op 1.37
getUint32 - manual 333.00 ns/op 286.00 ns/op 1.16
Set add up to 64 items then delete first 1.7015 us/op 2.8635 us/op 0.59
OrderedSet add up to 64 items then delete first 2.6527 us/op 4.6323 us/op 0.57
Set add up to 64 items then delete last 1.9684 us/op 3.0921 us/op 0.64
OrderedSet add up to 64 items then delete last 2.9737 us/op 3.4348 us/op 0.87
Set add up to 64 items then delete middle 1.9692 us/op 2.4623 us/op 0.80
OrderedSet add up to 64 items then delete middle 4.5525 us/op 5.1023 us/op 0.89
Set add up to 128 items then delete first 3.9232 us/op 4.4423 us/op 0.88
OrderedSet add up to 128 items then delete first 6.3010 us/op 6.7966 us/op 0.93
Set add up to 128 items then delete last 3.9297 us/op 4.1111 us/op 0.96
OrderedSet add up to 128 items then delete last 5.8560 us/op 6.3057 us/op 0.93
Set add up to 128 items then delete middle 3.7873 us/op 4.1567 us/op 0.91
OrderedSet add up to 128 items then delete middle 14.006 us/op 12.205 us/op 1.15
Set add up to 256 items then delete first 7.9357 us/op 8.5156 us/op 0.93
OrderedSet add up to 256 items then delete first 12.784 us/op 13.419 us/op 0.95
Set add up to 256 items then delete last 7.7404 us/op 7.9135 us/op 0.98
OrderedSet add up to 256 items then delete last 11.803 us/op 12.245 us/op 0.96
Set add up to 256 items then delete middle 7.7107 us/op 7.8654 us/op 0.98
OrderedSet add up to 256 items then delete middle 34.676 us/op 35.314 us/op 0.98
transfer serialized Status (84 B) 1.3670 us/op 1.1150 us/op 1.23
copy serialized Status (84 B) 1.3070 us/op 1.0150 us/op 1.29
transfer serialized SignedVoluntaryExit (112 B) 1.6120 us/op 1.3630 us/op 1.18
copy serialized SignedVoluntaryExit (112 B) 1.3830 us/op 1.0220 us/op 1.35
transfer serialized ProposerSlashing (416 B) 2.0010 us/op 1.3960 us/op 1.43
copy serialized ProposerSlashing (416 B) 2.0700 us/op 1.5320 us/op 1.35
transfer serialized Attestation (485 B) 2.2920 us/op 1.9800 us/op 1.16
copy serialized Attestation (485 B) 2.0770 us/op 1.5450 us/op 1.34
transfer serialized AttesterSlashing (33232 B) 1.8960 us/op 1.6700 us/op 1.14
copy serialized AttesterSlashing (33232 B) 6.1290 us/op 4.1190 us/op 1.49
transfer serialized Small SignedBeaconBlock (128000 B) 2.4640 us/op 1.7800 us/op 1.38
copy serialized Small SignedBeaconBlock (128000 B) 14.424 us/op 10.577 us/op 1.36
transfer serialized Avg SignedBeaconBlock (200000 B) 2.4250 us/op 2.5450 us/op 0.95
copy serialized Avg SignedBeaconBlock (200000 B) 21.247 us/op 15.172 us/op 1.40
transfer serialized BlobsSidecar (524380 B) 2.6260 us/op 2.6480 us/op 0.99
copy serialized BlobsSidecar (524380 B) 72.020 us/op 75.373 us/op 0.96
transfer serialized Big SignedBeaconBlock (1000000 B) 3.0580 us/op 3.0180 us/op 1.01
copy serialized Big SignedBeaconBlock (1000000 B) 178.55 us/op 138.68 us/op 1.29
pass gossip attestations to forkchoice per slot 2.4275 ms/op 2.5612 ms/op 0.95
forkChoice updateHead vc 100000 bc 64 eq 0 403.54 us/op 368.56 us/op 1.09
forkChoice updateHead vc 600000 bc 64 eq 0 2.3992 ms/op 2.4736 ms/op 0.97
forkChoice updateHead vc 1000000 bc 64 eq 0 3.7789 ms/op 3.9233 ms/op 0.96
forkChoice updateHead vc 600000 bc 320 eq 0 2.2594 ms/op 2.2119 ms/op 1.02
forkChoice updateHead vc 600000 bc 1200 eq 0 2.3900 ms/op 2.3455 ms/op 1.02
forkChoice updateHead vc 600000 bc 7200 eq 0 2.6885 ms/op 2.7267 ms/op 0.99
forkChoice updateHead vc 600000 bc 64 eq 1000 8.9618 ms/op 9.5770 ms/op 0.94
forkChoice updateHead vc 600000 bc 64 eq 10000 9.1761 ms/op 9.5504 ms/op 0.96
forkChoice updateHead vc 600000 bc 64 eq 300000 11.667 ms/op 11.809 ms/op 0.99
computeDeltas 500000 validators 300 proto nodes 3.2538 ms/op 3.4093 ms/op 0.95
computeDeltas 500000 validators 1200 proto nodes 3.3419 ms/op 3.3709 ms/op 0.99
computeDeltas 500000 validators 7200 proto nodes 3.3111 ms/op 3.4934 ms/op 0.95
computeDeltas 750000 validators 300 proto nodes 4.9107 ms/op 5.1454 ms/op 0.95
computeDeltas 750000 validators 1200 proto nodes 4.9161 ms/op 5.1250 ms/op 0.96
computeDeltas 750000 validators 7200 proto nodes 4.7967 ms/op 5.2201 ms/op 0.92
computeDeltas 1400000 validators 300 proto nodes 9.1925 ms/op 9.8807 ms/op 0.93
computeDeltas 1400000 validators 1200 proto nodes 9.0349 ms/op 9.6585 ms/op 0.94
computeDeltas 1400000 validators 7200 proto nodes 9.2828 ms/op 10.899 ms/op 0.85
computeDeltas 2100000 validators 300 proto nodes 13.958 ms/op 19.094 ms/op 0.73
computeDeltas 2100000 validators 1200 proto nodes 13.500 ms/op 21.321 ms/op 0.63
computeDeltas 2100000 validators 7200 proto nodes 13.876 ms/op 23.969 ms/op 0.58
altair processAttestation - 250000 vs - 7PWei normalcase 1.3958 ms/op 1.9593 ms/op 0.71
altair processAttestation - 250000 vs - 7PWei worstcase 2.1704 ms/op 2.9925 ms/op 0.73
altair processAttestation - setStatus - 1/6 committees join 68.647 us/op 128.27 us/op 0.54
altair processAttestation - setStatus - 1/3 committees join 129.43 us/op 226.08 us/op 0.57
altair processAttestation - setStatus - 1/2 committees join 171.60 us/op 316.20 us/op 0.54
altair processAttestation - setStatus - 2/3 committees join 248.64 us/op 371.16 us/op 0.67
altair processAttestation - setStatus - 4/5 committees join 382.44 us/op 520.30 us/op 0.74
altair processAttestation - setStatus - 100% committees join 474.02 us/op 624.76 us/op 0.76
altair processBlock - 250000 vs - 7PWei normalcase 3.4584 ms/op 5.4820 ms/op 0.63
altair processBlock - 250000 vs - 7PWei normalcase hashState 23.990 ms/op 26.030 ms/op 0.92
altair processBlock - 250000 vs - 7PWei worstcase 33.456 ms/op 34.020 ms/op 0.98
altair processBlock - 250000 vs - 7PWei worstcase hashState 76.164 ms/op 69.640 ms/op 1.09
phase0 processBlock - 250000 vs - 7PWei normalcase 1.7176 ms/op 1.9036 ms/op 0.90
phase0 processBlock - 250000 vs - 7PWei worstcase 23.002 ms/op 25.087 ms/op 0.92
altair processEth1Data - 250000 vs - 7PWei normalcase 248.08 us/op 328.36 us/op 0.76
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 4.1870 us/op 4.4190 us/op 0.95
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 28.864 us/op 28.808 us/op 1.00
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 8.6580 us/op 6.9410 us/op 1.25
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 3.3770 us/op 6.7480 us/op 0.50
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 121.89 us/op 128.69 us/op 0.95
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 861.70 us/op 828.40 us/op 1.04
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.1959 ms/op 1.1145 ms/op 1.07
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.1404 ms/op 1.1441 ms/op 1.00
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.9160 ms/op 2.7872 ms/op 1.05
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.2344 ms/op 1.1994 ms/op 1.03
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.0463 ms/op 2.8647 ms/op 1.06
Tree 40 250000 create 172.50 ms/op 187.82 ms/op 0.92
Tree 40 250000 get(125000) 116.30 ns/op 113.83 ns/op 1.02
Tree 40 250000 set(125000) 542.68 ns/op 560.84 ns/op 0.97
Tree 40 250000 toArray() 9.6810 ms/op 16.751 ms/op 0.58
Tree 40 250000 iterate all - toArray() + loop 9.7652 ms/op 16.938 ms/op 0.58
Tree 40 250000 iterate all - get(i) 40.824 ms/op 45.591 ms/op 0.90
Array 250000 create 2.3860 ms/op 2.9778 ms/op 0.80
Array 250000 clone - spread 1.3260 ms/op 1.2812 ms/op 1.03
Array 250000 get(125000) 0.58800 ns/op 0.35300 ns/op 1.67
Array 250000 set(125000) 0.65700 ns/op 0.36000 ns/op 1.83
Array 250000 iterate all - loop 74.104 us/op 74.576 us/op 0.99
phase0 afterProcessEpoch - 250000 vs - 7PWei 42.921 ms/op 41.338 ms/op 1.04
Array.fill - length 1000000 2.5896 ms/op 2.5817 ms/op 1.00
Array push - length 1000000 14.505 ms/op 13.789 ms/op 1.05
Array.get 0.29026 ns/op 0.25894 ns/op 1.12
Uint8Array.get 0.35452 ns/op 0.33866 ns/op 1.05
phase0 beforeProcessEpoch - 250000 vs - 7PWei 13.256 ms/op 12.122 ms/op 1.09
altair processEpoch - mainnet_e81889 266.95 ms/op 281.34 ms/op 0.95
mainnet_e81889 - altair beforeProcessEpoch 20.020 ms/op 19.473 ms/op 1.03
mainnet_e81889 - altair processJustificationAndFinalization 6.6200 us/op 12.843 us/op 0.52
mainnet_e81889 - altair processInactivityUpdates 4.9543 ms/op 4.0961 ms/op 1.21
mainnet_e81889 - altair processRewardsAndPenalties 51.255 ms/op 48.593 ms/op 1.05
mainnet_e81889 - altair processRegistryUpdates 1.9270 us/op 1.2500 us/op 1.54
mainnet_e81889 - altair processSlashings 817.00 ns/op 273.00 ns/op 2.99
mainnet_e81889 - altair processEth1DataReset 667.00 ns/op 253.00 ns/op 2.64
mainnet_e81889 - altair processEffectiveBalanceUpdates 971.21 us/op 1.7566 ms/op 0.55
mainnet_e81889 - altair processSlashingsReset 3.0880 us/op 2.9420 us/op 1.05
mainnet_e81889 - altair processRandaoMixesReset 3.8690 us/op 3.4140 us/op 1.13
mainnet_e81889 - altair processHistoricalRootsUpdate 712.00 ns/op 352.00 ns/op 2.02
mainnet_e81889 - altair processParticipationFlagUpdates 1.7380 us/op 1.5100 us/op 1.15
mainnet_e81889 - altair processSyncCommitteeUpdates 681.00 ns/op 314.00 ns/op 2.17
mainnet_e81889 - altair afterProcessEpoch 46.882 ms/op 43.775 ms/op 1.07
capella processEpoch - mainnet_e217614 1.0423 s/op 1.1019 s/op 0.95
mainnet_e217614 - capella beforeProcessEpoch 66.427 ms/op 69.541 ms/op 0.96
mainnet_e217614 - capella processJustificationAndFinalization 6.4960 us/op 18.628 us/op 0.35
mainnet_e217614 - capella processInactivityUpdates 15.681 ms/op 15.927 ms/op 0.98
mainnet_e217614 - capella processRewardsAndPenalties 233.84 ms/op 237.04 ms/op 0.99
mainnet_e217614 - capella processRegistryUpdates 11.184 us/op 11.889 us/op 0.94
mainnet_e217614 - capella processSlashings 822.00 ns/op 868.00 ns/op 0.95
mainnet_e217614 - capella processEth1DataReset 723.00 ns/op 327.00 ns/op 2.21
mainnet_e217614 - capella processEffectiveBalanceUpdates 18.954 ms/op 17.311 ms/op 1.09
mainnet_e217614 - capella processSlashingsReset 2.5860 us/op 2.0290 us/op 1.27
mainnet_e217614 - capella processRandaoMixesReset 3.1920 us/op 2.2400 us/op 1.43
mainnet_e217614 - capella processHistoricalRootsUpdate 777.00 ns/op 410.00 ns/op 1.90
mainnet_e217614 - capella processParticipationFlagUpdates 1.6380 us/op 1.9100 us/op 0.86
mainnet_e217614 - capella afterProcessEpoch 109.88 ms/op 105.74 ms/op 1.04
phase0 processEpoch - mainnet_e58758 337.70 ms/op 285.77 ms/op 1.18
mainnet_e58758 - phase0 beforeProcessEpoch 77.265 ms/op 63.418 ms/op 1.22
mainnet_e58758 - phase0 processJustificationAndFinalization 17.730 us/op 12.248 us/op 1.45
mainnet_e58758 - phase0 processRewardsAndPenalties 32.763 ms/op 35.465 ms/op 0.92
mainnet_e58758 - phase0 processRegistryUpdates 9.3930 us/op 11.859 us/op 0.79
mainnet_e58758 - phase0 processSlashings 855.00 ns/op 548.00 ns/op 1.56
mainnet_e58758 - phase0 processEth1DataReset 791.00 ns/op 261.00 ns/op 3.03
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.3622 ms/op 2.1376 ms/op 0.64
mainnet_e58758 - phase0 processSlashingsReset 2.3360 us/op 4.3990 us/op 0.53
mainnet_e58758 - phase0 processRandaoMixesReset 5.8880 us/op 5.9710 us/op 0.99
mainnet_e58758 - phase0 processHistoricalRootsUpdate 937.00 ns/op 576.00 ns/op 1.63
mainnet_e58758 - phase0 processParticipationRecordUpdates 6.7390 us/op 4.6490 us/op 1.45
mainnet_e58758 - phase0 afterProcessEpoch 38.222 ms/op 37.535 ms/op 1.02
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.0171 ms/op 1.0482 ms/op 0.97
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.4115 ms/op 3.4674 ms/op 0.41
altair processInactivityUpdates - 250000 normalcase 21.851 ms/op 19.626 ms/op 1.11
altair processInactivityUpdates - 250000 worstcase 19.482 ms/op 19.547 ms/op 1.00
phase0 processRegistryUpdates - 250000 normalcase 8.9620 us/op 12.936 us/op 0.69
phase0 processRegistryUpdates - 250000 badcase_full_deposits 330.62 us/op 437.04 us/op 0.76
phase0 processRegistryUpdates - 250000 worstcase 0.5 116.33 ms/op 134.76 ms/op 0.86
altair processRewardsAndPenalties - 250000 normalcase 52.931 ms/op 43.517 ms/op 1.22
altair processRewardsAndPenalties - 250000 worstcase 68.314 ms/op 44.718 ms/op 1.53
phase0 getAttestationDeltas - 250000 normalcase 6.5437 ms/op 8.5952 ms/op 0.76
phase0 getAttestationDeltas - 250000 worstcase 7.1517 ms/op 7.3601 ms/op 0.97
phase0 processSlashings - 250000 worstcase 112.44 us/op 92.803 us/op 1.21
altair processSyncCommitteeUpdates - 250000 122.78 ms/op 104.22 ms/op 1.18
BeaconState.hashTreeRoot - No change 577.00 ns/op 186.00 ns/op 3.10
BeaconState.hashTreeRoot - 1 full validator 146.49 us/op 104.54 us/op 1.40
BeaconState.hashTreeRoot - 32 full validator 2.1073 ms/op 1.5358 ms/op 1.37
BeaconState.hashTreeRoot - 512 full validator 15.812 ms/op 12.621 ms/op 1.25
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 228.73 us/op 150.84 us/op 1.52
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.7269 ms/op 2.2765 ms/op 1.20
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 35.363 ms/op 31.186 ms/op 1.13
BeaconState.hashTreeRoot - 1 balances 166.82 us/op 139.06 us/op 1.20
BeaconState.hashTreeRoot - 32 balances 1.1691 ms/op 1.1991 ms/op 0.97
BeaconState.hashTreeRoot - 512 balances 12.055 ms/op 10.088 ms/op 1.19
BeaconState.hashTreeRoot - 250000 balances 273.32 ms/op 189.48 ms/op 1.44
aggregationBits - 2048 els - zipIndexesInBitList 26.088 us/op 37.106 us/op 0.70
byteArrayEquals 32 49.579 ns/op 48.562 ns/op 1.02
Buffer.compare 32 15.989 ns/op 16.254 ns/op 0.98
byteArrayEquals 1024 1.3090 us/op 1.3124 us/op 1.00
Buffer.compare 1024 23.890 ns/op 24.387 ns/op 0.98
byteArrayEquals 16384 20.626 us/op 20.933 us/op 0.99
Buffer.compare 16384 202.65 ns/op 175.80 ns/op 1.15
byteArrayEquals 123687377 154.44 ms/op 161.69 ms/op 0.96
Buffer.compare 123687377 7.5217 ms/op 7.4250 ms/op 1.01
byteArrayEquals 32 - diff last byte 47.479 ns/op 52.658 ns/op 0.90
Buffer.compare 32 - diff last byte 15.843 ns/op 16.208 ns/op 0.98
byteArrayEquals 1024 - diff last byte 1.2734 us/op 1.4015 us/op 0.91
Buffer.compare 1024 - diff last byte 22.678 ns/op 23.720 ns/op 0.96
byteArrayEquals 16384 - diff last byte 20.798 us/op 21.348 us/op 0.97
Buffer.compare 16384 - diff last byte 172.51 ns/op 225.56 ns/op 0.76
byteArrayEquals 123687377 - diff last byte 153.69 ms/op 163.30 ms/op 0.94
Buffer.compare 123687377 - diff last byte 5.6735 ms/op 7.9360 ms/op 0.71
byteArrayEquals 32 - random bytes 4.7090 ns/op 4.9410 ns/op 0.95
Buffer.compare 32 - random bytes 15.256 ns/op 16.156 ns/op 0.94
byteArrayEquals 1024 - random bytes 4.7470 ns/op 5.0270 ns/op 0.94
Buffer.compare 1024 - random bytes 15.159 ns/op 15.948 ns/op 0.95
byteArrayEquals 16384 - random bytes 4.8490 ns/op 5.2280 ns/op 0.93
Buffer.compare 16384 - random bytes 15.529 ns/op 16.625 ns/op 0.93
byteArrayEquals 123687377 - random bytes 7.8000 ns/op 6.1500 ns/op 1.27
Buffer.compare 123687377 - random bytes 18.390 ns/op 20.000 ns/op 0.92
regular array get 100000 times 30.736 us/op 32.518 us/op 0.95
wrappedArray get 100000 times 30.455 us/op 32.469 us/op 0.94
arrayWithProxy get 100000 times 10.338 ms/op 12.961 ms/op 0.80
ssz.Root.equals 44.147 ns/op 52.452 ns/op 0.84
byteArrayEquals 44.436 ns/op 45.968 ns/op 0.97
Buffer.compare 9.5260 ns/op 9.5730 ns/op 1.00
processSlot - 1 slots 11.442 us/op 16.503 us/op 0.69
processSlot - 32 slots 2.1593 ms/op 3.2445 ms/op 0.67
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 44.192 ms/op 40.355 ms/op 1.10
getCommitteeAssignments - req 1 vs - 250000 vc 1.8574 ms/op 1.8572 ms/op 1.00
getCommitteeAssignments - req 100 vs - 250000 vc 3.7315 ms/op 3.6669 ms/op 1.02
getCommitteeAssignments - req 1000 vs - 250000 vc 3.9404 ms/op 3.9910 ms/op 0.99
findModifiedValidators - 10000 modified validators 266.05 ms/op 340.62 ms/op 0.78
findModifiedValidators - 1000 modified validators 140.51 ms/op 289.83 ms/op 0.48
findModifiedValidators - 100 modified validators 140.40 ms/op 190.31 ms/op 0.74
findModifiedValidators - 10 modified validators 148.24 ms/op 232.28 ms/op 0.64
findModifiedValidators - 1 modified validators 137.98 ms/op 215.38 ms/op 0.64
findModifiedValidators - no difference 154.91 ms/op 226.42 ms/op 0.68
compare ViewDUs 2.8145 s/op 3.8806 s/op 0.73
compare each validator Uint8Array 1.1392 s/op 1.9211 s/op 0.59
compare ViewDU to Uint8Array 954.26 ms/op 1.0756 s/op 0.89
migrate state 1000000 validators, 24 modified, 0 new 687.73 ms/op 751.61 ms/op 0.92
migrate state 1000000 validators, 1700 modified, 1000 new 904.85 ms/op 967.55 ms/op 0.94
migrate state 1000000 validators, 3400 modified, 2000 new 1.2086 s/op 1.1651 s/op 1.04
migrate state 1500000 validators, 24 modified, 0 new 711.92 ms/op 790.80 ms/op 0.90
migrate state 1500000 validators, 1700 modified, 1000 new 749.74 ms/op 1.2110 s/op 0.62
migrate state 1500000 validators, 3400 modified, 2000 new 936.11 ms/op 1.3024 s/op 0.72
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 6.0700 ns/op 4.8600 ns/op 1.25
state getBlockRootAtSlot - 250000 vs - 7PWei 563.09 ns/op 988.12 ns/op 0.57
computeProposers - vc 250000 5.4238 ms/op 7.4131 ms/op 0.73
computeEpochShuffling - vc 250000 36.227 ms/op 36.312 ms/op 1.00
getNextSyncCommittee - vc 250000 97.053 ms/op 124.84 ms/op 0.78
computeSigningRoot for AttestationData 14.299 us/op 26.513 us/op 0.54
hash AttestationData serialized data then Buffer.toString(base64) 1.1658 us/op 1.3141 us/op 0.89
toHexString serialized data 798.57 ns/op 875.04 ns/op 0.91
Buffer.toString(base64) 148.57 ns/op 213.15 ns/op 0.70
nodejs block root to RootHex using toHex 123.08 ns/op 174.73 ns/op 0.70
nodejs block root to RootHex using toRootHex 72.305 ns/op 89.673 ns/op 0.81
browser block root to RootHex using the deprecated toHexString 214.41 ns/op 221.92 ns/op 0.97
browser block root to RootHex using toHex 172.03 ns/op 241.01 ns/op 0.71
browser block root to RootHex using toRootHex 148.45 ns/op 210.03 ns/op 0.71

by benchmarkbot/action

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.

1 participant