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: update discv5 and varint #5895

Merged
merged 4 commits into from
Aug 18, 2023
Merged

chore: update discv5 and varint #5895

merged 4 commits into from
Aug 18, 2023

Conversation

wemeetagain
Copy link
Member

  • Most of our use of varint now moved to faster uint8-varint v2.x dependency

@wemeetagain wemeetagain requested a review from a team as a code owner August 17, 2023 15:50
@wemeetagain wemeetagain changed the title chore: update discv5 and deps chore: update discv5 and varint Aug 17, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 17, 2023

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 967afc8 Previous: f9c7107 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 916.32 us/op 578.88 us/op 1.58
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 80.827 us/op 87.076 us/op 0.93
BLS verify - blst-native 1.2667 ms/op 1.2935 ms/op 0.98
BLS verifyMultipleSignatures 3 - blst-native 2.6160 ms/op 2.5680 ms/op 1.02
BLS verifyMultipleSignatures 8 - blst-native 5.5331 ms/op 5.5676 ms/op 0.99
BLS verifyMultipleSignatures 32 - blst-native 20.036 ms/op 19.785 ms/op 1.01
BLS aggregatePubkeys 32 - blst-native 26.956 us/op 27.206 us/op 0.99
BLS aggregatePubkeys 128 - blst-native 104.86 us/op 103.56 us/op 1.01
getAttestationsForBlock 60.330 ms/op 59.705 ms/op 1.01
isKnown best case - 1 super set check 329.00 ns/op 270.00 ns/op 1.22
isKnown normal case - 2 super set checks 368.00 ns/op 265.00 ns/op 1.39
isKnown worse case - 16 super set checks 343.00 ns/op 277.00 ns/op 1.24
CheckpointStateCache - add get delete 5.2320 us/op 5.0530 us/op 1.04
validate api signedAggregateAndProof - struct 2.8620 ms/op 2.7690 ms/op 1.03
validate gossip signedAggregateAndProof - struct 2.9033 ms/op 2.7732 ms/op 1.05
validate api attestation - struct 1.3584 ms/op 1.3323 ms/op 1.02
validate gossip attestation - struct 1.3801 ms/op 1.3531 ms/op 1.02
pickEth1Vote - no votes 1.2345 ms/op 1.2214 ms/op 1.01
pickEth1Vote - max votes 9.4354 ms/op 8.7107 ms/op 1.08
pickEth1Vote - Eth1Data hashTreeRoot value x2048 10.249 ms/op 8.4041 ms/op 1.22
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 14.760 ms/op 15.851 ms/op 0.93
pickEth1Vote - Eth1Data fastSerialize value x2048 650.43 us/op 601.72 us/op 1.08
pickEth1Vote - Eth1Data fastSerialize tree x2048 5.0549 ms/op 6.7168 ms/op 0.75
bytes32 toHexString 517.00 ns/op 612.00 ns/op 0.84
bytes32 Buffer.toString(hex) 302.00 ns/op 297.00 ns/op 1.02
bytes32 Buffer.toString(hex) from Uint8Array 519.00 ns/op 501.00 ns/op 1.04
bytes32 Buffer.toString(hex) + 0x 319.00 ns/op 295.00 ns/op 1.08
Object access 1 prop 0.20000 ns/op 0.19700 ns/op 1.02
Map access 1 prop 0.15600 ns/op 0.15300 ns/op 1.02
Object get x1000 7.5340 ns/op 7.5920 ns/op 0.99
Map get x1000 0.76300 ns/op 0.64200 ns/op 1.19
Object set x1000 63.436 ns/op 52.004 ns/op 1.22
Map set x1000 43.579 ns/op 40.783 ns/op 1.07
Return object 10000 times 0.25470 ns/op 0.24170 ns/op 1.05
Throw Error 10000 times 4.3060 us/op 3.8680 us/op 1.11
fastMsgIdFn sha256 / 200 bytes 3.4460 us/op 3.3490 us/op 1.03
fastMsgIdFn h32 xxhash / 200 bytes 343.00 ns/op 313.00 ns/op 1.10
fastMsgIdFn h64 xxhash / 200 bytes 376.00 ns/op 384.00 ns/op 0.98
fastMsgIdFn sha256 / 1000 bytes 11.848 us/op 11.599 us/op 1.02
fastMsgIdFn h32 xxhash / 1000 bytes 455.00 ns/op 462.00 ns/op 0.98
fastMsgIdFn h64 xxhash / 1000 bytes 457.00 ns/op 464.00 ns/op 0.98
fastMsgIdFn sha256 / 10000 bytes 108.94 us/op 104.67 us/op 1.04
fastMsgIdFn h32 xxhash / 10000 bytes 2.0370 us/op 1.9390 us/op 1.05
fastMsgIdFn h64 xxhash / 10000 bytes 1.3990 us/op 1.3270 us/op 1.05
enrSubnets - fastDeserialize 64 bits 1.3670 us/op 1.2840 us/op 1.06
enrSubnets - ssz BitVector 64 bits 468.00 ns/op 472.00 ns/op 0.99
enrSubnets - fastDeserialize 4 bits 216.00 ns/op 183.00 ns/op 1.18
enrSubnets - ssz BitVector 4 bits 564.00 ns/op 458.00 ns/op 1.23
prioritizePeers score -10:0 att 32-0.1 sync 2-0 121.40 us/op 113.06 us/op 1.07
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 147.69 us/op 146.70 us/op 1.01
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 203.39 us/op 180.19 us/op 1.13
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 350.36 us/op 314.15 us/op 1.12
prioritizePeers score 0:0 att 64-1 sync 4-1 418.42 us/op 374.01 us/op 1.12
array of 16000 items push then shift 1.7253 us/op 1.6138 us/op 1.07
LinkedList of 16000 items push then shift 9.4750 ns/op 9.4880 ns/op 1.00
array of 16000 items push then pop 62.010 ns/op 67.494 ns/op 0.92
LinkedList of 16000 items push then pop 9.2370 ns/op 8.8580 ns/op 1.04
array of 24000 items push then shift 2.5188 us/op 2.5482 us/op 0.99
LinkedList of 24000 items push then shift 9.7830 ns/op 9.3500 ns/op 1.05
array of 24000 items push then pop 123.97 ns/op 120.80 ns/op 1.03
LinkedList of 24000 items push then pop 9.4310 ns/op 8.8270 ns/op 1.07
intersect bitArray bitLen 8 7.2050 ns/op 6.9950 ns/op 1.03
intersect array and set length 8 69.368 ns/op 55.497 ns/op 1.25
intersect bitArray bitLen 128 33.689 ns/op 32.366 ns/op 1.04
intersect array and set length 128 940.91 ns/op 804.67 ns/op 1.17
bitArray.getTrueBitIndexes() bitLen 128 1.8230 us/op 1.6260 us/op 1.12
bitArray.getTrueBitIndexes() bitLen 248 3.1720 us/op 2.7580 us/op 1.15
bitArray.getTrueBitIndexes() bitLen 512 6.8280 us/op 5.4150 us/op 1.26
Buffer.concat 32 items 1.2030 us/op 971.00 ns/op 1.24
Uint8Array.set 32 items 2.1420 us/op 1.7650 us/op 1.21
Set add up to 64 items then delete first 4.8431 us/op 4.3179 us/op 1.12
OrderedSet add up to 64 items then delete first 6.3573 us/op 5.5857 us/op 1.14
Set add up to 64 items then delete last 5.1134 us/op 4.8118 us/op 1.06
OrderedSet add up to 64 items then delete last 6.5008 us/op 6.2307 us/op 1.04
Set add up to 64 items then delete middle 4.9976 us/op 4.7047 us/op 1.06
OrderedSet add up to 64 items then delete middle 7.7558 us/op 7.4636 us/op 1.04
Set add up to 128 items then delete first 10.356 us/op 9.3555 us/op 1.11
OrderedSet add up to 128 items then delete first 13.912 us/op 11.663 us/op 1.19
Set add up to 128 items then delete last 10.425 us/op 9.2750 us/op 1.12
OrderedSet add up to 128 items then delete last 13.509 us/op 12.364 us/op 1.09
Set add up to 128 items then delete middle 10.234 us/op 9.1813 us/op 1.11
OrderedSet add up to 128 items then delete middle 19.106 us/op 18.020 us/op 1.06
Set add up to 256 items then delete first 20.928 us/op 19.791 us/op 1.06
OrderedSet add up to 256 items then delete first 28.644 us/op 24.596 us/op 1.16
Set add up to 256 items then delete last 20.208 us/op 19.949 us/op 1.01
OrderedSet add up to 256 items then delete last 26.079 us/op 24.836 us/op 1.05
Set add up to 256 items then delete middle 20.473 us/op 19.012 us/op 1.08
OrderedSet add up to 256 items then delete middle 50.061 us/op 48.629 us/op 1.03
transfer serialized Status (84 B) 1.8900 us/op 1.9480 us/op 0.97
copy serialized Status (84 B) 1.6180 us/op 1.7430 us/op 0.93
transfer serialized SignedVoluntaryExit (112 B) 1.9810 us/op 2.1950 us/op 0.90
copy serialized SignedVoluntaryExit (112 B) 1.7080 us/op 1.8010 us/op 0.95
transfer serialized ProposerSlashing (416 B) 2.2250 us/op 2.7070 us/op 0.82
copy serialized ProposerSlashing (416 B) 2.2260 us/op 3.0480 us/op 0.73
transfer serialized Attestation (485 B) 2.4040 us/op 2.6890 us/op 0.89
copy serialized Attestation (485 B) 2.2600 us/op 2.9240 us/op 0.77
transfer serialized AttesterSlashing (33232 B) 2.2970 us/op 2.3390 us/op 0.98
copy serialized AttesterSlashing (33232 B) 7.0580 us/op 6.2370 us/op 1.13
transfer serialized Small SignedBeaconBlock (128000 B) 2.6620 us/op 2.4840 us/op 1.07
copy serialized Small SignedBeaconBlock (128000 B) 18.460 us/op 15.691 us/op 1.18
transfer serialized Avg SignedBeaconBlock (200000 B) 3.2920 us/op 3.7000 us/op 0.89
copy serialized Avg SignedBeaconBlock (200000 B) 25.001 us/op 25.847 us/op 0.97
transfer serialized BlobsSidecar (524380 B) 3.9240 us/op 4.2130 us/op 0.93
copy serialized BlobsSidecar (524380 B) 95.762 us/op 135.07 us/op 0.71
transfer serialized Big SignedBeaconBlock (1000000 B) 4.0520 us/op 4.1450 us/op 0.98
copy serialized Big SignedBeaconBlock (1000000 B) 183.48 us/op 212.94 us/op 0.86
pass gossip attestations to forkchoice per slot 4.8747 ms/op 4.8873 ms/op 1.00
forkChoice updateHead vc 100000 bc 64 eq 0 702.97 us/op 840.45 us/op 0.84
forkChoice updateHead vc 600000 bc 64 eq 0 4.6588 ms/op 4.3775 ms/op 1.06
forkChoice updateHead vc 1000000 bc 64 eq 0 7.4512 ms/op 7.2338 ms/op 1.03
forkChoice updateHead vc 600000 bc 320 eq 0 6.2727 ms/op 4.3799 ms/op 1.43
forkChoice updateHead vc 600000 bc 1200 eq 0 5.3869 ms/op 4.5277 ms/op 1.19
forkChoice updateHead vc 600000 bc 7200 eq 0 5.5831 ms/op 5.5257 ms/op 1.01
forkChoice updateHead vc 600000 bc 64 eq 1000 11.949 ms/op 12.199 ms/op 0.98
forkChoice updateHead vc 600000 bc 64 eq 10000 13.231 ms/op 13.925 ms/op 0.95
forkChoice updateHead vc 600000 bc 64 eq 300000 20.286 ms/op 16.628 ms/op 1.22
computeDeltas 500000 validators 300 proto nodes 6.7596 ms/op 6.5833 ms/op 1.03
computeDeltas 500000 validators 1200 proto nodes 6.8243 ms/op 6.4196 ms/op 1.06
computeDeltas 500000 validators 7200 proto nodes 6.7867 ms/op 6.6522 ms/op 1.02
computeDeltas 750000 validators 300 proto nodes 10.280 ms/op 9.7301 ms/op 1.06
computeDeltas 750000 validators 1200 proto nodes 10.346 ms/op 9.7875 ms/op 1.06
computeDeltas 750000 validators 7200 proto nodes 10.333 ms/op 9.7108 ms/op 1.06
computeDeltas 1400000 validators 300 proto nodes 19.129 ms/op 18.139 ms/op 1.05
computeDeltas 1400000 validators 1200 proto nodes 18.776 ms/op 18.022 ms/op 1.04
computeDeltas 1400000 validators 7200 proto nodes 18.352 ms/op 18.390 ms/op 1.00
computeDeltas 2100000 validators 300 proto nodes 27.823 ms/op 26.778 ms/op 1.04
computeDeltas 2100000 validators 1200 proto nodes 27.539 ms/op 27.001 ms/op 1.02
computeDeltas 2100000 validators 7200 proto nodes 27.616 ms/op 27.222 ms/op 1.01
computeProposerBoostScoreFromBalances 500000 validators 3.3741 ms/op 3.2642 ms/op 1.03
computeProposerBoostScoreFromBalances 750000 validators 3.3559 ms/op 3.2582 ms/op 1.03
computeProposerBoostScoreFromBalances 1400000 validators 3.4199 ms/op 3.2705 ms/op 1.05
computeProposerBoostScoreFromBalances 2100000 validators 3.4886 ms/op 3.2514 ms/op 1.07
altair processAttestation - 250000 vs - 7PWei normalcase 3.5577 ms/op 2.2097 ms/op 1.61
altair processAttestation - 250000 vs - 7PWei worstcase 4.7953 ms/op 3.1695 ms/op 1.51
altair processAttestation - setStatus - 1/6 committees join 195.40 us/op 148.52 us/op 1.32
altair processAttestation - setStatus - 1/3 committees join 363.60 us/op 280.47 us/op 1.30
altair processAttestation - setStatus - 1/2 committees join 489.50 us/op 385.14 us/op 1.27
altair processAttestation - setStatus - 2/3 committees join 616.35 us/op 480.79 us/op 1.28
altair processAttestation - setStatus - 4/5 committees join 844.56 us/op 667.57 us/op 1.27
altair processAttestation - setStatus - 100% committees join 963.90 us/op 780.77 us/op 1.23
altair processBlock - 250000 vs - 7PWei normalcase 11.254 ms/op 8.9592 ms/op 1.26
altair processBlock - 250000 vs - 7PWei normalcase hashState 19.728 ms/op 16.904 ms/op 1.17
altair processBlock - 250000 vs - 7PWei worstcase 42.769 ms/op 39.142 ms/op 1.09
altair processBlock - 250000 vs - 7PWei worstcase hashState 65.968 ms/op 59.138 ms/op 1.12
phase0 processBlock - 250000 vs - 7PWei normalcase 3.1161 ms/op 2.7297 ms/op 1.14
phase0 processBlock - 250000 vs - 7PWei worstcase 34.928 ms/op 32.101 ms/op 1.09
altair processEth1Data - 250000 vs - 7PWei normalcase 665.18 us/op 509.92 us/op 1.30
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 19.576 us/op 11.162 us/op 1.75
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 77.588 us/op 76.185 us/op 1.02
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 33.779 us/op 16.662 us/op 2.03
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 22.735 us/op 14.385 us/op 1.58
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 210.93 us/op 225.52 us/op 0.94
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.3387 ms/op 1.1992 ms/op 1.12
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.6943 ms/op 2.2580 ms/op 0.75
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.6511 ms/op 2.0117 ms/op 0.82
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 4.1384 ms/op 3.5383 ms/op 1.17
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.3736 ms/op 2.4660 ms/op 0.96
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 5.5982 ms/op 5.2921 ms/op 1.06
Tree 40 250000 create 370.89 ms/op 379.81 ms/op 0.98
Tree 40 250000 get(125000) 211.87 ns/op 215.77 ns/op 0.98
Tree 40 250000 set(125000) 964.95 ns/op 894.48 ns/op 1.08
Tree 40 250000 toArray() 22.043 ms/op 20.035 ms/op 1.10
Tree 40 250000 iterate all - toArray() + loop 22.832 ms/op 18.582 ms/op 1.23
Tree 40 250000 iterate all - get(i) 79.183 ms/op 71.595 ms/op 1.11
MutableVector 250000 create 11.554 ms/op 15.957 ms/op 0.72
MutableVector 250000 get(125000) 7.2420 ns/op 6.6640 ns/op 1.09
MutableVector 250000 set(125000) 247.28 ns/op 242.11 ns/op 1.02
MutableVector 250000 toArray() 3.7115 ms/op 3.7873 ms/op 0.98
MutableVector 250000 iterate all - toArray() + loop 3.8611 ms/op 3.6929 ms/op 1.05
MutableVector 250000 iterate all - get(i) 1.5921 ms/op 1.5563 ms/op 1.02
Array 250000 create 3.5099 ms/op 2.8408 ms/op 1.24
Array 250000 clone - spread 1.0576 ms/op 1.0660 ms/op 0.99
Array 250000 get(125000) 0.52200 ns/op 0.49200 ns/op 1.06
Array 250000 set(125000) 0.59900 ns/op 0.56400 ns/op 1.06
Array 250000 iterate all - loop 89.265 us/op 83.798 us/op 1.07
effectiveBalanceIncrements clone Uint8Array 300000 33.118 us/op 28.450 us/op 1.16
effectiveBalanceIncrements clone MutableVector 300000 269.00 ns/op 257.00 ns/op 1.05
effectiveBalanceIncrements rw all Uint8Array 300000 184.45 us/op 180.28 us/op 1.02
effectiveBalanceIncrements rw all MutableVector 300000 80.652 ms/op 79.783 ms/op 1.01
phase0 afterProcessEpoch - 250000 vs - 7PWei 118.85 ms/op 115.72 ms/op 1.03
phase0 beforeProcessEpoch - 250000 vs - 7PWei 42.985 ms/op 44.833 ms/op 0.96
altair processEpoch - mainnet_e81889 337.23 ms/op 355.67 ms/op 0.95
mainnet_e81889 - altair beforeProcessEpoch 68.237 ms/op 62.576 ms/op 1.09
mainnet_e81889 - altair processJustificationAndFinalization 16.201 us/op 15.623 us/op 1.04
mainnet_e81889 - altair processInactivityUpdates 6.6371 ms/op 6.2175 ms/op 1.07
mainnet_e81889 - altair processRewardsAndPenalties 69.086 ms/op 67.669 ms/op 1.02
mainnet_e81889 - altair processRegistryUpdates 3.1800 us/op 2.6080 us/op 1.22
mainnet_e81889 - altair processSlashings 499.00 ns/op 618.00 ns/op 0.81
mainnet_e81889 - altair processEth1DataReset 644.00 ns/op 952.00 ns/op 0.68
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.3317 ms/op 1.7302 ms/op 0.77
mainnet_e81889 - altair processSlashingsReset 3.9810 us/op 3.3520 us/op 1.19
mainnet_e81889 - altair processRandaoMixesReset 5.7860 us/op 4.9940 us/op 1.16
mainnet_e81889 - altair processHistoricalRootsUpdate 1.4540 us/op 1.1520 us/op 1.26
mainnet_e81889 - altair processParticipationFlagUpdates 2.7400 us/op 3.1740 us/op 0.86
mainnet_e81889 - altair processSyncCommitteeUpdates 788.00 ns/op 899.00 ns/op 0.88
mainnet_e81889 - altair afterProcessEpoch 132.66 ms/op 129.57 ms/op 1.02
capella processEpoch - mainnet_e217614 1.0551 s/op 1.0907 s/op 0.97
mainnet_e217614 - capella beforeProcessEpoch 250.88 ms/op 257.48 ms/op 0.97
mainnet_e217614 - capella processJustificationAndFinalization 13.528 us/op 14.631 us/op 0.92
mainnet_e217614 - capella processInactivityUpdates 16.680 ms/op 17.217 ms/op 0.97
mainnet_e217614 - capella processRewardsAndPenalties 284.12 ms/op 309.39 ms/op 0.92
mainnet_e217614 - capella processRegistryUpdates 23.091 us/op 20.234 us/op 1.14
mainnet_e217614 - capella processSlashings 468.00 ns/op 843.00 ns/op 0.56
mainnet_e217614 - capella processEth1DataReset 435.00 ns/op 757.00 ns/op 0.57
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.1277 ms/op 3.9706 ms/op 1.04
mainnet_e217614 - capella processSlashingsReset 2.4060 us/op 4.0650 us/op 0.59
mainnet_e217614 - capella processRandaoMixesReset 4.9020 us/op 6.5030 us/op 0.75
mainnet_e217614 - capella processHistoricalRootsUpdate 812.00 ns/op 786.00 ns/op 1.03
mainnet_e217614 - capella processParticipationFlagUpdates 2.2090 us/op 3.5660 us/op 0.62
mainnet_e217614 - capella afterProcessEpoch 309.49 ms/op 302.20 ms/op 1.02
phase0 processEpoch - mainnet_e58758 356.09 ms/op 384.98 ms/op 0.92
mainnet_e58758 - phase0 beforeProcessEpoch 129.66 ms/op 127.24 ms/op 1.02
mainnet_e58758 - phase0 processJustificationAndFinalization 18.953 us/op 24.371 us/op 0.78
mainnet_e58758 - phase0 processRewardsAndPenalties 56.596 ms/op 74.259 ms/op 0.76
mainnet_e58758 - phase0 processRegistryUpdates 11.664 us/op 14.715 us/op 0.79
mainnet_e58758 - phase0 processSlashings 558.00 ns/op 803.00 ns/op 0.69
mainnet_e58758 - phase0 processEth1DataReset 494.00 ns/op 679.00 ns/op 0.73
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.1065 ms/op 1.9654 ms/op 0.56
mainnet_e58758 - phase0 processSlashingsReset 3.5780 us/op 3.4280 us/op 1.04
mainnet_e58758 - phase0 processRandaoMixesReset 4.0810 us/op 6.0580 us/op 0.67
mainnet_e58758 - phase0 processHistoricalRootsUpdate 837.00 ns/op 557.00 ns/op 1.50
mainnet_e58758 - phase0 processParticipationRecordUpdates 5.2200 us/op 4.9100 us/op 1.06
mainnet_e58758 - phase0 afterProcessEpoch 108.55 ms/op 98.452 ms/op 1.10
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.9404 ms/op 1.2372 ms/op 1.57
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.6511 ms/op 2.6306 ms/op 0.63
altair processInactivityUpdates - 250000 normalcase 25.892 ms/op 23.190 ms/op 1.12
altair processInactivityUpdates - 250000 worstcase 25.306 ms/op 27.860 ms/op 0.91
phase0 processRegistryUpdates - 250000 normalcase 9.5250 us/op 15.422 us/op 0.62
phase0 processRegistryUpdates - 250000 badcase_full_deposits 382.01 us/op 544.89 us/op 0.70
phase0 processRegistryUpdates - 250000 worstcase 0.5 136.58 ms/op 118.17 ms/op 1.16
altair processRewardsAndPenalties - 250000 normalcase 76.166 ms/op 66.645 ms/op 1.14
altair processRewardsAndPenalties - 250000 worstcase 72.471 ms/op 62.262 ms/op 1.16
phase0 getAttestationDeltas - 250000 normalcase 8.6163 ms/op 7.9116 ms/op 1.09
phase0 getAttestationDeltas - 250000 worstcase 9.3944 ms/op 7.7171 ms/op 1.22
phase0 processSlashings - 250000 worstcase 2.5483 ms/op 2.2399 ms/op 1.14
altair processSyncCommitteeUpdates - 250000 160.65 ms/op 142.09 ms/op 1.13
BeaconState.hashTreeRoot - No change 253.00 ns/op 246.00 ns/op 1.03
BeaconState.hashTreeRoot - 1 full validator 53.718 us/op 49.274 us/op 1.09
BeaconState.hashTreeRoot - 32 full validator 561.49 us/op 615.63 us/op 0.91
BeaconState.hashTreeRoot - 512 full validator 5.9237 ms/op 7.3547 ms/op 0.81
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 66.783 us/op 72.412 us/op 0.92
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 965.34 us/op 916.96 us/op 1.05
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 11.408 ms/op 11.165 ms/op 1.02
BeaconState.hashTreeRoot - 1 balances 53.416 us/op 48.599 us/op 1.10
BeaconState.hashTreeRoot - 32 balances 500.13 us/op 550.26 us/op 0.91
BeaconState.hashTreeRoot - 512 balances 4.5719 ms/op 4.7930 ms/op 0.95
BeaconState.hashTreeRoot - 250000 balances 74.712 ms/op 85.862 ms/op 0.87
aggregationBits - 2048 els - zipIndexesInBitList 15.356 us/op 14.373 us/op 1.07
regular array get 100000 times 44.901 us/op 40.294 us/op 1.11
wrappedArray get 100000 times 45.412 us/op 32.389 us/op 1.40
arrayWithProxy get 100000 times 14.440 ms/op 13.844 ms/op 1.04
ssz.Root.equals 224.00 ns/op 211.00 ns/op 1.06
byteArrayEquals 231.00 ns/op 207.00 ns/op 1.12
shuffle list - 16384 els 7.1807 ms/op 6.7838 ms/op 1.06
shuffle list - 250000 els 105.15 ms/op 99.271 ms/op 1.06
processSlot - 1 slots 8.8880 us/op 8.3380 us/op 1.07
processSlot - 32 slots 1.3985 ms/op 1.2722 ms/op 1.10
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 53.964 ms/op 54.942 ms/op 0.98
getCommitteeAssignments - req 1 vs - 250000 vc 2.6249 ms/op 2.4367 ms/op 1.08
getCommitteeAssignments - req 100 vs - 250000 vc 3.7908 ms/op 3.6365 ms/op 1.04
getCommitteeAssignments - req 1000 vs - 250000 vc 4.1596 ms/op 3.9845 ms/op 1.04
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.8500 ns/op 4.5800 ns/op 1.06
state getBlockRootAtSlot - 250000 vs - 7PWei 520.67 ns/op 500.33 ns/op 1.04
computeProposers - vc 250000 10.042 ms/op 8.6918 ms/op 1.16
computeEpochShuffling - vc 250000 111.83 ms/op 104.81 ms/op 1.07
getNextSyncCommittee - vc 250000 156.66 ms/op 152.51 ms/op 1.03
computeSigningRoot for AttestationData 13.183 us/op 13.622 us/op 0.97
hash AttestationData serialized data then Buffer.toString(base64) 2.4081 us/op 2.2786 us/op 1.06
toHexString serialized data 1.1100 us/op 1.0398 us/op 1.07
Buffer.toString(base64) 239.52 ns/op 205.71 ns/op 1.16

by benchmarkbot/action

@wemeetagain wemeetagain enabled auto-merge (squash) August 18, 2023 19:14
@wemeetagain wemeetagain merged commit 56ee70c into unstable Aug 18, 2023
11 checks passed
@wemeetagain wemeetagain deleted the cayman/update-discv5 branch August 18, 2023 19:29
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