Skip to content

Commit

Permalink
chore: print graffiti when producing beacon block body (#7303)
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig authored Dec 16, 2024
1 parent ba1d41b commit 3f3c7fc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ export async function produceBlockBody<T extends BlockType>(
: await produceCommonBlockBody.call(this, blockType, currentState, blockAttr);

const {
graffiti,
attestations,
deposits,
voluntaryExits,
Expand All @@ -153,6 +154,7 @@ export async function produceBlockBody<T extends BlockType>(
} = blockBody;

Object.assign(logMeta, {
graffiti,
attestations: attestations.length,
deposits: deposits.length,
voluntaryExits: voluntaryExits.length,
Expand Down

1 comment on commit 3f3c7fc

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ 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: 3f3c7fc Previous: ba1d41b Ratio
Buffer.compare 123687377 13.011 ms/op 4.0266 ms/op 3.23
Full benchmark results
Benchmark suite Current: 3f3c7fc Previous: ba1d41b Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.9453 ms/op 1.7607 ms/op 1.10
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 48.436 us/op 37.655 us/op 1.29
BLS verify - blst 814.30 us/op 876.12 us/op 0.93
BLS verifyMultipleSignatures 3 - blst 1.2736 ms/op 1.6657 ms/op 0.76
BLS verifyMultipleSignatures 8 - blst 1.7629 ms/op 2.1395 ms/op 0.82
BLS verifyMultipleSignatures 32 - blst 4.9195 ms/op 4.4744 ms/op 1.10
BLS verifyMultipleSignatures 64 - blst 9.1007 ms/op 8.1407 ms/op 1.12
BLS verifyMultipleSignatures 128 - blst 17.544 ms/op 15.629 ms/op 1.12
BLS deserializing 10000 signatures 684.63 ms/op 565.57 ms/op 1.21
BLS deserializing 100000 signatures 7.0176 s/op 5.9869 s/op 1.17
BLS verifyMultipleSignatures - same message - 3 - blst 1.0128 ms/op 913.33 us/op 1.11
BLS verifyMultipleSignatures - same message - 8 - blst 1.1103 ms/op 1.0418 ms/op 1.07
BLS verifyMultipleSignatures - same message - 32 - blst 1.8408 ms/op 1.6477 ms/op 1.12
BLS verifyMultipleSignatures - same message - 64 - blst 2.7259 ms/op 2.4209 ms/op 1.13
BLS verifyMultipleSignatures - same message - 128 - blst 4.5660 ms/op 4.1633 ms/op 1.10
BLS aggregatePubkeys 32 - blst 20.070 us/op 16.818 us/op 1.19
BLS aggregatePubkeys 128 - blst 71.159 us/op 58.227 us/op 1.22
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 59.515 ms/op 90.254 ms/op 0.66
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 56.642 ms/op 60.488 ms/op 0.94
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 46.439 ms/op 36.256 ms/op 1.28
getSlashingsAndExits - default max 133.66 us/op 64.382 us/op 2.08
getSlashingsAndExits - 2k 302.01 us/op 220.26 us/op 1.37
proposeBlockBody type=full, size=empty 6.7270 ms/op 4.8843 ms/op 1.38
isKnown best case - 1 super set check 446.00 ns/op 466.00 ns/op 0.96
isKnown normal case - 2 super set checks 449.00 ns/op 460.00 ns/op 0.98
isKnown worse case - 16 super set checks 400.00 ns/op 460.00 ns/op 0.87
InMemoryCheckpointStateCache - add get delete 2.9730 us/op 2.4720 us/op 1.20
validate api signedAggregateAndProof - struct 1.6485 ms/op 1.7801 ms/op 0.93
validate gossip signedAggregateAndProof - struct 1.5351 ms/op 1.8973 ms/op 0.81
batch validate gossip attestation - vc 640000 - chunk 32 138.41 us/op 116.40 us/op 1.19
batch validate gossip attestation - vc 640000 - chunk 64 133.43 us/op 103.97 us/op 1.28
batch validate gossip attestation - vc 640000 - chunk 128 120.31 us/op 93.027 us/op 1.29
batch validate gossip attestation - vc 640000 - chunk 256 118.27 us/op 90.153 us/op 1.31
pickEth1Vote - no votes 1.2235 ms/op 888.11 us/op 1.38
pickEth1Vote - max votes 7.2086 ms/op 4.4351 ms/op 1.63
pickEth1Vote - Eth1Data hashTreeRoot value x2048 14.186 ms/op 9.5468 ms/op 1.49
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 22.031 ms/op 12.810 ms/op 1.72
pickEth1Vote - Eth1Data fastSerialize value x2048 553.52 us/op 380.73 us/op 1.45
pickEth1Vote - Eth1Data fastSerialize tree x2048 3.0020 ms/op 1.9922 ms/op 1.51
bytes32 toHexString 518.00 ns/op 609.00 ns/op 0.85
bytes32 Buffer.toString(hex) 261.00 ns/op 430.00 ns/op 0.61
bytes32 Buffer.toString(hex) from Uint8Array 450.00 ns/op 526.00 ns/op 0.86
bytes32 Buffer.toString(hex) + 0x 276.00 ns/op 426.00 ns/op 0.65
Object access 1 prop 0.17200 ns/op 0.32000 ns/op 0.54
Map access 1 prop 0.13400 ns/op 0.32200 ns/op 0.42
Object get x1000 6.5160 ns/op 5.5120 ns/op 1.18
Map get x1000 7.1800 ns/op 6.1200 ns/op 1.17
Object set x1000 49.077 ns/op 22.518 ns/op 2.18
Map set x1000 37.625 ns/op 18.814 ns/op 2.00
Return object 10000 times 0.37560 ns/op 0.29580 ns/op 1.27
Throw Error 10000 times 3.9959 us/op 2.6289 us/op 1.52
toHex 186.71 ns/op 112.70 ns/op 1.66
Buffer.from 178.01 ns/op 105.06 ns/op 1.69
shared Buffer 96.558 ns/op 70.159 ns/op 1.38
fastMsgIdFn sha256 / 200 bytes 2.3740 us/op 2.0130 us/op 1.18
fastMsgIdFn h32 xxhash / 200 bytes 305.00 ns/op 401.00 ns/op 0.76
fastMsgIdFn h64 xxhash / 200 bytes 303.00 ns/op 437.00 ns/op 0.69
fastMsgIdFn sha256 / 1000 bytes 8.0330 us/op 5.8980 us/op 1.36
fastMsgIdFn h32 xxhash / 1000 bytes 464.00 ns/op 521.00 ns/op 0.89
fastMsgIdFn h64 xxhash / 1000 bytes 403.00 ns/op 507.00 ns/op 0.79
fastMsgIdFn sha256 / 10000 bytes 74.899 us/op 49.368 us/op 1.52
fastMsgIdFn h32 xxhash / 10000 bytes 2.0260 us/op 1.8700 us/op 1.08
fastMsgIdFn h64 xxhash / 10000 bytes 1.3030 us/op 1.3160 us/op 0.99
send data - 1000 256B messages 17.909 ms/op 9.4730 ms/op 1.89
send data - 1000 512B messages 21.663 ms/op 12.599 ms/op 1.72
send data - 1000 1024B messages 31.067 ms/op 20.328 ms/op 1.53
send data - 1000 1200B messages 33.374 ms/op 21.737 ms/op 1.54
send data - 1000 2048B messages 37.385 ms/op 28.768 ms/op 1.30
send data - 1000 4096B messages 39.638 ms/op 26.073 ms/op 1.52
send data - 1000 16384B messages 82.459 ms/op 60.155 ms/op 1.37
send data - 1000 65536B messages 268.37 ms/op 221.23 ms/op 1.21
enrSubnets - fastDeserialize 64 bits 1.6500 us/op 1.1630 us/op 1.42
enrSubnets - ssz BitVector 64 bits 544.00 ns/op 495.00 ns/op 1.10
enrSubnets - fastDeserialize 4 bits 236.00 ns/op 316.00 ns/op 0.75
enrSubnets - ssz BitVector 4 bits 503.00 ns/op 494.00 ns/op 1.02
prioritizePeers score -10:0 att 32-0.1 sync 2-0 225.29 us/op 141.74 us/op 1.59
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 207.38 us/op 118.03 us/op 1.76
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 397.31 us/op 248.67 us/op 1.60
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 474.68 us/op 480.84 us/op 0.99
prioritizePeers score 0:0 att 64-1 sync 4-1 936.33 us/op 651.16 us/op 1.44
array of 16000 items push then shift 1.8072 us/op 1.2920 us/op 1.40
LinkedList of 16000 items push then shift 8.9770 ns/op 6.3350 ns/op 1.42
array of 16000 items push then pop 163.19 ns/op 78.048 ns/op 2.09
LinkedList of 16000 items push then pop 9.4740 ns/op 6.2110 ns/op 1.53
array of 24000 items push then shift 2.7610 us/op 1.8845 us/op 1.47
LinkedList of 24000 items push then shift 8.4280 ns/op 6.3760 ns/op 1.32
array of 24000 items push then pop 213.00 ns/op 108.27 ns/op 1.97
LinkedList of 24000 items push then pop 8.0490 ns/op 6.3100 ns/op 1.28
intersect bitArray bitLen 8 7.0020 ns/op 5.3150 ns/op 1.32
intersect array and set length 8 75.018 ns/op 40.612 ns/op 1.85
intersect bitArray bitLen 128 32.914 ns/op 26.401 ns/op 1.25
intersect array and set length 128 839.00 ns/op 591.42 ns/op 1.42
bitArray.getTrueBitIndexes() bitLen 128 2.5900 us/op 2.2920 us/op 1.13
bitArray.getTrueBitIndexes() bitLen 248 3.6620 us/op 3.5980 us/op 1.02
bitArray.getTrueBitIndexes() bitLen 512 8.2220 us/op 6.9360 us/op 1.19
Buffer.concat 32 items 1.0470 us/op 1.0130 us/op 1.03
Uint8Array.set 32 items 1.8890 us/op 1.5590 us/op 1.21
Buffer.copy 2.0750 us/op 1.8520 us/op 1.12
Uint8Array.set - with subarray 3.4460 us/op 2.3250 us/op 1.48
Uint8Array.set - without subarray 2.1170 us/op 1.6390 us/op 1.29
getUint32 - dataview 333.00 ns/op 398.00 ns/op 0.84
getUint32 - manual 289.00 ns/op 336.00 ns/op 0.86
Set add up to 64 items then delete first 2.9872 us/op 1.7544 us/op 1.70
OrderedSet add up to 64 items then delete first 4.5085 us/op 2.7372 us/op 1.65
Set add up to 64 items then delete last 3.2691 us/op 2.0175 us/op 1.62
OrderedSet add up to 64 items then delete last 4.4386 us/op 3.1587 us/op 1.41
Set add up to 64 items then delete middle 3.2224 us/op 2.0466 us/op 1.57
OrderedSet add up to 64 items then delete middle 6.5382 us/op 4.5461 us/op 1.44
Set add up to 128 items then delete first 6.9919 us/op 3.9369 us/op 1.78
OrderedSet add up to 128 items then delete first 11.031 us/op 5.8804 us/op 1.88
Set add up to 128 items then delete last 5.7623 us/op 3.9299 us/op 1.47
OrderedSet add up to 128 items then delete last 8.3002 us/op 6.1137 us/op 1.36
Set add up to 128 items then delete middle 6.8995 us/op 3.9181 us/op 1.76
OrderedSet add up to 128 items then delete middle 17.840 us/op 11.581 us/op 1.54
Set add up to 256 items then delete first 14.027 us/op 7.7004 us/op 1.82
OrderedSet add up to 256 items then delete first 20.150 us/op 11.595 us/op 1.74
Set add up to 256 items then delete last 13.333 us/op 7.6905 us/op 1.73
OrderedSet add up to 256 items then delete last 18.946 us/op 12.045 us/op 1.57
Set add up to 256 items then delete middle 10.781 us/op 7.6572 us/op 1.41
OrderedSet add up to 256 items then delete middle 46.132 us/op 34.531 us/op 1.34
transfer serialized Status (84 B) 1.4760 us/op 1.4910 us/op 0.99
copy serialized Status (84 B) 1.2600 us/op 1.3010 us/op 0.97
transfer serialized SignedVoluntaryExit (112 B) 1.6160 us/op 1.6620 us/op 0.97
copy serialized SignedVoluntaryExit (112 B) 1.3040 us/op 1.3670 us/op 0.95
transfer serialized ProposerSlashing (416 B) 2.6250 us/op 2.1740 us/op 1.21
copy serialized ProposerSlashing (416 B) 1.8840 us/op 2.2130 us/op 0.85
transfer serialized Attestation (485 B) 2.2690 us/op 1.9420 us/op 1.17
copy serialized Attestation (485 B) 1.5390 us/op 1.8440 us/op 0.83
transfer serialized AttesterSlashing (33232 B) 1.9020 us/op 2.0390 us/op 0.93
copy serialized AttesterSlashing (33232 B) 6.7900 us/op 4.1490 us/op 1.64
transfer serialized Small SignedBeaconBlock (128000 B) 3.2390 us/op 2.5710 us/op 1.26
copy serialized Small SignedBeaconBlock (128000 B) 24.086 us/op 9.2250 us/op 2.61
transfer serialized Avg SignedBeaconBlock (200000 B) 3.8490 us/op 2.7750 us/op 1.39
copy serialized Avg SignedBeaconBlock (200000 B) 32.459 us/op 12.577 us/op 2.58
transfer serialized BlobsSidecar (524380 B) 4.8510 us/op 3.2220 us/op 1.51
copy serialized BlobsSidecar (524380 B) 124.48 us/op 68.508 us/op 1.82
transfer serialized Big SignedBeaconBlock (1000000 B) 3.3070 us/op 3.4240 us/op 0.97
copy serialized Big SignedBeaconBlock (1000000 B) 410.05 us/op 199.75 us/op 2.05
pass gossip attestations to forkchoice per slot 2.9513 ms/op 2.2961 ms/op 1.29
forkChoice updateHead vc 100000 bc 64 eq 0 471.08 us/op 355.99 us/op 1.32
forkChoice updateHead vc 600000 bc 64 eq 0 2.9839 ms/op 2.0388 ms/op 1.46
forkChoice updateHead vc 1000000 bc 64 eq 0 5.5158 ms/op 3.8750 ms/op 1.42
forkChoice updateHead vc 600000 bc 320 eq 0 3.6289 ms/op 2.3905 ms/op 1.52
forkChoice updateHead vc 600000 bc 1200 eq 0 3.2812 ms/op 2.0613 ms/op 1.59
forkChoice updateHead vc 600000 bc 7200 eq 0 3.7499 ms/op 2.6537 ms/op 1.41
forkChoice updateHead vc 600000 bc 64 eq 1000 10.967 ms/op 8.4602 ms/op 1.30
forkChoice updateHead vc 600000 bc 64 eq 10000 11.067 ms/op 9.2299 ms/op 1.20
forkChoice updateHead vc 600000 bc 64 eq 300000 16.984 ms/op 11.265 ms/op 1.51
computeDeltas 500000 validators 300 proto nodes 4.7920 ms/op 3.1993 ms/op 1.50
computeDeltas 500000 validators 1200 proto nodes 5.1763 ms/op 3.2458 ms/op 1.59
computeDeltas 500000 validators 7200 proto nodes 4.4971 ms/op 3.1807 ms/op 1.41
computeDeltas 750000 validators 300 proto nodes 6.3554 ms/op 4.8855 ms/op 1.30
computeDeltas 750000 validators 1200 proto nodes 6.1283 ms/op 4.8379 ms/op 1.27
computeDeltas 750000 validators 7200 proto nodes 6.1833 ms/op 4.7751 ms/op 1.29
computeDeltas 1400000 validators 300 proto nodes 11.724 ms/op 8.6338 ms/op 1.36
computeDeltas 1400000 validators 1200 proto nodes 11.768 ms/op 8.6900 ms/op 1.35
computeDeltas 1400000 validators 7200 proto nodes 11.487 ms/op 8.5877 ms/op 1.34
computeDeltas 2100000 validators 300 proto nodes 17.272 ms/op 13.422 ms/op 1.29
computeDeltas 2100000 validators 1200 proto nodes 17.206 ms/op 13.574 ms/op 1.27
computeDeltas 2100000 validators 7200 proto nodes 17.326 ms/op 13.370 ms/op 1.30
altair processAttestation - 250000 vs - 7PWei normalcase 1.7105 ms/op 1.4296 ms/op 1.20
altair processAttestation - 250000 vs - 7PWei worstcase 2.5574 ms/op 2.1342 ms/op 1.20
altair processAttestation - setStatus - 1/6 committees join 86.902 us/op 64.088 us/op 1.36
altair processAttestation - setStatus - 1/3 committees join 171.61 us/op 143.60 us/op 1.20
altair processAttestation - setStatus - 1/2 committees join 238.90 us/op 176.08 us/op 1.36
altair processAttestation - setStatus - 2/3 committees join 313.54 us/op 235.72 us/op 1.33
altair processAttestation - setStatus - 4/5 committees join 450.96 us/op 368.62 us/op 1.22
altair processAttestation - setStatus - 100% committees join 551.55 us/op 426.67 us/op 1.29
altair processBlock - 250000 vs - 7PWei normalcase 4.9463 ms/op 3.1448 ms/op 1.57
altair processBlock - 250000 vs - 7PWei normalcase hashState 25.690 ms/op 25.216 ms/op 1.02
altair processBlock - 250000 vs - 7PWei worstcase 33.415 ms/op 37.172 ms/op 0.90
altair processBlock - 250000 vs - 7PWei worstcase hashState 70.013 ms/op 72.035 ms/op 0.97
phase0 processBlock - 250000 vs - 7PWei normalcase 1.7596 ms/op 1.7886 ms/op 0.98
phase0 processBlock - 250000 vs - 7PWei worstcase 19.511 ms/op 21.866 ms/op 0.89
altair processEth1Data - 250000 vs - 7PWei normalcase 307.35 us/op 282.91 us/op 1.09
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 4.7100 us/op 5.1590 us/op 0.91
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 26.489 us/op 17.515 us/op 1.51
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 8.3200 us/op 8.5710 us/op 0.97
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 5.0650 us/op 5.4520 us/op 0.93
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 110.86 us/op 64.321 us/op 1.72
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.1054 ms/op 1.3461 ms/op 0.82
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.6203 ms/op 1.2180 ms/op 1.33
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.5141 ms/op 1.1567 ms/op 1.31
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.7018 ms/op 2.8185 ms/op 1.31
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.5888 ms/op 1.0497 ms/op 1.51
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.7072 ms/op 2.5519 ms/op 1.45
Tree 40 250000 create 197.67 ms/op 184.58 ms/op 1.07
Tree 40 250000 get(125000) 141.57 ns/op 113.19 ns/op 1.25
Tree 40 250000 set(125000) 599.53 ns/op 562.02 ns/op 1.07
Tree 40 250000 toArray() 14.634 ms/op 9.7692 ms/op 1.50
Tree 40 250000 iterate all - toArray() + loop 14.958 ms/op 9.8879 ms/op 1.51
Tree 40 250000 iterate all - get(i) 49.764 ms/op 40.862 ms/op 1.22
Array 250000 create 2.7036 ms/op 2.3547 ms/op 1.15
Array 250000 clone - spread 1.3480 ms/op 1.3536 ms/op 1.00
Array 250000 get(125000) 0.39500 ns/op 0.57700 ns/op 0.68
Array 250000 set(125000) 0.40900 ns/op 0.58300 ns/op 0.70
Array 250000 iterate all - loop 79.203 us/op 77.369 us/op 1.02
phase0 afterProcessEpoch - 250000 vs - 7PWei 49.315 ms/op 41.600 ms/op 1.19
Array.fill - length 1000000 3.5019 ms/op 2.6117 ms/op 1.34
Array push - length 1000000 16.098 ms/op 14.089 ms/op 1.14
Array.get 0.26376 ns/op 0.23607 ns/op 1.12
Uint8Array.get 0.42329 ns/op 0.31300 ns/op 1.35
phase0 beforeProcessEpoch - 250000 vs - 7PWei 17.563 ms/op 17.116 ms/op 1.03
altair processEpoch - mainnet_e81889 272.29 ms/op 268.07 ms/op 1.02
mainnet_e81889 - altair beforeProcessEpoch 21.305 ms/op 16.048 ms/op 1.33
mainnet_e81889 - altair processJustificationAndFinalization 13.498 us/op 5.7720 us/op 2.34
mainnet_e81889 - altair processInactivityUpdates 4.9620 ms/op 3.8625 ms/op 1.28
mainnet_e81889 - altair processRewardsAndPenalties 43.876 ms/op 60.311 ms/op 0.73
mainnet_e81889 - altair processRegistryUpdates 1.7000 us/op 1.8850 us/op 0.90
mainnet_e81889 - altair processSlashings 397.00 ns/op 737.00 ns/op 0.54
mainnet_e81889 - altair processEth1DataReset 314.00 ns/op 714.00 ns/op 0.44
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.4375 ms/op 1.5505 ms/op 0.93
mainnet_e81889 - altair processSlashingsReset 2.7220 us/op 2.4260 us/op 1.12
mainnet_e81889 - altair processRandaoMixesReset 3.4220 us/op 2.9320 us/op 1.17
mainnet_e81889 - altair processHistoricalRootsUpdate 321.00 ns/op 708.00 ns/op 0.45
mainnet_e81889 - altair processParticipationFlagUpdates 1.6530 us/op 1.8930 us/op 0.87
mainnet_e81889 - altair processSyncCommitteeUpdates 244.00 ns/op 436.00 ns/op 0.56
mainnet_e81889 - altair afterProcessEpoch 52.908 ms/op 42.181 ms/op 1.25
capella processEpoch - mainnet_e217614 1.0185 s/op 985.13 ms/op 1.03
mainnet_e217614 - capella beforeProcessEpoch 69.451 ms/op 65.607 ms/op 1.06
mainnet_e217614 - capella processJustificationAndFinalization 15.343 us/op 7.9580 us/op 1.93
mainnet_e217614 - capella processInactivityUpdates 21.809 ms/op 14.102 ms/op 1.55
mainnet_e217614 - capella processRewardsAndPenalties 217.83 ms/op 223.21 ms/op 0.98
mainnet_e217614 - capella processRegistryUpdates 12.888 us/op 11.436 us/op 1.13
mainnet_e217614 - capella processSlashings 384.00 ns/op 727.00 ns/op 0.53
mainnet_e217614 - capella processEth1DataReset 317.00 ns/op 709.00 ns/op 0.45
mainnet_e217614 - capella processEffectiveBalanceUpdates 13.744 ms/op 12.206 ms/op 1.13
mainnet_e217614 - capella processSlashingsReset 6.0720 us/op 3.4070 us/op 1.78
mainnet_e217614 - capella processRandaoMixesReset 5.4050 us/op 7.6770 us/op 0.70
mainnet_e217614 - capella processHistoricalRootsUpdate 551.00 ns/op 825.00 ns/op 0.67
mainnet_e217614 - capella processParticipationFlagUpdates 2.8770 us/op 2.0430 us/op 1.41
mainnet_e217614 - capella afterProcessEpoch 125.19 ms/op 101.19 ms/op 1.24
phase0 processEpoch - mainnet_e58758 391.30 ms/op 319.24 ms/op 1.23
mainnet_e58758 - phase0 beforeProcessEpoch 84.056 ms/op 81.139 ms/op 1.04
mainnet_e58758 - phase0 processJustificationAndFinalization 16.364 us/op 14.665 us/op 1.12
mainnet_e58758 - phase0 processRewardsAndPenalties 30.518 ms/op 29.741 ms/op 1.03
mainnet_e58758 - phase0 processRegistryUpdates 11.783 us/op 6.7520 us/op 1.75
mainnet_e58758 - phase0 processSlashings 674.00 ns/op 760.00 ns/op 0.89
mainnet_e58758 - phase0 processEth1DataReset 453.00 ns/op 702.00 ns/op 0.65
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.3132 ms/op 1.4134 ms/op 0.93
mainnet_e58758 - phase0 processSlashingsReset 2.6080 us/op 5.0550 us/op 0.52
mainnet_e58758 - phase0 processRandaoMixesReset 5.6980 us/op 3.6870 us/op 1.55
mainnet_e58758 - phase0 processHistoricalRootsUpdate 441.00 ns/op 726.00 ns/op 0.61
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.1210 us/op 3.2430 us/op 1.27
mainnet_e58758 - phase0 afterProcessEpoch 45.193 ms/op 35.798 ms/op 1.26
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.5572 ms/op 1.0347 ms/op 1.51
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 2.4075 ms/op 1.7198 ms/op 1.40
altair processInactivityUpdates - 250000 normalcase 17.453 ms/op 16.636 ms/op 1.05
altair processInactivityUpdates - 250000 worstcase 18.550 ms/op 15.536 ms/op 1.19
phase0 processRegistryUpdates - 250000 normalcase 7.8640 us/op 6.1970 us/op 1.27
phase0 processRegistryUpdates - 250000 badcase_full_deposits 321.33 us/op 170.59 us/op 1.88
phase0 processRegistryUpdates - 250000 worstcase 0.5 132.89 ms/op 116.59 ms/op 1.14
altair processRewardsAndPenalties - 250000 normalcase 41.308 ms/op 42.943 ms/op 0.96
altair processRewardsAndPenalties - 250000 worstcase 39.590 ms/op 34.620 ms/op 1.14
phase0 getAttestationDeltas - 250000 normalcase 9.2636 ms/op 6.6629 ms/op 1.39
phase0 getAttestationDeltas - 250000 worstcase 8.1551 ms/op 5.8653 ms/op 1.39
phase0 processSlashings - 250000 worstcase 126.80 us/op 96.582 us/op 1.31
altair processSyncCommitteeUpdates - 250000 146.14 ms/op 99.577 ms/op 1.47
BeaconState.hashTreeRoot - No change 250.00 ns/op 424.00 ns/op 0.59
BeaconState.hashTreeRoot - 1 full validator 112.90 us/op 82.275 us/op 1.37
BeaconState.hashTreeRoot - 32 full validator 1.1443 ms/op 941.80 us/op 1.22
BeaconState.hashTreeRoot - 512 full validator 12.774 ms/op 7.8018 ms/op 1.64
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 146.90 us/op 118.32 us/op 1.24
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.0323 ms/op 1.4421 ms/op 1.41
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 24.625 ms/op 20.079 ms/op 1.23
BeaconState.hashTreeRoot - 1 balances 145.14 us/op 87.438 us/op 1.66
BeaconState.hashTreeRoot - 32 balances 1.3624 ms/op 832.97 us/op 1.64
BeaconState.hashTreeRoot - 512 balances 11.255 ms/op 6.2785 ms/op 1.79
BeaconState.hashTreeRoot - 250000 balances 207.42 ms/op 140.30 ms/op 1.48
aggregationBits - 2048 els - zipIndexesInBitList 40.683 us/op 19.622 us/op 2.07
byteArrayEquals 32 56.546 ns/op 48.282 ns/op 1.17
Buffer.compare 32 19.899 ns/op 16.047 ns/op 1.24
byteArrayEquals 1024 1.6589 us/op 1.2744 us/op 1.30
Buffer.compare 1024 29.301 ns/op 24.772 ns/op 1.18
byteArrayEquals 16384 25.778 us/op 20.267 us/op 1.27
Buffer.compare 16384 187.86 ns/op 168.22 ns/op 1.12
byteArrayEquals 123687377 202.30 ms/op 152.88 ms/op 1.32
Buffer.compare 123687377 13.011 ms/op 4.0266 ms/op 3.23
byteArrayEquals 32 - diff last byte 59.273 ns/op 47.470 ns/op 1.25
Buffer.compare 32 - diff last byte 21.859 ns/op 16.177 ns/op 1.35
byteArrayEquals 1024 - diff last byte 1.7288 us/op 1.2578 us/op 1.37
Buffer.compare 1024 - diff last byte 32.889 ns/op 24.941 ns/op 1.32
byteArrayEquals 16384 - diff last byte 27.187 us/op 20.101 us/op 1.35
Buffer.compare 16384 - diff last byte 225.46 ns/op 198.15 ns/op 1.14
byteArrayEquals 123687377 - diff last byte 214.60 ms/op 151.42 ms/op 1.42
Buffer.compare 123687377 - diff last byte 9.7327 ms/op 4.7521 ms/op 2.05
byteArrayEquals 32 - random bytes 7.1170 ns/op 4.9890 ns/op 1.43
Buffer.compare 32 - random bytes 21.389 ns/op 16.173 ns/op 1.32
byteArrayEquals 1024 - random bytes 5.4850 ns/op 4.9500 ns/op 1.11
Buffer.compare 1024 - random bytes 22.885 ns/op 16.049 ns/op 1.43
byteArrayEquals 16384 - random bytes 5.4990 ns/op 4.8930 ns/op 1.12
Buffer.compare 16384 - random bytes 21.201 ns/op 16.047 ns/op 1.32
byteArrayEquals 123687377 - random bytes 6.6700 ns/op 7.8700 ns/op 0.85
Buffer.compare 123687377 - random bytes 22.810 ns/op 18.950 ns/op 1.20
regular array get 100000 times 35.041 us/op 31.092 us/op 1.13
wrappedArray get 100000 times 34.214 us/op 31.111 us/op 1.10
arrayWithProxy get 100000 times 13.807 ms/op 9.8035 ms/op 1.41
ssz.Root.equals 47.193 ns/op 40.307 ns/op 1.17
byteArrayEquals 46.188 ns/op 42.621 ns/op 1.08
Buffer.compare 10.902 ns/op 9.2320 ns/op 1.18
processSlot - 1 slots 13.926 us/op 15.588 us/op 0.89
processSlot - 32 slots 2.7248 ms/op 2.0459 ms/op 1.33
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 40.298 ms/op 37.009 ms/op 1.09
getCommitteeAssignments - req 1 vs - 250000 vc 2.2338 ms/op 1.8106 ms/op 1.23
getCommitteeAssignments - req 100 vs - 250000 vc 4.3467 ms/op 3.4733 ms/op 1.25
getCommitteeAssignments - req 1000 vs - 250000 vc 4.7131 ms/op 3.7418 ms/op 1.26
findModifiedValidators - 10000 modified validators 274.31 ms/op 230.59 ms/op 1.19
findModifiedValidators - 1000 modified validators 209.03 ms/op 148.75 ms/op 1.41
findModifiedValidators - 100 modified validators 221.51 ms/op 142.53 ms/op 1.55
findModifiedValidators - 10 modified validators 228.12 ms/op 140.58 ms/op 1.62
findModifiedValidators - 1 modified validators 186.38 ms/op 131.24 ms/op 1.42
findModifiedValidators - no difference 189.14 ms/op 137.34 ms/op 1.38
compare ViewDUs 3.7648 s/op 3.0442 s/op 1.24
compare each validator Uint8Array 1.9209 s/op 1.4692 s/op 1.31
compare ViewDU to Uint8Array 1.4365 s/op 690.88 ms/op 2.08
migrate state 1000000 validators, 24 modified, 0 new 875.77 ms/op 686.73 ms/op 1.28
migrate state 1000000 validators, 1700 modified, 1000 new 1.0609 s/op 924.08 ms/op 1.15
migrate state 1000000 validators, 3400 modified, 2000 new 1.2303 s/op 1.1342 s/op 1.08
migrate state 1500000 validators, 24 modified, 0 new 812.43 ms/op 702.53 ms/op 1.16
migrate state 1500000 validators, 1700 modified, 1000 new 1.0717 s/op 935.46 ms/op 1.15
migrate state 1500000 validators, 3400 modified, 2000 new 1.1956 s/op 1.1418 s/op 1.05
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.3500 ns/op 5.9400 ns/op 0.73
state getBlockRootAtSlot - 250000 vs - 7PWei 751.16 ns/op 661.70 ns/op 1.14
computeProposers - vc 250000 6.9401 ms/op 5.7746 ms/op 1.20
computeEpochShuffling - vc 250000 41.848 ms/op 34.654 ms/op 1.21
getNextSyncCommittee - vc 250000 123.52 ms/op 103.33 ms/op 1.20
computeSigningRoot for AttestationData 16.586 us/op 24.347 us/op 0.68
hash AttestationData serialized data then Buffer.toString(base64) 1.5521 us/op 1.2092 us/op 1.28
toHexString serialized data 929.08 ns/op 774.12 ns/op 1.20
Buffer.toString(base64) 193.76 ns/op 143.13 ns/op 1.35
nodejs block root to RootHex using toHex 153.01 ns/op 119.99 ns/op 1.28
nodejs block root to RootHex using toRootHex 108.72 ns/op 76.216 ns/op 1.43
browser block root to RootHex using the deprecated toHexString 229.97 ns/op 207.31 ns/op 1.11
browser block root to RootHex using toHex 187.88 ns/op 163.71 ns/op 1.15
browser block root to RootHex using toRootHex 166.78 ns/op 141.92 ns/op 1.18

Please sign in to comment.