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: bump ssz dependencies #7007

Merged
merged 1 commit into from
Aug 7, 2024
Merged

chore: bump ssz dependencies #7007

merged 1 commit into from
Aug 7, 2024

Conversation

wemeetagain
Copy link
Member

Motivation

  • we want the latest dependencies

Description

  • update as-sha256, persistent-merkle-tree, ssz dependencies

@wemeetagain wemeetagain requested a review from a team as a code owner August 7, 2024 14:51
Copy link

codecov bot commented Aug 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.23%. Comparing base (30a13f9) to head (5616dfb).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #7007      +/-   ##
============================================
- Coverage     49.23%   49.23%   -0.01%     
============================================
  Files           578      578              
  Lines         37426    37426              
  Branches       2172     2168       -4     
============================================
- Hits          18427    18426       -1     
- Misses        18959    18960       +1     
  Partials         40       40              

Copy link
Contributor

github-actions bot commented Aug 7, 2024

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 035db48 Previous: 30a13f9 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 2.3683 ms/op 1.8644 ms/op 1.27
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 74.291 us/op 44.989 us/op 1.65
BLS verify - blst 996.52 us/op 810.65 us/op 1.23
BLS verifyMultipleSignatures 3 - blst 1.6182 ms/op 1.1692 ms/op 1.38
BLS verifyMultipleSignatures 8 - blst 2.5712 ms/op 1.6276 ms/op 1.58
BLS verifyMultipleSignatures 32 - blst 5.9264 ms/op 4.6843 ms/op 1.27
BLS verifyMultipleSignatures 64 - blst 10.640 ms/op 8.7859 ms/op 1.21
BLS verifyMultipleSignatures 128 - blst 19.463 ms/op 16.819 ms/op 1.16
BLS deserializing 10000 signatures 824.63 ms/op 672.64 ms/op 1.23
BLS deserializing 100000 signatures 8.1029 s/op 6.7149 s/op 1.21
BLS verifyMultipleSignatures - same message - 3 - blst 1.0679 ms/op 805.27 us/op 1.33
BLS verifyMultipleSignatures - same message - 8 - blst 1.1902 ms/op 950.66 us/op 1.25
BLS verifyMultipleSignatures - same message - 32 - blst 2.0225 ms/op 1.6444 ms/op 1.23
BLS verifyMultipleSignatures - same message - 64 - blst 3.1718 ms/op 2.4311 ms/op 1.30
BLS verifyMultipleSignatures - same message - 128 - blst 5.4448 ms/op 4.1532 ms/op 1.31
BLS aggregatePubkeys 32 - blst 25.160 us/op 19.261 us/op 1.31
BLS aggregatePubkeys 128 - blst 82.603 us/op 69.903 us/op 1.18
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 85.207 ms/op 56.147 ms/op 1.52
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 65.911 ms/op 50.623 ms/op 1.30
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 58.825 ms/op 32.619 ms/op 1.80
getSlashingsAndExits - default max 146.90 us/op 118.41 us/op 1.24
getSlashingsAndExits - 2k 364.76 us/op 376.74 us/op 0.97
proposeBlockBody type=full, size=empty 8.3183 ms/op 5.9512 ms/op 1.40
isKnown best case - 1 super set check 535.00 ns/op 448.00 ns/op 1.19
isKnown normal case - 2 super set checks 412.00 ns/op 393.00 ns/op 1.05
isKnown worse case - 16 super set checks 522.00 ns/op 300.00 ns/op 1.74
InMemoryCheckpointStateCache - add get delete 7.1220 us/op 5.9160 us/op 1.20
validate api signedAggregateAndProof - struct 1.8686 ms/op 1.5134 ms/op 1.23
validate gossip signedAggregateAndProof - struct 1.7663 ms/op 1.4975 ms/op 1.18
validate gossip attestation - vc 640000 1.1423 ms/op 1.0010 ms/op 1.14
batch validate gossip attestation - vc 640000 - chunk 32 161.42 us/op 136.92 us/op 1.18
batch validate gossip attestation - vc 640000 - chunk 64 143.05 us/op 122.55 us/op 1.17
batch validate gossip attestation - vc 640000 - chunk 128 134.75 us/op 115.91 us/op 1.16
batch validate gossip attestation - vc 640000 - chunk 256 123.06 us/op 109.49 us/op 1.12
pickEth1Vote - no votes 1.2994 ms/op 1.1663 ms/op 1.11
pickEth1Vote - max votes 10.846 ms/op 8.8818 ms/op 1.22
pickEth1Vote - Eth1Data hashTreeRoot value x2048 21.701 ms/op 13.167 ms/op 1.65
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 23.517 ms/op 19.488 ms/op 1.21
pickEth1Vote - Eth1Data fastSerialize value x2048 636.21 us/op 550.81 us/op 1.16
pickEth1Vote - Eth1Data fastSerialize tree x2048 4.8168 ms/op 5.7575 ms/op 0.84
bytes32 toHexString 670.00 ns/op 467.00 ns/op 1.43
bytes32 Buffer.toString(hex) 301.00 ns/op 254.00 ns/op 1.19
bytes32 Buffer.toString(hex) from Uint8Array 495.00 ns/op 379.00 ns/op 1.31
bytes32 Buffer.toString(hex) + 0x 291.00 ns/op 261.00 ns/op 1.11
Object access 1 prop 0.20400 ns/op 0.17800 ns/op 1.15
Map access 1 prop 0.15700 ns/op 0.13200 ns/op 1.19
Object get x1000 6.5830 ns/op 6.0570 ns/op 1.09
Map get x1000 7.4030 ns/op 6.6290 ns/op 1.12
Object set x1000 47.572 ns/op 50.838 ns/op 0.94
Map set x1000 29.863 ns/op 33.845 ns/op 0.88
Return object 10000 times 0.32570 ns/op 0.30320 ns/op 1.07
Throw Error 10000 times 3.8201 us/op 3.4938 us/op 1.09
fastMsgIdFn sha256 / 200 bytes 2.4800 us/op 2.3350 us/op 1.06
fastMsgIdFn h32 xxhash / 200 bytes 323.00 ns/op 280.00 ns/op 1.15
fastMsgIdFn h64 xxhash / 200 bytes 310.00 ns/op 273.00 ns/op 1.14
fastMsgIdFn sha256 / 1000 bytes 8.3420 us/op 7.4880 us/op 1.11
fastMsgIdFn h32 xxhash / 1000 bytes 468.00 ns/op 431.00 ns/op 1.09
fastMsgIdFn h64 xxhash / 1000 bytes 396.00 ns/op 355.00 ns/op 1.12
fastMsgIdFn sha256 / 10000 bytes 75.759 us/op 65.517 us/op 1.16
fastMsgIdFn h32 xxhash / 10000 bytes 2.1780 us/op 1.9510 us/op 1.12
fastMsgIdFn h64 xxhash / 10000 bytes 1.4030 us/op 1.2440 us/op 1.13
send data - 1000 256B messages 14.891 ms/op 14.338 ms/op 1.04
send data - 1000 512B messages 21.093 ms/op 19.822 ms/op 1.06
send data - 1000 1024B messages 34.644 ms/op 30.045 ms/op 1.15
send data - 1000 1200B messages 33.075 ms/op 29.083 ms/op 1.14
send data - 1000 2048B messages 40.928 ms/op 33.893 ms/op 1.21
send data - 1000 4096B messages 39.579 ms/op 33.629 ms/op 1.18
send data - 1000 16384B messages 92.709 ms/op 73.500 ms/op 1.26
send data - 1000 65536B messages 278.74 ms/op 220.78 ms/op 1.26
enrSubnets - fastDeserialize 64 bits 1.7870 us/op 1.2510 us/op 1.43
enrSubnets - ssz BitVector 64 bits 558.00 ns/op 411.00 ns/op 1.36
enrSubnets - fastDeserialize 4 bits 241.00 ns/op 163.00 ns/op 1.48
enrSubnets - ssz BitVector 4 bits 537.00 ns/op 421.00 ns/op 1.28
prioritizePeers score -10:0 att 32-0.1 sync 2-0 229.23 us/op 161.69 us/op 1.42
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 267.72 us/op 170.01 us/op 1.57
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 423.52 us/op 240.56 us/op 1.76
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 585.19 us/op 428.65 us/op 1.37
prioritizePeers score 0:0 att 64-1 sync 4-1 1.1008 ms/op 632.57 us/op 1.74
array of 16000 items push then shift 2.1739 us/op 1.6458 us/op 1.32
LinkedList of 16000 items push then shift 10.869 ns/op 7.7320 ns/op 1.41
array of 16000 items push then pop 156.93 ns/op 124.07 ns/op 1.26
LinkedList of 16000 items push then pop 8.0990 ns/op 7.2870 ns/op 1.11
array of 24000 items push then shift 2.6655 us/op 2.4691 us/op 1.08
LinkedList of 24000 items push then shift 9.7430 ns/op 7.8320 ns/op 1.24
array of 24000 items push then pop 224.11 ns/op 166.91 ns/op 1.34
LinkedList of 24000 items push then pop 10.706 ns/op 7.4340 ns/op 1.44
intersect bitArray bitLen 8 9.1440 ns/op 6.6460 ns/op 1.38
intersect array and set length 8 61.730 ns/op 48.396 ns/op 1.28
intersect bitArray bitLen 128 35.694 ns/op 30.504 ns/op 1.17
intersect array and set length 128 998.38 ns/op 839.54 ns/op 1.19
bitArray.getTrueBitIndexes() bitLen 128 2.7400 us/op 1.6210 us/op 1.69
bitArray.getTrueBitIndexes() bitLen 248 4.4240 us/op 2.5800 us/op 1.71
bitArray.getTrueBitIndexes() bitLen 512 10.976 us/op 4.9930 us/op 2.20
Buffer.concat 32 items 1.2870 us/op 959.00 ns/op 1.34
Uint8Array.set 32 items 2.7210 us/op 1.5960 us/op 1.70
Buffer.copy 3.0680 us/op 1.7300 us/op 1.77
Uint8Array.set - with subarray 3.6730 us/op 2.7700 us/op 1.33
Uint8Array.set - without subarray 2.3730 us/op 1.9440 us/op 1.22
getUint32 - dataview 527.00 ns/op 269.00 ns/op 1.96
getUint32 - manual 289.00 ns/op 205.00 ns/op 1.41
Set add up to 64 items then delete first 3.3396 us/op 2.2867 us/op 1.46
OrderedSet add up to 64 items then delete first 5.0755 us/op 3.4118 us/op 1.49
Set add up to 64 items then delete last 3.7777 us/op 2.7171 us/op 1.39
OrderedSet add up to 64 items then delete last 5.7654 us/op 4.0512 us/op 1.42
Set add up to 64 items then delete middle 3.7477 us/op 2.7645 us/op 1.36
OrderedSet add up to 64 items then delete middle 8.1161 us/op 5.7796 us/op 1.40
Set add up to 128 items then delete first 9.3016 us/op 5.6504 us/op 1.65
OrderedSet add up to 128 items then delete first 11.363 us/op 8.6669 us/op 1.31
Set add up to 128 items then delete last 7.1691 us/op 5.5905 us/op 1.28
OrderedSet add up to 128 items then delete last 10.057 us/op 7.9814 us/op 1.26
Set add up to 128 items then delete middle 7.2506 us/op 5.4871 us/op 1.32
OrderedSet add up to 128 items then delete middle 22.065 us/op 14.921 us/op 1.48
Set add up to 256 items then delete first 17.013 us/op 11.681 us/op 1.46
OrderedSet add up to 256 items then delete first 33.560 us/op 17.631 us/op 1.90
Set add up to 256 items then delete last 18.028 us/op 10.282 us/op 1.75
OrderedSet add up to 256 items then delete last 28.070 us/op 15.067 us/op 1.86
Set add up to 256 items then delete middle 17.127 us/op 10.317 us/op 1.66
OrderedSet add up to 256 items then delete middle 55.753 us/op 44.304 us/op 1.26
transfer serialized Status (84 B) 1.9880 us/op 1.5310 us/op 1.30
copy serialized Status (84 B) 1.9820 us/op 1.2570 us/op 1.58
transfer serialized SignedVoluntaryExit (112 B) 2.0790 us/op 1.6930 us/op 1.23
copy serialized SignedVoluntaryExit (112 B) 1.6750 us/op 1.3480 us/op 1.24
transfer serialized ProposerSlashing (416 B) 2.4140 us/op 2.6650 us/op 0.91
copy serialized ProposerSlashing (416 B) 2.3310 us/op 2.8080 us/op 0.83
transfer serialized Attestation (485 B) 2.6250 us/op 2.8130 us/op 0.93
copy serialized Attestation (485 B) 2.5330 us/op 2.8400 us/op 0.89
transfer serialized AttesterSlashing (33232 B) 3.1940 us/op 3.2080 us/op 1.00
copy serialized AttesterSlashing (33232 B) 9.9890 us/op 7.2770 us/op 1.37
transfer serialized Small SignedBeaconBlock (128000 B) 4.3600 us/op 2.9810 us/op 1.46
copy serialized Small SignedBeaconBlock (128000 B) 32.951 us/op 18.604 us/op 1.77
transfer serialized Avg SignedBeaconBlock (200000 B) 5.9120 us/op 3.5070 us/op 1.69
copy serialized Avg SignedBeaconBlock (200000 B) 49.771 us/op 25.503 us/op 1.95
transfer serialized BlobsSidecar (524380 B) 9.4360 us/op 3.1690 us/op 2.98
copy serialized BlobsSidecar (524380 B) 150.62 us/op 98.424 us/op 1.53
transfer serialized Big SignedBeaconBlock (1000000 B) 7.2890 us/op 3.5390 us/op 2.06
copy serialized Big SignedBeaconBlock (1000000 B) 282.79 us/op 163.29 us/op 1.73
pass gossip attestations to forkchoice per slot 4.9416 ms/op 3.3328 ms/op 1.48
forkChoice updateHead vc 100000 bc 64 eq 0 1.1675 ms/op 501.96 us/op 2.33
forkChoice updateHead vc 600000 bc 64 eq 0 4.1800 ms/op 3.1574 ms/op 1.32
forkChoice updateHead vc 1000000 bc 64 eq 0 7.3151 ms/op 5.5519 ms/op 1.32
forkChoice updateHead vc 600000 bc 320 eq 0 4.0675 ms/op 3.0903 ms/op 1.32
forkChoice updateHead vc 600000 bc 1200 eq 0 3.7943 ms/op 3.1709 ms/op 1.20
forkChoice updateHead vc 600000 bc 7200 eq 0 5.3740 ms/op 3.8163 ms/op 1.41
forkChoice updateHead vc 600000 bc 64 eq 1000 12.362 ms/op 10.748 ms/op 1.15
forkChoice updateHead vc 600000 bc 64 eq 10000 12.374 ms/op 11.025 ms/op 1.12
forkChoice updateHead vc 600000 bc 64 eq 300000 25.548 ms/op 15.285 ms/op 1.67
computeDeltas 500000 validators 300 proto nodes 4.7258 ms/op 3.7202 ms/op 1.27
computeDeltas 500000 validators 1200 proto nodes 5.1951 ms/op 3.7791 ms/op 1.37
computeDeltas 500000 validators 7200 proto nodes 5.0040 ms/op 3.8913 ms/op 1.29
computeDeltas 750000 validators 300 proto nodes 7.7538 ms/op 5.7894 ms/op 1.34
computeDeltas 750000 validators 1200 proto nodes 6.8552 ms/op 5.6119 ms/op 1.22
computeDeltas 750000 validators 7200 proto nodes 7.5251 ms/op 5.4140 ms/op 1.39
computeDeltas 1400000 validators 300 proto nodes 15.678 ms/op 10.512 ms/op 1.49
computeDeltas 1400000 validators 1200 proto nodes 17.790 ms/op 10.489 ms/op 1.70
computeDeltas 1400000 validators 7200 proto nodes 17.625 ms/op 10.361 ms/op 1.70
computeDeltas 2100000 validators 300 proto nodes 20.739 ms/op 15.195 ms/op 1.36
computeDeltas 2100000 validators 1200 proto nodes 22.356 ms/op 14.833 ms/op 1.51
computeDeltas 2100000 validators 7200 proto nodes 20.839 ms/op 14.697 ms/op 1.42
altair processAttestation - 250000 vs - 7PWei normalcase 2.5997 ms/op 2.1044 ms/op 1.24
altair processAttestation - 250000 vs - 7PWei worstcase 3.5998 ms/op 2.7487 ms/op 1.31
altair processAttestation - setStatus - 1/6 committees join 119.93 us/op 127.38 us/op 0.94
altair processAttestation - setStatus - 1/3 committees join 309.23 us/op 243.57 us/op 1.27
altair processAttestation - setStatus - 1/2 committees join 403.63 us/op 350.33 us/op 1.15
altair processAttestation - setStatus - 2/3 committees join 512.90 us/op 431.46 us/op 1.19
altair processAttestation - setStatus - 4/5 committees join 764.41 us/op 581.74 us/op 1.31
altair processAttestation - setStatus - 100% committees join 891.00 us/op 686.32 us/op 1.30
altair processBlock - 250000 vs - 7PWei normalcase 8.9406 ms/op 4.1766 ms/op 2.14
altair processBlock - 250000 vs - 7PWei normalcase hashState 41.042 ms/op 26.068 ms/op 1.57
altair processBlock - 250000 vs - 7PWei worstcase 60.117 ms/op 34.728 ms/op 1.73
altair processBlock - 250000 vs - 7PWei worstcase hashState 112.74 ms/op 72.138 ms/op 1.56
phase0 processBlock - 250000 vs - 7PWei normalcase 3.9542 ms/op 1.6163 ms/op 2.45
phase0 processBlock - 250000 vs - 7PWei worstcase 35.311 ms/op 19.463 ms/op 1.81
altair processEth1Data - 250000 vs - 7PWei normalcase 757.95 us/op 337.16 us/op 2.25
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 13.955 us/op 5.4710 us/op 2.55
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 40.729 us/op 25.236 us/op 1.61
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 19.224 us/op 9.0120 us/op 2.13
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 15.322 us/op 6.8370 us/op 2.24
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 152.82 us/op 122.91 us/op 1.24
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.1926 ms/op 709.73 us/op 1.68
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.4794 ms/op 1.0103 ms/op 1.46
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.1997 ms/op 930.75 us/op 1.29
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.4118 ms/op 2.6195 ms/op 1.30
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.0412 ms/op 1.5814 ms/op 1.29
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 5.2154 ms/op 3.8789 ms/op 1.34
Tree 40 250000 create 352.92 ms/op 298.93 ms/op 1.18
Tree 40 250000 get(125000) 182.05 ns/op 154.05 ns/op 1.18
Tree 40 250000 set(125000) 925.93 ns/op 755.35 ns/op 1.23
Tree 40 250000 toArray() 22.290 ms/op 21.448 ms/op 1.04
Tree 40 250000 iterate all - toArray() + loop 22.547 ms/op 20.097 ms/op 1.12
Tree 40 250000 iterate all - get(i) 66.407 ms/op 54.168 ms/op 1.23
MutableVector 250000 create 12.054 ms/op 9.4433 ms/op 1.28
MutableVector 250000 get(125000) 7.2340 ns/op 6.2150 ns/op 1.16
MutableVector 250000 set(125000) 362.81 ns/op 220.65 ns/op 1.64
MutableVector 250000 toArray() 5.5823 ms/op 3.7483 ms/op 1.49
MutableVector 250000 iterate all - toArray() + loop 6.3322 ms/op 4.2216 ms/op 1.50
MutableVector 250000 iterate all - get(i) 2.2151 ms/op 1.5655 ms/op 1.41
Array 250000 create 4.0253 ms/op 3.8122 ms/op 1.06
Array 250000 clone - spread 1.6704 ms/op 1.5287 ms/op 1.09
Array 250000 get(125000) 0.54100 ns/op 0.43700 ns/op 1.24
Array 250000 set(125000) 0.53400 ns/op 0.46100 ns/op 1.16
Array 250000 iterate all - loop 123.72 us/op 113.36 us/op 1.09
effectiveBalanceIncrements clone Uint8Array 300000 37.713 us/op 47.023 us/op 0.80
effectiveBalanceIncrements clone MutableVector 300000 155.00 ns/op 136.00 ns/op 1.14
effectiveBalanceIncrements rw all Uint8Array 300000 229.80 us/op 201.93 us/op 1.14
effectiveBalanceIncrements rw all MutableVector 300000 81.866 ms/op 79.949 ms/op 1.02
phase0 afterProcessEpoch - 250000 vs - 7PWei 100.78 ms/op 87.551 ms/op 1.15
Array.fill - length 1000000 6.8094 ms/op 3.7961 ms/op 1.79
Array push - length 1000000 37.604 ms/op 14.404 ms/op 2.61
Array.get 0.31693 ns/op 0.28509 ns/op 1.11
Uint8Array.get 0.49521 ns/op 0.43983 ns/op 1.13
phase0 beforeProcessEpoch - 250000 vs - 7PWei 24.327 ms/op 17.668 ms/op 1.38
altair processEpoch - mainnet_e81889 399.23 ms/op 318.45 ms/op 1.25
mainnet_e81889 - altair beforeProcessEpoch 21.300 ms/op 18.717 ms/op 1.14
mainnet_e81889 - altair processJustificationAndFinalization 18.183 us/op 11.766 us/op 1.55
mainnet_e81889 - altair processInactivityUpdates 6.4145 ms/op 5.9907 ms/op 1.07
mainnet_e81889 - altair processRewardsAndPenalties 63.352 ms/op 44.309 ms/op 1.43
mainnet_e81889 - altair processRegistryUpdates 3.8090 us/op 1.4650 us/op 2.60
mainnet_e81889 - altair processSlashings 762.00 ns/op 649.00 ns/op 1.17
mainnet_e81889 - altair processEth1DataReset 504.00 ns/op 506.00 ns/op 1.00
mainnet_e81889 - altair processEffectiveBalanceUpdates 3.2239 ms/op 1.3395 ms/op 2.41
mainnet_e81889 - altair processSlashingsReset 4.9020 us/op 5.1450 us/op 0.95
mainnet_e81889 - altair processRandaoMixesReset 7.1550 us/op 5.8990 us/op 1.21
mainnet_e81889 - altair processHistoricalRootsUpdate 727.00 ns/op 602.00 ns/op 1.21
mainnet_e81889 - altair processParticipationFlagUpdates 4.4900 us/op 1.9450 us/op 2.31
mainnet_e81889 - altair processSyncCommitteeUpdates 587.00 ns/op 510.00 ns/op 1.15
mainnet_e81889 - altair afterProcessEpoch 109.35 ms/op 90.939 ms/op 1.20
capella processEpoch - mainnet_e217614 1.5166 s/op 1.2761 s/op 1.19
mainnet_e217614 - capella beforeProcessEpoch 92.479 ms/op 72.265 ms/op 1.28
mainnet_e217614 - capella processJustificationAndFinalization 19.998 us/op 18.028 us/op 1.11
mainnet_e217614 - capella processInactivityUpdates 20.458 ms/op 18.812 ms/op 1.09
mainnet_e217614 - capella processRewardsAndPenalties 251.96 ms/op 240.00 ms/op 1.05
mainnet_e217614 - capella processRegistryUpdates 20.781 us/op 16.346 us/op 1.27
mainnet_e217614 - capella processSlashings 892.00 ns/op 302.00 ns/op 2.95
mainnet_e217614 - capella processEth1DataReset 908.00 ns/op 342.00 ns/op 2.65
mainnet_e217614 - capella processEffectiveBalanceUpdates 19.457 ms/op 12.389 ms/op 1.57
mainnet_e217614 - capella processSlashingsReset 5.3330 us/op 2.8720 us/op 1.86
mainnet_e217614 - capella processRandaoMixesReset 13.503 us/op 10.314 us/op 1.31
mainnet_e217614 - capella processHistoricalRootsUpdate 1.2960 us/op 607.00 ns/op 2.14
mainnet_e217614 - capella processParticipationFlagUpdates 4.8180 us/op 2.7950 us/op 1.72
mainnet_e217614 - capella afterProcessEpoch 316.12 ms/op 276.49 ms/op 1.14
phase0 processEpoch - mainnet_e58758 545.42 ms/op 443.91 ms/op 1.23
mainnet_e58758 - phase0 beforeProcessEpoch 121.61 ms/op 76.767 ms/op 1.58
mainnet_e58758 - phase0 processJustificationAndFinalization 27.872 us/op 16.002 us/op 1.74
mainnet_e58758 - phase0 processRewardsAndPenalties 39.531 ms/op 34.777 ms/op 1.14
mainnet_e58758 - phase0 processRegistryUpdates 11.056 us/op 7.7440 us/op 1.43
mainnet_e58758 - phase0 processSlashings 717.00 ns/op 291.00 ns/op 2.46
mainnet_e58758 - phase0 processEth1DataReset 708.00 ns/op 308.00 ns/op 2.30
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.4772 ms/op 1.1055 ms/op 1.34
mainnet_e58758 - phase0 processSlashingsReset 7.3540 us/op 3.1870 us/op 2.31
mainnet_e58758 - phase0 processRandaoMixesReset 9.2380 us/op 3.8820 us/op 2.38
mainnet_e58758 - phase0 processHistoricalRootsUpdate 1.3540 us/op 332.00 ns/op 4.08
mainnet_e58758 - phase0 processParticipationRecordUpdates 7.1900 us/op 2.7150 us/op 2.65
mainnet_e58758 - phase0 afterProcessEpoch 99.336 ms/op 75.260 ms/op 1.32
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.4995 ms/op 1.1917 ms/op 1.26
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 4.7365 ms/op 1.9576 ms/op 2.42
altair processInactivityUpdates - 250000 normalcase 23.334 ms/op 15.709 ms/op 1.49
altair processInactivityUpdates - 250000 worstcase 21.872 ms/op 14.662 ms/op 1.49
phase0 processRegistryUpdates - 250000 normalcase 15.089 us/op 7.1800 us/op 2.10
phase0 processRegistryUpdates - 250000 badcase_full_deposits 409.03 us/op 224.49 us/op 1.82
phase0 processRegistryUpdates - 250000 worstcase 0.5 165.78 ms/op 103.53 ms/op 1.60
altair processRewardsAndPenalties - 250000 normalcase 52.059 ms/op 33.945 ms/op 1.53
altair processRewardsAndPenalties - 250000 worstcase 45.923 ms/op 40.177 ms/op 1.14
phase0 getAttestationDeltas - 250000 normalcase 11.877 ms/op 7.9945 ms/op 1.49
phase0 getAttestationDeltas - 250000 worstcase 8.9623 ms/op 7.4945 ms/op 1.20
phase0 processSlashings - 250000 worstcase 111.58 us/op 81.135 us/op 1.38
altair processSyncCommitteeUpdates - 250000 157.41 ms/op 126.45 ms/op 1.24
BeaconState.hashTreeRoot - No change 533.00 ns/op 279.00 ns/op 1.91
BeaconState.hashTreeRoot - 1 full validator 163.65 us/op 141.50 us/op 1.16
BeaconState.hashTreeRoot - 32 full validator 1.6750 ms/op 1.5163 ms/op 1.10
BeaconState.hashTreeRoot - 512 full validator 16.276 ms/op 11.575 ms/op 1.41
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 165.20 us/op 127.73 us/op 1.29
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.1622 ms/op 1.7292 ms/op 1.25
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 24.786 ms/op 19.164 ms/op 1.29
BeaconState.hashTreeRoot - 1 balances 115.98 us/op 98.560 us/op 1.18
BeaconState.hashTreeRoot - 32 balances 1.1543 ms/op 877.18 us/op 1.32
BeaconState.hashTreeRoot - 512 balances 10.961 ms/op 7.4262 ms/op 1.48
BeaconState.hashTreeRoot - 250000 balances 201.03 ms/op 162.08 ms/op 1.24
aggregationBits - 2048 els - zipIndexesInBitList 38.784 us/op 24.170 us/op 1.60
byteArrayEquals 32 60.764 ns/op 53.481 ns/op 1.14
Buffer.compare 32 19.384 ns/op 17.265 ns/op 1.12
byteArrayEquals 1024 1.7718 us/op 1.5885 us/op 1.12
Buffer.compare 1024 29.663 ns/op 24.601 ns/op 1.21
byteArrayEquals 16384 27.642 us/op 25.270 us/op 1.09
Buffer.compare 16384 212.57 ns/op 200.32 ns/op 1.06
byteArrayEquals 123687377 210.01 ms/op 192.82 ms/op 1.09
Buffer.compare 123687377 8.0582 ms/op 7.2191 ms/op 1.12
byteArrayEquals 32 - diff last byte 54.240 ns/op 52.948 ns/op 1.02
Buffer.compare 32 - diff last byte 18.101 ns/op 18.088 ns/op 1.00
byteArrayEquals 1024 - diff last byte 1.6946 us/op 1.5755 us/op 1.08
Buffer.compare 1024 - diff last byte 26.447 ns/op 29.422 ns/op 0.90
byteArrayEquals 16384 - diff last byte 26.808 us/op 25.344 us/op 1.06
Buffer.compare 16384 - diff last byte 193.76 ns/op 188.69 ns/op 1.03
byteArrayEquals 123687377 - diff last byte 197.37 ms/op 190.84 ms/op 1.03
Buffer.compare 123687377 - diff last byte 7.0627 ms/op 6.4936 ms/op 1.09
byteArrayEquals 32 - random bytes 5.3000 ns/op 5.3940 ns/op 0.98
Buffer.compare 32 - random bytes 18.432 ns/op 17.399 ns/op 1.06
byteArrayEquals 1024 - random bytes 5.3530 ns/op 5.1230 ns/op 1.04
Buffer.compare 1024 - random bytes 17.762 ns/op 16.929 ns/op 1.05
byteArrayEquals 16384 - random bytes 5.3540 ns/op 5.0670 ns/op 1.06
Buffer.compare 16384 - random bytes 18.294 ns/op 16.754 ns/op 1.09
byteArrayEquals 123687377 - random bytes 6.8500 ns/op 6.3500 ns/op 1.08
Buffer.compare 123687377 - random bytes 19.660 ns/op 18.180 ns/op 1.08
regular array get 100000 times 45.974 us/op 33.144 us/op 1.39
wrappedArray get 100000 times 36.456 us/op 33.045 us/op 1.10
arrayWithProxy get 100000 times 14.107 ms/op 13.058 ms/op 1.08
ssz.Root.equals 48.796 ns/op 46.165 ns/op 1.06
byteArrayEquals 47.556 ns/op 49.216 ns/op 0.97
Buffer.compare 10.827 ns/op 10.396 ns/op 1.04
shuffle list - 16384 els 6.4630 ms/op 6.3665 ms/op 1.02
shuffle list - 250000 els 96.470 ms/op 91.724 ms/op 1.05
processSlot - 1 slots 14.813 us/op 12.270 us/op 1.21
processSlot - 32 slots 3.9263 ms/op 2.7345 ms/op 1.44
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 37.856 ms/op 35.635 ms/op 1.06
getCommitteeAssignments - req 1 vs - 250000 vc 2.3225 ms/op 2.1492 ms/op 1.08
getCommitteeAssignments - req 100 vs - 250000 vc 4.3848 ms/op 4.2074 ms/op 1.04
getCommitteeAssignments - req 1000 vs - 250000 vc 4.6193 ms/op 4.5694 ms/op 1.01
findModifiedValidators - 10000 modified validators 261.81 ms/op 248.73 ms/op 1.05
findModifiedValidators - 1000 modified validators 173.64 ms/op 185.60 ms/op 0.94
findModifiedValidators - 100 modified validators 170.19 ms/op 182.13 ms/op 0.93
findModifiedValidators - 10 modified validators 161.07 ms/op 174.67 ms/op 0.92
findModifiedValidators - 1 modified validators 186.53 ms/op 170.04 ms/op 1.10
findModifiedValidators - no difference 194.69 ms/op 155.17 ms/op 1.25
compare ViewDUs 3.2020 s/op 3.0480 s/op 1.05
compare each validator Uint8Array 1.4444 s/op 1.2115 s/op 1.19
compare ViewDU to Uint8Array 1.2357 s/op 1.1554 s/op 1.07
migrate state 1000000 validators, 24 modified, 0 new 582.01 ms/op 620.85 ms/op 0.94
migrate state 1000000 validators, 1700 modified, 1000 new 865.29 ms/op 863.83 ms/op 1.00
migrate state 1000000 validators, 3400 modified, 2000 new 1.3115 s/op 1.1560 s/op 1.13
migrate state 1500000 validators, 24 modified, 0 new 569.45 ms/op 643.92 ms/op 0.88
migrate state 1500000 validators, 1700 modified, 1000 new 823.93 ms/op 847.88 ms/op 0.97
migrate state 1500000 validators, 3400 modified, 2000 new 1.0464 s/op 1.0733 s/op 0.97
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.9700 ns/op 4.3500 ns/op 1.14
state getBlockRootAtSlot - 250000 vs - 7PWei 759.47 ns/op 724.78 ns/op 1.05
computeProposers - vc 250000 8.1648 ms/op 7.5738 ms/op 1.08
computeEpochShuffling - vc 250000 95.379 ms/op 92.872 ms/op 1.03
getNextSyncCommittee - vc 250000 138.32 ms/op 120.84 ms/op 1.14
computeSigningRoot for AttestationData 21.906 us/op 24.548 us/op 0.89
hash AttestationData serialized data then Buffer.toString(base64) 1.6462 us/op 1.5169 us/op 1.09
toHexString serialized data 917.15 ns/op 873.44 ns/op 1.05
Buffer.toString(base64) 185.78 ns/op 181.85 ns/op 1.02

by benchmarkbot/action

@wemeetagain wemeetagain merged commit a0f16eb into unstable Aug 7, 2024
19 of 20 checks passed
@wemeetagain wemeetagain deleted the cayman/bump-ssz branch August 7, 2024 20:21
philknows pushed a commit that referenced this pull request Sep 3, 2024
@wemeetagain
Copy link
Member Author

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