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: add beacon node info log when publishing block #6661

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Apr 12, 2024

Motivation

Similar to publish blinded block API, it would be nice to have an info log when block is being published

chain.logger.info("Publishing assembled block", {blockRoot, slot, source});
return publishBlock(signedBlockOrContents, {...opts, ignoreIfKnown: true});

Description

  • Add info log when publishing block on beacon node
  • Reorder log context to print slot first in produce and publish logs

Note: This log does not indicate that the block was published but rather that publishing has been started, for exact timings it would be required to look into gossip logs / metrics, and other debug logs

@nflaig nflaig requested a review from a team as a code owner April 12, 2024 11:24
Copy link
Contributor

github-actions bot commented Apr 12, 2024

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 8982ce0 Previous: ae984f0 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 856.93 us/op 679.83 us/op 1.26
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 82.672 us/op 107.00 us/op 0.77
BLS verify - blst-native 1.2400 ms/op 1.3826 ms/op 0.90
BLS verifyMultipleSignatures 3 - blst-native 2.6078 ms/op 2.8539 ms/op 0.91
BLS verifyMultipleSignatures 8 - blst-native 5.7571 ms/op 6.2462 ms/op 0.92
BLS verifyMultipleSignatures 32 - blst-native 21.178 ms/op 22.893 ms/op 0.93
BLS verifyMultipleSignatures 64 - blst-native 41.791 ms/op 46.461 ms/op 0.90
BLS verifyMultipleSignatures 128 - blst-native 82.409 ms/op 94.462 ms/op 0.87
BLS deserializing 10000 signatures 850.71 ms/op 968.93 ms/op 0.88
BLS deserializing 100000 signatures 9.1224 s/op 8.9732 s/op 1.02
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.2958 ms/op 1.3743 ms/op 0.94
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.4630 ms/op 1.5601 ms/op 0.94
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.9505 ms/op 2.3996 ms/op 1.23
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.3128 ms/op 3.4012 ms/op 0.97
BLS verifyMultipleSignatures - same message - 128 - blst-native 7.6780 ms/op 5.7714 ms/op 1.33
BLS aggregatePubkeys 32 - blst-native 26.399 us/op 26.284 us/op 1.00
BLS aggregatePubkeys 128 - blst-native 96.862 us/op 100.33 us/op 0.97
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 58.728 ms/op 64.205 ms/op 0.91
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 54.336 ms/op 59.169 ms/op 0.92
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 34.164 ms/op 53.250 ms/op 0.64
getSlashingsAndExits - default max 195.55 us/op 207.45 us/op 0.94
getSlashingsAndExits - 2k 365.01 us/op 597.64 us/op 0.61
proposeBlockBody type=full, size=empty 5.4574 ms/op 8.0017 ms/op 0.68
isKnown best case - 1 super set check 318.00 ns/op 740.00 ns/op 0.43
isKnown normal case - 2 super set checks 307.00 ns/op 739.00 ns/op 0.42
isKnown worse case - 16 super set checks 307.00 ns/op 649.00 ns/op 0.47
InMemoryCheckpointStateCache - add get delete 7.4000 us/op 8.7280 us/op 0.85
validate api signedAggregateAndProof - struct 2.6054 ms/op 3.0190 ms/op 0.86
validate gossip signedAggregateAndProof - struct 2.5973 ms/op 2.9503 ms/op 0.88
validate gossip attestation - vc 640000 1.3058 ms/op 1.4169 ms/op 0.92
batch validate gossip attestation - vc 640000 - chunk 32 159.50 us/op 169.53 us/op 0.94
batch validate gossip attestation - vc 640000 - chunk 64 140.23 us/op 148.73 us/op 0.94
batch validate gossip attestation - vc 640000 - chunk 128 132.30 us/op 139.53 us/op 0.95
batch validate gossip attestation - vc 640000 - chunk 256 127.12 us/op 127.81 us/op 0.99
pickEth1Vote - no votes 1.2015 ms/op 1.1556 ms/op 1.04
pickEth1Vote - max votes 9.1797 ms/op 9.1164 ms/op 1.01
pickEth1Vote - Eth1Data hashTreeRoot value x2048 19.275 ms/op 15.981 ms/op 1.21
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 26.077 ms/op 24.409 ms/op 1.07
pickEth1Vote - Eth1Data fastSerialize value x2048 619.45 us/op 597.39 us/op 1.04
pickEth1Vote - Eth1Data fastSerialize tree x2048 8.1059 ms/op 4.2496 ms/op 1.91
bytes32 toHexString 513.00 ns/op 481.00 ns/op 1.07
bytes32 Buffer.toString(hex) 301.00 ns/op 284.00 ns/op 1.06
bytes32 Buffer.toString(hex) from Uint8Array 419.00 ns/op 411.00 ns/op 1.02
bytes32 Buffer.toString(hex) + 0x 292.00 ns/op 288.00 ns/op 1.01
Object access 1 prop 0.16100 ns/op 0.15900 ns/op 1.01
Map access 1 prop 0.15400 ns/op 0.14800 ns/op 1.04
Object get x1000 7.6390 ns/op 7.2450 ns/op 1.05
Map get x1000 0.74700 ns/op 0.73400 ns/op 1.02
Object set x1000 50.533 ns/op 48.062 ns/op 1.05
Map set x1000 38.673 ns/op 38.120 ns/op 1.01
Return object 10000 times 0.23490 ns/op 0.23690 ns/op 0.99
Throw Error 10000 times 3.8866 us/op 3.8225 us/op 1.02
fastMsgIdFn sha256 / 200 bytes 3.3010 us/op 3.2360 us/op 1.02
fastMsgIdFn h32 xxhash / 200 bytes 288.00 ns/op 277.00 ns/op 1.04
fastMsgIdFn h64 xxhash / 200 bytes 334.00 ns/op 345.00 ns/op 0.97
fastMsgIdFn sha256 / 1000 bytes 11.148 us/op 11.231 us/op 0.99
fastMsgIdFn h32 xxhash / 1000 bytes 402.00 ns/op 395.00 ns/op 1.02
fastMsgIdFn h64 xxhash / 1000 bytes 411.00 ns/op 413.00 ns/op 1.00
fastMsgIdFn sha256 / 10000 bytes 101.48 us/op 102.94 us/op 0.99
fastMsgIdFn h32 xxhash / 10000 bytes 1.9060 us/op 1.8900 us/op 1.01
fastMsgIdFn h64 xxhash / 10000 bytes 1.3020 us/op 1.2900 us/op 1.01
send data - 1000 256B messages 17.720 ms/op 18.299 ms/op 0.97
send data - 1000 512B messages 25.200 ms/op 25.403 ms/op 0.99
send data - 1000 1024B messages 38.468 ms/op 39.722 ms/op 0.97
send data - 1000 1200B messages 35.854 ms/op 40.113 ms/op 0.89
send data - 1000 2048B messages 46.821 ms/op 50.297 ms/op 0.93
send data - 1000 4096B messages 41.516 ms/op 44.953 ms/op 0.92
send data - 1000 16384B messages 118.48 ms/op 120.57 ms/op 0.98
send data - 1000 65536B messages 445.80 ms/op 460.66 ms/op 0.97
enrSubnets - fastDeserialize 64 bits 1.2060 us/op 1.2750 us/op 0.95
enrSubnets - ssz BitVector 64 bits 424.00 ns/op 432.00 ns/op 0.98
enrSubnets - fastDeserialize 4 bits 180.00 ns/op 175.00 ns/op 1.03
enrSubnets - ssz BitVector 4 bits 430.00 ns/op 437.00 ns/op 0.98
prioritizePeers score -10:0 att 32-0.1 sync 2-0 194.99 us/op 217.84 us/op 0.90
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 255.59 us/op 273.90 us/op 0.93
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 324.12 us/op 342.17 us/op 0.95
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 551.68 us/op 594.39 us/op 0.93
prioritizePeers score 0:0 att 64-1 sync 4-1 679.58 us/op 730.03 us/op 0.93
array of 16000 items push then shift 1.5643 us/op 1.6575 us/op 0.94
LinkedList of 16000 items push then shift 8.6900 ns/op 9.0870 ns/op 0.96
array of 16000 items push then pop 74.147 ns/op 87.564 ns/op 0.85
LinkedList of 16000 items push then pop 8.3640 ns/op 8.8930 ns/op 0.94
array of 24000 items push then shift 2.3062 us/op 2.4132 us/op 0.96
LinkedList of 24000 items push then shift 8.5570 ns/op 9.0720 ns/op 0.94
array of 24000 items push then pop 90.770 ns/op 120.35 ns/op 0.75
LinkedList of 24000 items push then pop 8.1390 ns/op 8.8380 ns/op 0.92
intersect bitArray bitLen 8 5.3800 ns/op 5.9310 ns/op 0.91
intersect array and set length 8 58.271 ns/op 65.118 ns/op 0.89
intersect bitArray bitLen 128 33.348 ns/op 36.181 ns/op 0.92
intersect array and set length 128 841.89 ns/op 904.72 ns/op 0.93
bitArray.getTrueBitIndexes() bitLen 128 1.4200 us/op 1.6080 us/op 0.88
bitArray.getTrueBitIndexes() bitLen 248 2.4160 us/op 2.6890 us/op 0.90
bitArray.getTrueBitIndexes() bitLen 512 4.5690 us/op 5.2060 us/op 0.88
Buffer.concat 32 items 958.00 ns/op 1.1760 us/op 0.81
Uint8Array.set 32 items 2.6060 us/op 1.9210 us/op 1.36
Set add up to 64 items then delete first 4.0622 us/op 4.3733 us/op 0.93
OrderedSet add up to 64 items then delete first 5.1924 us/op 5.5538 us/op 0.93
Set add up to 64 items then delete last 4.3918 us/op 4.6900 us/op 0.94
OrderedSet add up to 64 items then delete last 5.7617 us/op 5.8771 us/op 0.98
Set add up to 64 items then delete middle 4.4768 us/op 4.8264 us/op 0.93
OrderedSet add up to 64 items then delete middle 6.8429 us/op 7.1851 us/op 0.95
Set add up to 128 items then delete first 8.6983 us/op 9.6574 us/op 0.90
OrderedSet add up to 128 items then delete first 11.092 us/op 13.130 us/op 0.84
Set add up to 128 items then delete last 8.7449 us/op 9.5139 us/op 0.92
OrderedSet add up to 128 items then delete last 11.663 us/op 11.967 us/op 0.97
Set add up to 128 items then delete middle 8.6593 us/op 9.3372 us/op 0.93
OrderedSet add up to 128 items then delete middle 17.152 us/op 17.978 us/op 0.95
Set add up to 256 items then delete first 18.232 us/op 19.790 us/op 0.92
OrderedSet add up to 256 items then delete first 23.716 us/op 28.492 us/op 0.83
Set add up to 256 items then delete last 17.792 us/op 19.309 us/op 0.92
OrderedSet add up to 256 items then delete last 23.789 us/op 24.277 us/op 0.98
Set add up to 256 items then delete middle 17.711 us/op 19.030 us/op 0.93
OrderedSet add up to 256 items then delete middle 44.170 us/op 47.200 us/op 0.94
transfer serialized Status (84 B) 1.6130 us/op 1.7500 us/op 0.92
copy serialized Status (84 B) 1.2230 us/op 1.3280 us/op 0.92
transfer serialized SignedVoluntaryExit (112 B) 1.7750 us/op 1.9950 us/op 0.89
copy serialized SignedVoluntaryExit (112 B) 1.2640 us/op 1.6570 us/op 0.76
transfer serialized ProposerSlashing (416 B) 3.0160 us/op 3.2420 us/op 0.93
copy serialized ProposerSlashing (416 B) 2.2510 us/op 2.9820 us/op 0.75
transfer serialized Attestation (485 B) 2.6270 us/op 3.4460 us/op 0.76
copy serialized Attestation (485 B) 2.5100 us/op 3.1520 us/op 0.80
transfer serialized AttesterSlashing (33232 B) 2.8620 us/op 3.3010 us/op 0.87
copy serialized AttesterSlashing (33232 B) 6.0390 us/op 6.4470 us/op 0.94
transfer serialized Small SignedBeaconBlock (128000 B) 2.9170 us/op 3.4130 us/op 0.85
copy serialized Small SignedBeaconBlock (128000 B) 14.650 us/op 16.319 us/op 0.90
transfer serialized Avg SignedBeaconBlock (200000 B) 3.0090 us/op 3.7740 us/op 0.80
copy serialized Avg SignedBeaconBlock (200000 B) 20.799 us/op 23.907 us/op 0.87
transfer serialized BlobsSidecar (524380 B) 3.1510 us/op 3.8790 us/op 0.81
copy serialized BlobsSidecar (524380 B) 86.382 us/op 189.82 us/op 0.46
transfer serialized Big SignedBeaconBlock (1000000 B) 2.9360 us/op 4.0430 us/op 0.73
copy serialized Big SignedBeaconBlock (1000000 B) 167.99 us/op 159.69 us/op 1.05
pass gossip attestations to forkchoice per slot 3.7240 ms/op 4.6671 ms/op 0.80
forkChoice updateHead vc 100000 bc 64 eq 0 663.34 us/op 700.41 us/op 0.95
forkChoice updateHead vc 600000 bc 64 eq 0 3.9722 ms/op 5.0507 ms/op 0.79
forkChoice updateHead vc 1000000 bc 64 eq 0 6.8565 ms/op 7.3799 ms/op 0.93
forkChoice updateHead vc 600000 bc 320 eq 0 4.2601 ms/op 4.3554 ms/op 0.98
forkChoice updateHead vc 600000 bc 1200 eq 0 4.1423 ms/op 4.4869 ms/op 0.92
forkChoice updateHead vc 600000 bc 7200 eq 0 5.0095 ms/op 5.9469 ms/op 0.84
forkChoice updateHead vc 600000 bc 64 eq 1000 10.696 ms/op 11.548 ms/op 0.93
forkChoice updateHead vc 600000 bc 64 eq 10000 11.229 ms/op 12.239 ms/op 0.92
forkChoice updateHead vc 600000 bc 64 eq 300000 15.310 ms/op 16.697 ms/op 0.92
computeDeltas 500000 validators 300 proto nodes 6.3627 ms/op 7.0034 ms/op 0.91
computeDeltas 500000 validators 1200 proto nodes 6.3184 ms/op 6.9346 ms/op 0.91
computeDeltas 500000 validators 7200 proto nodes 6.2132 ms/op 6.5988 ms/op 0.94
computeDeltas 750000 validators 300 proto nodes 9.2977 ms/op 10.166 ms/op 0.91
computeDeltas 750000 validators 1200 proto nodes 9.4226 ms/op 10.070 ms/op 0.94
computeDeltas 750000 validators 7200 proto nodes 9.5159 ms/op 10.077 ms/op 0.94
computeDeltas 1400000 validators 300 proto nodes 18.305 ms/op 19.209 ms/op 0.95
computeDeltas 1400000 validators 1200 proto nodes 18.286 ms/op 19.126 ms/op 0.96
computeDeltas 1400000 validators 7200 proto nodes 17.812 ms/op 19.163 ms/op 0.93
computeDeltas 2100000 validators 300 proto nodes 26.637 ms/op 28.235 ms/op 0.94
computeDeltas 2100000 validators 1200 proto nodes 26.438 ms/op 27.520 ms/op 0.96
computeDeltas 2100000 validators 7200 proto nodes 26.141 ms/op 28.962 ms/op 0.90
altair processAttestation - 250000 vs - 7PWei normalcase 2.1764 ms/op 2.7419 ms/op 0.79
altair processAttestation - 250000 vs - 7PWei worstcase 3.2082 ms/op 4.1149 ms/op 0.78
altair processAttestation - setStatus - 1/6 committees join 177.13 us/op 206.03 us/op 0.86
altair processAttestation - setStatus - 1/3 committees join 338.23 us/op 375.34 us/op 0.90
altair processAttestation - setStatus - 1/2 committees join 467.88 us/op 522.27 us/op 0.90
altair processAttestation - setStatus - 2/3 committees join 584.09 us/op 672.60 us/op 0.87
altair processAttestation - setStatus - 4/5 committees join 772.19 us/op 885.73 us/op 0.87
altair processAttestation - setStatus - 100% committees join 918.43 us/op 1.0630 ms/op 0.86
altair processBlock - 250000 vs - 7PWei normalcase 8.3953 ms/op 9.4320 ms/op 0.89
altair processBlock - 250000 vs - 7PWei normalcase hashState 33.702 ms/op 40.689 ms/op 0.83
altair processBlock - 250000 vs - 7PWei worstcase 42.939 ms/op 55.116 ms/op 0.78
altair processBlock - 250000 vs - 7PWei worstcase hashState 92.675 ms/op 126.97 ms/op 0.73
phase0 processBlock - 250000 vs - 7PWei normalcase 2.3495 ms/op 4.1865 ms/op 0.56
phase0 processBlock - 250000 vs - 7PWei worstcase 28.280 ms/op 38.385 ms/op 0.74
altair processEth1Data - 250000 vs - 7PWei normalcase 471.33 us/op 803.69 us/op 0.59
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 11.443 us/op 26.507 us/op 0.43
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 59.732 us/op 88.056 us/op 0.68
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 18.016 us/op 32.963 us/op 0.55
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 13.000 us/op 24.755 us/op 0.53
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 176.88 us/op 240.26 us/op 0.74
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.0382 ms/op 1.8372 ms/op 0.57
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.8113 ms/op 2.7300 ms/op 0.66
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.4603 ms/op 2.6109 ms/op 0.56
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.1481 ms/op 5.2719 ms/op 0.60
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.3688 ms/op 3.5065 ms/op 0.68
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 5.2540 ms/op 7.4469 ms/op 0.71
Tree 40 250000 create 336.96 ms/op 782.38 ms/op 0.43
Tree 40 250000 get(125000) 188.69 ns/op 260.80 ns/op 0.72
Tree 40 250000 set(125000) 948.72 ns/op 3.2939 us/op 0.29
Tree 40 250000 toArray() 18.283 ms/op 33.072 ms/op 0.55
Tree 40 250000 iterate all - toArray() + loop 18.358 ms/op 32.464 ms/op 0.57
Tree 40 250000 iterate all - get(i) 64.923 ms/op 87.995 ms/op 0.74
MutableVector 250000 create 13.826 ms/op 19.581 ms/op 0.71
MutableVector 250000 get(125000) 7.1390 ns/op 7.7060 ns/op 0.93
MutableVector 250000 set(125000) 251.45 ns/op 690.85 ns/op 0.36
MutableVector 250000 toArray() 3.0865 ms/op 5.3295 ms/op 0.58
MutableVector 250000 iterate all - toArray() + loop 3.3155 ms/op 5.5741 ms/op 0.59
MutableVector 250000 iterate all - get(i) 1.4788 ms/op 1.6992 ms/op 0.87
Array 250000 create 2.7748 ms/op 4.4676 ms/op 0.62
Array 250000 clone - spread 1.1930 ms/op 1.8013 ms/op 0.66
Array 250000 get(125000) 0.98700 ns/op 1.4220 ns/op 0.69
Array 250000 set(125000) 3.9330 ns/op 6.0350 ns/op 0.65
Array 250000 iterate all - loop 158.95 us/op 192.60 us/op 0.83
effectiveBalanceIncrements clone Uint8Array 300000 24.508 us/op 69.487 us/op 0.35
effectiveBalanceIncrements clone MutableVector 300000 346.00 ns/op 540.00 ns/op 0.64
effectiveBalanceIncrements rw all Uint8Array 300000 192.85 us/op 225.03 us/op 0.86
effectiveBalanceIncrements rw all MutableVector 300000 79.653 ms/op 161.94 ms/op 0.49
phase0 afterProcessEpoch - 250000 vs - 7PWei 113.95 ms/op 138.33 ms/op 0.82
phase0 beforeProcessEpoch - 250000 vs - 7PWei 51.476 ms/op 51.168 ms/op 1.01
altair processEpoch - mainnet_e81889 480.74 ms/op 600.59 ms/op 0.80
mainnet_e81889 - altair beforeProcessEpoch 85.737 ms/op 101.39 ms/op 0.85
mainnet_e81889 - altair processJustificationAndFinalization 13.749 us/op 17.748 us/op 0.77
mainnet_e81889 - altair processInactivityUpdates 6.6666 ms/op 8.5947 ms/op 0.78
mainnet_e81889 - altair processRewardsAndPenalties 53.408 ms/op 66.367 ms/op 0.80
mainnet_e81889 - altair processRegistryUpdates 2.0570 us/op 2.8010 us/op 0.73
mainnet_e81889 - altair processSlashings 511.00 ns/op 502.00 ns/op 1.02
mainnet_e81889 - altair processEth1DataReset 524.00 ns/op 818.00 ns/op 0.64
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.3506 ms/op 1.6723 ms/op 0.81
mainnet_e81889 - altair processSlashingsReset 3.1420 us/op 4.9530 us/op 0.63
mainnet_e81889 - altair processRandaoMixesReset 7.5450 us/op 8.5010 us/op 0.89
mainnet_e81889 - altair processHistoricalRootsUpdate 1.1530 us/op 1.2940 us/op 0.89
mainnet_e81889 - altair processParticipationFlagUpdates 1.9110 us/op 3.7510 us/op 0.51
mainnet_e81889 - altair processSyncCommitteeUpdates 821.00 ns/op 924.00 ns/op 0.89
mainnet_e81889 - altair afterProcessEpoch 119.71 ms/op 131.21 ms/op 0.91
capella processEpoch - mainnet_e217614 2.0234 s/op 3.5070 s/op 0.58
mainnet_e217614 - capella beforeProcessEpoch 466.69 ms/op 750.51 ms/op 0.62
mainnet_e217614 - capella processJustificationAndFinalization 13.182 us/op 35.132 us/op 0.38
mainnet_e217614 - capella processInactivityUpdates 17.080 ms/op 33.453 ms/op 0.51
mainnet_e217614 - capella processRewardsAndPenalties 506.96 ms/op 799.51 ms/op 0.63
mainnet_e217614 - capella processRegistryUpdates 17.743 us/op 46.184 us/op 0.38
mainnet_e217614 - capella processSlashings 539.00 ns/op 1.7450 us/op 0.31
mainnet_e217614 - capella processEth1DataReset 439.00 ns/op 2.1040 us/op 0.21
mainnet_e217614 - capella processEffectiveBalanceUpdates 10.466 ms/op 7.2041 ms/op 1.45
mainnet_e217614 - capella processSlashingsReset 3.1560 us/op 9.3440 us/op 0.34
mainnet_e217614 - capella processRandaoMixesReset 5.3410 us/op 15.891 us/op 0.34
mainnet_e217614 - capella processHistoricalRootsUpdate 723.00 ns/op 1.8200 us/op 0.40
mainnet_e217614 - capella processParticipationFlagUpdates 2.0120 us/op 5.8550 us/op 0.34
mainnet_e217614 - capella afterProcessEpoch 329.19 ms/op 427.01 ms/op 0.77
phase0 processEpoch - mainnet_e58758 424.10 ms/op 714.70 ms/op 0.59
mainnet_e58758 - phase0 beforeProcessEpoch 116.05 ms/op 191.59 ms/op 0.61
mainnet_e58758 - phase0 processJustificationAndFinalization 15.477 us/op 33.445 us/op 0.46
mainnet_e58758 - phase0 processRewardsAndPenalties 60.718 ms/op 62.011 ms/op 0.98
mainnet_e58758 - phase0 processRegistryUpdates 12.949 us/op 24.904 us/op 0.52
mainnet_e58758 - phase0 processSlashings 421.00 ns/op 1.8740 us/op 0.22
mainnet_e58758 - phase0 processEth1DataReset 437.00 ns/op 1.2460 us/op 0.35
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.0657 ms/op 1.7601 ms/op 0.61
mainnet_e58758 - phase0 processSlashingsReset 2.9300 us/op 5.4440 us/op 0.54
mainnet_e58758 - phase0 processRandaoMixesReset 3.7060 us/op 12.913 us/op 0.29
mainnet_e58758 - phase0 processHistoricalRootsUpdate 442.00 ns/op 1.2930 us/op 0.34
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.3860 us/op 7.5960 us/op 0.45
mainnet_e58758 - phase0 afterProcessEpoch 97.332 ms/op 119.59 ms/op 0.81
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.3436 ms/op 1.7889 ms/op 0.75
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.9429 ms/op 2.9182 ms/op 0.67
altair processInactivityUpdates - 250000 normalcase 24.692 ms/op 31.878 ms/op 0.77
altair processInactivityUpdates - 250000 worstcase 24.925 ms/op 33.416 ms/op 0.75
phase0 processRegistryUpdates - 250000 normalcase 8.5020 us/op 22.024 us/op 0.39
phase0 processRegistryUpdates - 250000 badcase_full_deposits 363.99 us/op 723.80 us/op 0.50
phase0 processRegistryUpdates - 250000 worstcase 0.5 136.29 ms/op 217.15 ms/op 0.63
altair processRewardsAndPenalties - 250000 normalcase 67.109 ms/op 89.324 ms/op 0.75
altair processRewardsAndPenalties - 250000 worstcase 68.115 ms/op 85.414 ms/op 0.80
phase0 getAttestationDeltas - 250000 normalcase 8.8704 ms/op 14.978 ms/op 0.59
phase0 getAttestationDeltas - 250000 worstcase 8.9040 ms/op 14.747 ms/op 0.60
phase0 processSlashings - 250000 worstcase 101.12 us/op 149.09 us/op 0.68
altair processSyncCommitteeUpdates - 250000 151.34 ms/op 186.25 ms/op 0.81
BeaconState.hashTreeRoot - No change 343.00 ns/op 820.00 ns/op 0.42
BeaconState.hashTreeRoot - 1 full validator 110.52 us/op 165.36 us/op 0.67
BeaconState.hashTreeRoot - 32 full validator 1.2822 ms/op 1.7205 ms/op 0.75
BeaconState.hashTreeRoot - 512 full validator 15.933 ms/op 21.641 ms/op 0.74
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 161.12 us/op 206.03 us/op 0.78
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.0077 ms/op 2.6467 ms/op 0.76
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 25.851 ms/op 38.020 ms/op 0.68
BeaconState.hashTreeRoot - 1 balances 126.97 us/op 175.68 us/op 0.72
BeaconState.hashTreeRoot - 32 balances 1.3034 ms/op 1.5925 ms/op 0.82
BeaconState.hashTreeRoot - 512 balances 11.173 ms/op 15.784 ms/op 0.71
BeaconState.hashTreeRoot - 250000 balances 197.08 ms/op 242.48 ms/op 0.81
aggregationBits - 2048 els - zipIndexesInBitList 27.152 us/op 48.298 us/op 0.56
byteArrayEquals 32 74.577 ns/op 115.05 ns/op 0.65
Buffer.compare 32 55.156 ns/op 67.474 ns/op 0.82
byteArrayEquals 1024 2.0363 us/op 2.2824 us/op 0.89
Buffer.compare 1024 69.535 ns/op 93.152 ns/op 0.75
byteArrayEquals 16384 32.252 us/op 45.140 us/op 0.71
Buffer.compare 16384 271.31 ns/op 283.07 ns/op 0.96
byteArrayEquals 123687377 245.49 ms/op 319.75 ms/op 0.77
Buffer.compare 123687377 6.1420 ms/op 12.145 ms/op 0.51
byteArrayEquals 32 - diff last byte 73.008 ns/op 92.297 ns/op 0.79
Buffer.compare 32 - diff last byte 55.762 ns/op 73.255 ns/op 0.76
byteArrayEquals 1024 - diff last byte 2.0277 us/op 2.5725 us/op 0.79
Buffer.compare 1024 - diff last byte 71.954 ns/op 86.800 ns/op 0.83
byteArrayEquals 16384 - diff last byte 32.347 us/op 37.036 us/op 0.87
Buffer.compare 16384 - diff last byte 276.04 ns/op 300.36 ns/op 0.92
byteArrayEquals 123687377 - diff last byte 243.54 ms/op 317.83 ms/op 0.77
Buffer.compare 123687377 - diff last byte 6.1111 ms/op 13.285 ms/op 0.46
byteArrayEquals 32 - random bytes 5.2240 ns/op 8.5920 ns/op 0.61
Buffer.compare 32 - random bytes 60.491 ns/op 87.609 ns/op 0.69
byteArrayEquals 1024 - random bytes 5.1530 ns/op 8.7870 ns/op 0.59
Buffer.compare 1024 - random bytes 59.669 ns/op 75.831 ns/op 0.79
byteArrayEquals 16384 - random bytes 5.1570 ns/op 8.7550 ns/op 0.59
Buffer.compare 16384 - random bytes 59.781 ns/op 76.354 ns/op 0.78
byteArrayEquals 123687377 - random bytes 8.4200 ns/op 21.340 ns/op 0.39
Buffer.compare 123687377 - random bytes 62.920 ns/op 90.070 ns/op 0.70
regular array get 100000 times 43.811 us/op 65.254 us/op 0.67
wrappedArray get 100000 times 43.774 us/op 59.678 us/op 0.73
arrayWithProxy get 100000 times 14.002 ms/op 16.892 ms/op 0.83
ssz.Root.equals 53.199 ns/op 64.385 ns/op 0.83
byteArrayEquals 52.258 ns/op 63.602 ns/op 0.82
Buffer.compare 10.699 ns/op 14.672 ns/op 0.73
shuffle list - 16384 els 8.4323 ms/op 9.5762 ms/op 0.88
shuffle list - 250000 els 122.61 ms/op 145.73 ms/op 0.84
processSlot - 1 slots 15.840 us/op 26.589 us/op 0.60
processSlot - 32 slots 3.4707 ms/op 5.6918 ms/op 0.61
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 58.287 ms/op 72.778 ms/op 0.80
getCommitteeAssignments - req 1 vs - 250000 vc 2.6439 ms/op 2.9460 ms/op 0.90
getCommitteeAssignments - req 100 vs - 250000 vc 3.8280 ms/op 4.1339 ms/op 0.93
getCommitteeAssignments - req 1000 vs - 250000 vc 4.1767 ms/op 4.7432 ms/op 0.88
findModifiedValidators - 10000 modified validators 334.88 ms/op 483.54 ms/op 0.69
findModifiedValidators - 1000 modified validators 213.18 ms/op 311.92 ms/op 0.68
findModifiedValidators - 100 modified validators 183.19 ms/op 305.58 ms/op 0.60
findModifiedValidators - 10 modified validators 180.30 ms/op 245.66 ms/op 0.73
findModifiedValidators - 1 modified validators 185.12 ms/op 252.45 ms/op 0.73
findModifiedValidators - no difference 196.47 ms/op 227.26 ms/op 0.86
compare ViewDUs 4.3856 s/op 5.5458 s/op 0.79
compare each validator Uint8Array 1.2599 s/op 2.0277 s/op 0.62
compare ViewDU to Uint8Array 1.0430 s/op 1.5043 s/op 0.69
migrate state 1000000 validators, 24 modified, 0 new 755.19 ms/op 871.52 ms/op 0.87
migrate state 1000000 validators, 1700 modified, 1000 new 1.0440 s/op 1.3018 s/op 0.80
migrate state 1000000 validators, 3400 modified, 2000 new 1.2799 s/op 1.5074 s/op 0.85
migrate state 1500000 validators, 24 modified, 0 new 766.02 ms/op 881.46 ms/op 0.87
migrate state 1500000 validators, 1700 modified, 1000 new 1.0492 s/op 1.4174 s/op 0.74
migrate state 1500000 validators, 3400 modified, 2000 new 1.2545 s/op 1.6414 s/op 0.76
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.3400 ns/op 7.7500 ns/op 0.56
state getBlockRootAtSlot - 250000 vs - 7PWei 700.78 ns/op 1.2254 us/op 0.57
computeProposers - vc 250000 9.6561 ms/op 13.980 ms/op 0.69
computeEpochShuffling - vc 250000 125.91 ms/op 147.31 ms/op 0.85
getNextSyncCommittee - vc 250000 151.15 ms/op 211.70 ms/op 0.71
computeSigningRoot for AttestationData 27.730 us/op 37.229 us/op 0.74
hash AttestationData serialized data then Buffer.toString(base64) 2.2857 us/op 2.7138 us/op 0.84
toHexString serialized data 1.0582 us/op 1.6882 us/op 0.63
Buffer.toString(base64) 222.33 ns/op 291.46 ns/op 0.76

by benchmarkbot/action

Copy link

codecov bot commented Apr 12, 2024

Codecov Report

Merging #6661 (3225fea) into unstable (669239b) will not change coverage.
Report is 1 commits behind head on unstable.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #6661   +/-   ##
=========================================
  Coverage     61.81%   61.81%           
=========================================
  Files           556      556           
  Lines         59050    59050           
  Branches       1898     1898           
=========================================
  Hits          36502    36502           
  Misses        22505    22505           
  Partials         43       43           

@nflaig nflaig merged commit 2dae605 into unstable Apr 15, 2024
21 checks passed
@nflaig nflaig deleted the nflaig/publish-block-log branch April 15, 2024 21:13
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.18.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