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: revert "chore: upgrade to js-libp2p 2.0 (#7077)" #7202

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

wemeetagain
Copy link
Member

This reverts commit d37bdb0.

Motivation

@wemeetagain wemeetagain requested a review from a team as a code owner October 28, 2024 13:38
@wemeetagain wemeetagain changed the title Revert "chore: upgrade to js-libp2p 2.0 (#7077)" chore: Revert "chore: upgrade to js-libp2p 2.0 (#7077)" Oct 28, 2024
@wemeetagain wemeetagain changed the title chore: Revert "chore: upgrade to js-libp2p 2.0 (#7077)" chore: revert "chore: upgrade to js-libp2p 2.0 (#7077)" Oct 28, 2024
Copy link

codecov bot commented Oct 28, 2024

Codecov Report

Attention: Patch coverage is 57.14286% with 42 lines in your changes missing coverage. Please review.

Project coverage is 49.21%. Comparing base (d8b599a) to head (5140d29).
Report is 1 commits behind head on unstable.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #7202   +/-   ##
=========================================
  Coverage     49.21%   49.21%           
=========================================
  Files           598      598           
  Lines         39796    39793    -3     
  Branches       2097     2096    -1     
=========================================
- Hits          19587    19586    -1     
+ Misses        20169    20167    -2     
  Partials         40       40           

@wemeetagain wemeetagain merged commit 4b08c0b into unstable Oct 28, 2024
20 of 22 checks passed
@wemeetagain wemeetagain deleted the cayman/revert-libp2p-2 branch October 28, 2024 14:08
Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: e48fdad Previous: d8b599a Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 2.8091 ms/op 1.8249 ms/op 1.54
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 72.767 us/op 41.941 us/op 1.73
BLS verify - blst 999.35 us/op 907.32 us/op 1.10
BLS verifyMultipleSignatures 3 - blst 1.5774 ms/op 1.3364 ms/op 1.18
BLS verifyMultipleSignatures 8 - blst 2.4404 ms/op 2.2827 ms/op 1.07
BLS verifyMultipleSignatures 32 - blst 7.4367 ms/op 4.4597 ms/op 1.67
BLS verifyMultipleSignatures 64 - blst 15.590 ms/op 8.2968 ms/op 1.88
BLS verifyMultipleSignatures 128 - blst 30.012 ms/op 15.886 ms/op 1.89
BLS deserializing 10000 signatures 900.22 ms/op 597.49 ms/op 1.51
BLS deserializing 100000 signatures 9.6352 s/op 6.2766 s/op 1.54
BLS verifyMultipleSignatures - same message - 3 - blst 1.2929 ms/op 949.54 us/op 1.36
BLS verifyMultipleSignatures - same message - 8 - blst 1.4799 ms/op 1.0752 ms/op 1.38
BLS verifyMultipleSignatures - same message - 32 - blst 2.4708 ms/op 1.6807 ms/op 1.47
BLS verifyMultipleSignatures - same message - 64 - blst 3.7682 ms/op 2.5514 ms/op 1.48
BLS verifyMultipleSignatures - same message - 128 - blst 6.1293 ms/op 4.1658 ms/op 1.47
BLS aggregatePubkeys 32 - blst 30.713 us/op 18.009 us/op 1.71
BLS aggregatePubkeys 128 - blst 104.31 us/op 63.754 us/op 1.64
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 133.63 ms/op 62.382 ms/op 2.14
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 149.54 ms/op 50.373 ms/op 2.97
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 67.363 ms/op 35.147 ms/op 1.92
getSlashingsAndExits - default max 123.21 us/op 64.492 us/op 1.91
getSlashingsAndExits - 2k 517.05 us/op 293.69 us/op 1.76
proposeBlockBody type=full, size=empty 8.1305 ms/op 4.8232 ms/op 1.69
isKnown best case - 1 super set check 482.00 ns/op 530.00 ns/op 0.91
isKnown normal case - 2 super set checks 447.00 ns/op 506.00 ns/op 0.88
isKnown worse case - 16 super set checks 373.00 ns/op 499.00 ns/op 0.75
InMemoryCheckpointStateCache - add get delete 3.9040 us/op 3.3110 us/op 1.18
updateUnfinalizedPubkeys - updating 10 pubkeys 1.3024 ms/op 983.27 us/op 1.32
updateUnfinalizedPubkeys - updating 100 pubkeys 4.1454 ms/op 2.7390 ms/op 1.51
updateUnfinalizedPubkeys - updating 1000 pubkeys 58.588 ms/op 38.608 ms/op 1.52
validate api signedAggregateAndProof - struct 1.6258 ms/op 1.5032 ms/op 1.08
validate gossip signedAggregateAndProof - struct 1.9350 ms/op 1.9341 ms/op 1.00
batch validate gossip attestation - vc 640000 - chunk 32 159.33 us/op 119.36 us/op 1.33
batch validate gossip attestation - vc 640000 - chunk 64 136.46 us/op 103.49 us/op 1.32
batch validate gossip attestation - vc 640000 - chunk 128 119.64 us/op 96.328 us/op 1.24
batch validate gossip attestation - vc 640000 - chunk 256 110.62 us/op 94.069 us/op 1.18
pickEth1Vote - no votes 1.0849 ms/op 880.17 us/op 1.23
pickEth1Vote - max votes 6.2549 ms/op 6.8694 ms/op 0.91
pickEth1Vote - Eth1Data hashTreeRoot value x2048 16.625 ms/op 14.787 ms/op 1.12
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 27.612 ms/op 14.369 ms/op 1.92
pickEth1Vote - Eth1Data fastSerialize value x2048 505.84 us/op 399.58 us/op 1.27
pickEth1Vote - Eth1Data fastSerialize tree x2048 3.6166 ms/op 4.6087 ms/op 0.78
bytes32 toHexString 462.00 ns/op 779.00 ns/op 0.59
bytes32 Buffer.toString(hex) 259.00 ns/op 463.00 ns/op 0.56
bytes32 Buffer.toString(hex) from Uint8Array 397.00 ns/op 672.00 ns/op 0.59
bytes32 Buffer.toString(hex) + 0x 258.00 ns/op 474.00 ns/op 0.54
Object access 1 prop 0.15900 ns/op 0.34300 ns/op 0.46
Map access 1 prop 0.15100 ns/op 0.34600 ns/op 0.44
Object get x1000 6.5170 ns/op 5.6660 ns/op 1.15
Map get x1000 7.5390 ns/op 6.1190 ns/op 1.23
Object set x1000 41.776 ns/op 23.380 ns/op 1.79
Map set x1000 26.424 ns/op 19.907 ns/op 1.33
Return object 10000 times 0.30920 ns/op 0.30760 ns/op 1.01
Throw Error 10000 times 3.7949 us/op 2.7927 us/op 1.36
toHex 178.54 ns/op 119.78 ns/op 1.49
Buffer.from 168.13 ns/op 110.02 ns/op 1.53
shared Buffer 111.04 ns/op 72.699 ns/op 1.53
fastMsgIdFn sha256 / 200 bytes 2.5260 us/op 2.1390 us/op 1.18
fastMsgIdFn h32 xxhash / 200 bytes 312.00 ns/op 462.00 ns/op 0.68
fastMsgIdFn h64 xxhash / 200 bytes 298.00 ns/op 469.00 ns/op 0.64
fastMsgIdFn sha256 / 1000 bytes 7.7880 us/op 6.2180 us/op 1.25
fastMsgIdFn h32 xxhash / 1000 bytes 431.00 ns/op 576.00 ns/op 0.75
fastMsgIdFn h64 xxhash / 1000 bytes 367.00 ns/op 539.00 ns/op 0.68
fastMsgIdFn sha256 / 10000 bytes 68.444 us/op 50.229 us/op 1.36
fastMsgIdFn h32 xxhash / 10000 bytes 2.0110 us/op 1.9940 us/op 1.01
fastMsgIdFn h64 xxhash / 10000 bytes 1.3450 us/op 1.3470 us/op 1.00
send data - 1000 256B messages 14.280 ms/op 14.261 ms/op 1.00
send data - 1000 512B messages 19.528 ms/op 16.523 ms/op 1.18
send data - 1000 1024B messages 29.131 ms/op 25.158 ms/op 1.16
send data - 1000 1200B messages 29.926 ms/op 21.332 ms/op 1.40
send data - 1000 2048B messages 34.913 ms/op 30.490 ms/op 1.15
send data - 1000 4096B messages 32.685 ms/op 24.362 ms/op 1.34
send data - 1000 16384B messages 78.038 ms/op 62.293 ms/op 1.25
send data - 1000 65536B messages 216.63 ms/op 241.34 ms/op 0.90
enrSubnets - fastDeserialize 64 bits 1.1530 us/op 1.2060 us/op 0.96
enrSubnets - ssz BitVector 64 bits 414.00 ns/op 527.00 ns/op 0.79
enrSubnets - fastDeserialize 4 bits 192.00 ns/op 351.00 ns/op 0.55
enrSubnets - ssz BitVector 4 bits 466.00 ns/op 527.00 ns/op 0.88
prioritizePeers score -10:0 att 32-0.1 sync 2-0 193.24 us/op 131.28 us/op 1.47
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 185.51 us/op 137.07 us/op 1.35
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 369.39 us/op 253.24 us/op 1.46
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 516.01 us/op 422.00 us/op 1.22
prioritizePeers score 0:0 att 64-1 sync 4-1 928.29 us/op 473.85 us/op 1.96
array of 16000 items push then shift 1.8066 us/op 1.3058 us/op 1.38
LinkedList of 16000 items push then shift 7.7590 ns/op 6.5890 ns/op 1.18
array of 16000 items push then pop 133.45 ns/op 78.851 ns/op 1.69
LinkedList of 16000 items push then pop 7.6860 ns/op 6.4360 ns/op 1.19
array of 24000 items push then shift 2.6074 us/op 1.9078 us/op 1.37
LinkedList of 24000 items push then shift 7.6810 ns/op 6.4710 ns/op 1.19
array of 24000 items push then pop 162.34 ns/op 113.32 ns/op 1.43
LinkedList of 24000 items push then pop 7.6180 ns/op 6.3460 ns/op 1.20
intersect bitArray bitLen 8 7.1250 ns/op 5.5180 ns/op 1.29
intersect array and set length 8 47.037 ns/op 40.756 ns/op 1.15
intersect bitArray bitLen 128 31.740 ns/op 26.841 ns/op 1.18
intersect array and set length 128 744.83 ns/op 595.86 ns/op 1.25
bitArray.getTrueBitIndexes() bitLen 128 2.3930 us/op 1.7800 us/op 1.34
bitArray.getTrueBitIndexes() bitLen 248 4.1350 us/op 2.3330 us/op 1.77
bitArray.getTrueBitIndexes() bitLen 512 9.4010 us/op 5.4790 us/op 1.72
Buffer.concat 32 items 967.00 ns/op 1.0610 us/op 0.91
Uint8Array.set 32 items 2.2220 us/op 1.3780 us/op 1.61
Buffer.copy 2.5960 us/op 1.4840 us/op 1.75
Uint8Array.set - with subarray 3.4300 us/op 2.0200 us/op 1.70
Uint8Array.set - without subarray 2.0970 us/op 1.2870 us/op 1.63
getUint32 - dataview 242.00 ns/op 422.00 ns/op 0.57
getUint32 - manual 163.00 ns/op 355.00 ns/op 0.46
Set add up to 64 items then delete first 2.3134 us/op 1.8818 us/op 1.23
OrderedSet add up to 64 items then delete first 3.3732 us/op 2.8988 us/op 1.16
Set add up to 64 items then delete last 2.6291 us/op 2.1124 us/op 1.24
OrderedSet add up to 64 items then delete last 4.4843 us/op 3.2058 us/op 1.40
Set add up to 64 items then delete middle 2.7645 us/op 2.1279 us/op 1.30
OrderedSet add up to 64 items then delete middle 6.0760 us/op 4.6198 us/op 1.32
Set add up to 128 items then delete first 5.3410 us/op 4.1580 us/op 1.28
OrderedSet add up to 128 items then delete first 7.9232 us/op 6.5426 us/op 1.21
Set add up to 128 items then delete last 5.8817 us/op 4.0424 us/op 1.45
OrderedSet add up to 128 items then delete last 9.2676 us/op 6.1728 us/op 1.50
Set add up to 128 items then delete middle 5.5349 us/op 4.0799 us/op 1.36
OrderedSet add up to 128 items then delete middle 14.714 us/op 12.524 us/op 1.17
Set add up to 256 items then delete first 10.836 us/op 8.2401 us/op 1.32
OrderedSet add up to 256 items then delete first 15.616 us/op 12.998 us/op 1.20
Set add up to 256 items then delete last 10.273 us/op 7.9680 us/op 1.29
OrderedSet add up to 256 items then delete last 16.115 us/op 12.262 us/op 1.31
Set add up to 256 items then delete middle 10.655 us/op 7.9300 us/op 1.34
OrderedSet add up to 256 items then delete middle 42.889 us/op 35.191 us/op 1.22
transfer serialized Status (84 B) 1.3830 us/op 1.3440 us/op 1.03
copy serialized Status (84 B) 1.1290 us/op 1.1430 us/op 0.99
transfer serialized SignedVoluntaryExit (112 B) 1.5050 us/op 1.3970 us/op 1.08
copy serialized SignedVoluntaryExit (112 B) 1.2350 us/op 1.2070 us/op 1.02
transfer serialized ProposerSlashing (416 B) 2.3270 us/op 1.5390 us/op 1.51
copy serialized ProposerSlashing (416 B) 2.3430 us/op 1.6510 us/op 1.42
transfer serialized Attestation (485 B) 1.7870 us/op 1.5510 us/op 1.15
copy serialized Attestation (485 B) 1.9660 us/op 1.3560 us/op 1.45
transfer serialized AttesterSlashing (33232 B) 2.8690 us/op 1.7150 us/op 1.67
copy serialized AttesterSlashing (33232 B) 5.8780 us/op 3.6870 us/op 1.59
transfer serialized Small SignedBeaconBlock (128000 B) 3.3940 us/op 2.0810 us/op 1.63
copy serialized Small SignedBeaconBlock (128000 B) 19.497 us/op 10.397 us/op 1.88
transfer serialized Avg SignedBeaconBlock (200000 B) 3.2880 us/op 3.2140 us/op 1.02
copy serialized Avg SignedBeaconBlock (200000 B) 23.700 us/op 14.845 us/op 1.60
transfer serialized BlobsSidecar (524380 B) 3.2870 us/op 2.9880 us/op 1.10
copy serialized BlobsSidecar (524380 B) 82.508 us/op 75.204 us/op 1.10
transfer serialized Big SignedBeaconBlock (1000000 B) 4.2430 us/op 3.1750 us/op 1.34
copy serialized Big SignedBeaconBlock (1000000 B) 164.79 us/op 214.35 us/op 0.77
pass gossip attestations to forkchoice per slot 3.7783 ms/op 2.4405 ms/op 1.55
forkChoice updateHead vc 100000 bc 64 eq 0 515.87 us/op 353.19 us/op 1.46
forkChoice updateHead vc 600000 bc 64 eq 0 4.0698 ms/op 2.6585 ms/op 1.53
forkChoice updateHead vc 1000000 bc 64 eq 0 5.8932 ms/op 4.0659 ms/op 1.45
forkChoice updateHead vc 600000 bc 320 eq 0 3.3007 ms/op 2.4492 ms/op 1.35
forkChoice updateHead vc 600000 bc 1200 eq 0 3.5518 ms/op 2.2476 ms/op 1.58
forkChoice updateHead vc 600000 bc 7200 eq 0 4.0215 ms/op 3.1637 ms/op 1.27
forkChoice updateHead vc 600000 bc 64 eq 1000 11.406 ms/op 9.4682 ms/op 1.20
forkChoice updateHead vc 600000 bc 64 eq 10000 11.401 ms/op 9.0856 ms/op 1.25
forkChoice updateHead vc 600000 bc 64 eq 300000 19.815 ms/op 11.977 ms/op 1.65
computeDeltas 500000 validators 300 proto nodes 5.1487 ms/op 4.4504 ms/op 1.16
computeDeltas 500000 validators 1200 proto nodes 5.0650 ms/op 3.5019 ms/op 1.45
computeDeltas 500000 validators 7200 proto nodes 4.9498 ms/op 3.4821 ms/op 1.42
computeDeltas 750000 validators 300 proto nodes 7.3973 ms/op 5.1301 ms/op 1.44
computeDeltas 750000 validators 1200 proto nodes 7.9627 ms/op 5.4964 ms/op 1.45
computeDeltas 750000 validators 7200 proto nodes 7.8925 ms/op 5.1577 ms/op 1.53
computeDeltas 1400000 validators 300 proto nodes 13.767 ms/op 9.0155 ms/op 1.53
computeDeltas 1400000 validators 1200 proto nodes 13.877 ms/op 9.2870 ms/op 1.49
computeDeltas 1400000 validators 7200 proto nodes 13.315 ms/op 8.7609 ms/op 1.52
computeDeltas 2100000 validators 300 proto nodes 19.541 ms/op 13.738 ms/op 1.42
computeDeltas 2100000 validators 1200 proto nodes 20.064 ms/op 14.314 ms/op 1.40
computeDeltas 2100000 validators 7200 proto nodes 20.669 ms/op 14.899 ms/op 1.39
altair processAttestation - 250000 vs - 7PWei normalcase 2.6385 ms/op 2.2338 ms/op 1.18
altair processAttestation - 250000 vs - 7PWei worstcase 2.8755 ms/op 2.3962 ms/op 1.20
altair processAttestation - setStatus - 1/6 committees join 123.96 us/op 77.423 us/op 1.60
altair processAttestation - setStatus - 1/3 committees join 243.80 us/op 156.02 us/op 1.56
altair processAttestation - setStatus - 1/2 committees join 351.84 us/op 201.32 us/op 1.75
altair processAttestation - setStatus - 2/3 committees join 444.52 us/op 293.26 us/op 1.52
altair processAttestation - setStatus - 4/5 committees join 615.35 us/op 432.04 us/op 1.42
altair processAttestation - setStatus - 100% committees join 723.75 us/op 547.13 us/op 1.32
altair processBlock - 250000 vs - 7PWei normalcase 4.8699 ms/op 4.1207 ms/op 1.18
altair processBlock - 250000 vs - 7PWei normalcase hashState 28.694 ms/op 27.402 ms/op 1.05
altair processBlock - 250000 vs - 7PWei worstcase 39.348 ms/op 36.801 ms/op 1.07
altair processBlock - 250000 vs - 7PWei worstcase hashState 83.740 ms/op 68.552 ms/op 1.22
phase0 processBlock - 250000 vs - 7PWei normalcase 2.3541 ms/op 2.3741 ms/op 0.99
phase0 processBlock - 250000 vs - 7PWei worstcase 26.478 ms/op 26.975 ms/op 0.98
altair processEth1Data - 250000 vs - 7PWei normalcase 318.31 us/op 494.87 us/op 0.64
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 9.9510 us/op 8.0850 us/op 1.23
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 38.250 us/op 33.856 us/op 1.13
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 13.996 us/op 10.435 us/op 1.34
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 6.9740 us/op 6.6440 us/op 1.05
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 172.90 us/op 116.30 us/op 1.49
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.5338 ms/op 897.26 us/op 1.71
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 2.1620 ms/op 1.2778 ms/op 1.69
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 2.0565 ms/op 1.2250 ms/op 1.68
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 4.2469 ms/op 2.9760 ms/op 1.43
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.9541 ms/op 1.2296 ms/op 1.59
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.3967 ms/op 3.0461 ms/op 1.44
Tree 40 250000 create 290.29 ms/op 179.50 ms/op 1.62
Tree 40 250000 get(125000) 167.16 ns/op 119.36 ns/op 1.40
Tree 40 250000 set(125000) 718.32 ns/op 565.42 ns/op 1.27
Tree 40 250000 toArray() 21.153 ms/op 15.486 ms/op 1.37
Tree 40 250000 iterate all - toArray() + loop 21.609 ms/op 21.759 ms/op 0.99
Tree 40 250000 iterate all - get(i) 68.161 ms/op 54.045 ms/op 1.26
Array 250000 create 4.3028 ms/op 2.8988 ms/op 1.48
Array 250000 clone - spread 1.8581 ms/op 1.3913 ms/op 1.34
Array 250000 get(125000) 0.53700 ns/op 0.67400 ns/op 0.80
Array 250000 set(125000) 0.51400 ns/op 0.62900 ns/op 0.82
Array 250000 iterate all - loop 119.20 us/op 80.776 us/op 1.48
phase0 afterProcessEpoch - 250000 vs - 7PWei 63.474 ms/op 45.552 ms/op 1.39
Array.fill - length 1000000 4.4366 ms/op 2.6572 ms/op 1.67
Array push - length 1000000 30.572 ms/op 19.962 ms/op 1.53
Array.get 0.30194 ns/op 0.27044 ns/op 1.12
Uint8Array.get 0.48856 ns/op 0.35883 ns/op 1.36
phase0 beforeProcessEpoch - 250000 vs - 7PWei 25.354 ms/op 21.492 ms/op 1.18
altair processEpoch - mainnet_e81889 337.46 ms/op 321.03 ms/op 1.05
mainnet_e81889 - altair beforeProcessEpoch 22.970 ms/op 22.098 ms/op 1.04
mainnet_e81889 - altair processJustificationAndFinalization 28.520 us/op 16.098 us/op 1.77
mainnet_e81889 - altair processInactivityUpdates 6.4881 ms/op 7.4955 ms/op 0.87
mainnet_e81889 - altair processRewardsAndPenalties 60.516 ms/op 42.504 ms/op 1.42
mainnet_e81889 - altair processRegistryUpdates 3.1470 us/op 3.5410 us/op 0.89
mainnet_e81889 - altair processSlashings 1.2500 us/op 825.00 ns/op 1.52
mainnet_e81889 - altair processEth1DataReset 433.00 ns/op 885.00 ns/op 0.49
mainnet_e81889 - altair processEffectiveBalanceUpdates 2.4395 ms/op 1.2410 ms/op 1.97
mainnet_e81889 - altair processSlashingsReset 3.0430 us/op 2.5280 us/op 1.20
mainnet_e81889 - altair processRandaoMixesReset 3.7520 us/op 3.6310 us/op 1.03
mainnet_e81889 - altair processHistoricalRootsUpdate 453.00 ns/op 953.00 ns/op 0.48
mainnet_e81889 - altair processParticipationFlagUpdates 3.5580 us/op 3.5490 us/op 1.00
mainnet_e81889 - altair processSyncCommitteeUpdates 447.00 ns/op 756.00 ns/op 0.59
mainnet_e81889 - altair afterProcessEpoch 55.545 ms/op 43.339 ms/op 1.28
capella processEpoch - mainnet_e217614 1.0803 s/op 1.0908 s/op 0.99
mainnet_e217614 - capella beforeProcessEpoch 71.030 ms/op 71.705 ms/op 0.99
mainnet_e217614 - capella processJustificationAndFinalization 24.364 us/op 13.462 us/op 1.81
mainnet_e217614 - capella processInactivityUpdates 17.473 ms/op 15.803 ms/op 1.11
mainnet_e217614 - capella processRewardsAndPenalties 256.09 ms/op 233.26 ms/op 1.10
mainnet_e217614 - capella processRegistryUpdates 19.743 us/op 12.302 us/op 1.60
mainnet_e217614 - capella processSlashings 593.00 ns/op 965.00 ns/op 0.61
mainnet_e217614 - capella processEth1DataReset 406.00 ns/op 784.00 ns/op 0.52
mainnet_e217614 - capella processEffectiveBalanceUpdates 13.540 ms/op 5.2233 ms/op 2.59
mainnet_e217614 - capella processSlashingsReset 2.3440 us/op 3.8600 us/op 0.61
mainnet_e217614 - capella processRandaoMixesReset 5.7770 us/op 6.5910 us/op 0.88
mainnet_e217614 - capella processHistoricalRootsUpdate 1.8730 us/op 965.00 ns/op 1.94
mainnet_e217614 - capella processParticipationFlagUpdates 3.2400 us/op 4.6360 us/op 0.70
mainnet_e217614 - capella afterProcessEpoch 130.22 ms/op 111.33 ms/op 1.17
phase0 processEpoch - mainnet_e58758 349.69 ms/op 424.23 ms/op 0.82
mainnet_e58758 - phase0 beforeProcessEpoch 85.089 ms/op 101.70 ms/op 0.84
mainnet_e58758 - phase0 processJustificationAndFinalization 18.948 us/op 25.678 us/op 0.74
mainnet_e58758 - phase0 processRewardsAndPenalties 42.048 ms/op 35.252 ms/op 1.19
mainnet_e58758 - phase0 processRegistryUpdates 11.641 us/op 13.804 us/op 0.84
mainnet_e58758 - phase0 processSlashings 417.00 ns/op 1.2900 us/op 0.32
mainnet_e58758 - phase0 processEth1DataReset 311.00 ns/op 921.00 ns/op 0.34
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 2.0614 ms/op 865.17 us/op 2.38
mainnet_e58758 - phase0 processSlashingsReset 4.6480 us/op 4.9010 us/op 0.95
mainnet_e58758 - phase0 processRandaoMixesReset 4.1710 us/op 9.0500 us/op 0.46
mainnet_e58758 - phase0 processHistoricalRootsUpdate 524.00 ns/op 1.8610 us/op 0.28
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.8000 us/op 8.5510 us/op 0.56
mainnet_e58758 - phase0 afterProcessEpoch 45.570 ms/op 41.596 ms/op 1.10
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.7133 ms/op 1.4351 ms/op 1.19
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 2.1848 ms/op 2.2290 ms/op 0.98
altair processInactivityUpdates - 250000 normalcase 18.548 ms/op 23.225 ms/op 0.80
altair processInactivityUpdates - 250000 worstcase 20.995 ms/op 21.480 ms/op 0.98
phase0 processRegistryUpdates - 250000 normalcase 9.6090 us/op 11.951 us/op 0.80
phase0 processRegistryUpdates - 250000 badcase_full_deposits 370.66 us/op 315.55 us/op 1.17
phase0 processRegistryUpdates - 250000 worstcase 0.5 136.08 ms/op 167.05 ms/op 0.81
altair processRewardsAndPenalties - 250000 normalcase 45.292 ms/op 42.919 ms/op 1.06
altair processRewardsAndPenalties - 250000 worstcase 47.185 ms/op 54.402 ms/op 0.87
phase0 getAttestationDeltas - 250000 normalcase 8.3376 ms/op 12.621 ms/op 0.66
phase0 getAttestationDeltas - 250000 worstcase 8.1941 ms/op 8.5105 ms/op 0.96
phase0 processSlashings - 250000 worstcase 96.928 us/op 98.996 us/op 0.98
altair processSyncCommitteeUpdates - 250000 131.01 ms/op 119.28 ms/op 1.10
BeaconState.hashTreeRoot - No change 325.00 ns/op 608.00 ns/op 0.53
BeaconState.hashTreeRoot - 1 full validator 140.26 us/op 121.24 us/op 1.16
BeaconState.hashTreeRoot - 32 full validator 1.5816 ms/op 1.0226 ms/op 1.55
BeaconState.hashTreeRoot - 512 full validator 12.453 ms/op 8.3969 ms/op 1.48
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 165.67 us/op 135.94 us/op 1.22
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.4391 ms/op 2.4203 ms/op 1.01
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 22.520 ms/op 33.734 ms/op 0.67
BeaconState.hashTreeRoot - 1 balances 91.210 us/op 135.28 us/op 0.67
BeaconState.hashTreeRoot - 32 balances 1.2835 ms/op 921.95 us/op 1.39
BeaconState.hashTreeRoot - 512 balances 7.8718 ms/op 7.5291 ms/op 1.05
BeaconState.hashTreeRoot - 250000 balances 158.19 ms/op 191.46 ms/op 0.83
aggregationBits - 2048 els - zipIndexesInBitList 23.898 us/op 27.248 us/op 0.88
byteArrayEquals 32 54.920 ns/op 44.761 ns/op 1.23
Buffer.compare 32 17.678 ns/op 17.150 ns/op 1.03
byteArrayEquals 1024 1.6360 us/op 1.3317 us/op 1.23
Buffer.compare 1024 26.465 ns/op 24.602 ns/op 1.08
byteArrayEquals 16384 25.766 us/op 21.293 us/op 1.21
Buffer.compare 16384 207.30 ns/op 211.30 ns/op 0.98
byteArrayEquals 123687377 199.29 ms/op 160.18 ms/op 1.24
Buffer.compare 123687377 7.6381 ms/op 6.5191 ms/op 1.17
byteArrayEquals 32 - diff last byte 58.382 ns/op 47.959 ns/op 1.22
Buffer.compare 32 - diff last byte 19.984 ns/op 16.177 ns/op 1.24
byteArrayEquals 1024 - diff last byte 1.7804 us/op 1.2546 us/op 1.42
Buffer.compare 1024 - diff last byte 28.870 ns/op 24.866 ns/op 1.16
byteArrayEquals 16384 - diff last byte 27.022 us/op 20.155 us/op 1.34
Buffer.compare 16384 - diff last byte 217.20 ns/op 175.11 ns/op 1.24
byteArrayEquals 123687377 - diff last byte 206.34 ms/op 155.47 ms/op 1.33
Buffer.compare 123687377 - diff last byte 7.5339 ms/op 5.8910 ms/op 1.28
byteArrayEquals 32 - random bytes 5.6530 ns/op 5.0600 ns/op 1.12
Buffer.compare 32 - random bytes 19.247 ns/op 16.373 ns/op 1.18
byteArrayEquals 1024 - random bytes 5.5940 ns/op 5.0330 ns/op 1.11
Buffer.compare 1024 - random bytes 19.131 ns/op 16.109 ns/op 1.19
byteArrayEquals 16384 - random bytes 5.6100 ns/op 5.0060 ns/op 1.12
Buffer.compare 16384 - random bytes 19.577 ns/op 15.967 ns/op 1.23
byteArrayEquals 123687377 - random bytes 6.9500 ns/op 8.1500 ns/op 0.85
Buffer.compare 123687377 - random bytes 20.280 ns/op 19.770 ns/op 1.03
regular array get 100000 times 40.144 us/op 31.952 us/op 1.26
wrappedArray get 100000 times 38.492 us/op 31.793 us/op 1.21
arrayWithProxy get 100000 times 14.759 ms/op 10.128 ms/op 1.46
ssz.Root.equals 49.027 ns/op 45.685 ns/op 1.07
byteArrayEquals 48.913 ns/op 38.757 ns/op 1.26
Buffer.compare 11.086 ns/op 9.0020 ns/op 1.23
processSlot - 1 slots 18.603 us/op 20.464 us/op 0.91
processSlot - 32 slots 3.4285 ms/op 3.4663 ms/op 0.99
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 41.355 ms/op 38.088 ms/op 1.09
getCommitteeAssignments - req 1 vs - 250000 vc 2.1890 ms/op 1.8523 ms/op 1.18
getCommitteeAssignments - req 100 vs - 250000 vc 4.1897 ms/op 3.6381 ms/op 1.15
getCommitteeAssignments - req 1000 vs - 250000 vc 4.5253 ms/op 3.9471 ms/op 1.15
findModifiedValidators - 10000 modified validators 258.91 ms/op 260.55 ms/op 0.99
findModifiedValidators - 1000 modified validators 169.85 ms/op 173.89 ms/op 0.98
findModifiedValidators - 100 modified validators 154.47 ms/op 163.75 ms/op 0.94
findModifiedValidators - 10 modified validators 136.91 ms/op 160.64 ms/op 0.85
findModifiedValidators - 1 modified validators 144.52 ms/op 177.28 ms/op 0.82
findModifiedValidators - no difference 158.12 ms/op 168.78 ms/op 0.94
compare ViewDUs 3.3399 s/op 3.1476 s/op 1.06
compare each validator Uint8Array 1.6023 s/op 1.5719 s/op 1.02
compare ViewDU to Uint8Array 1.1277 s/op 1.0432 s/op 1.08
migrate state 1000000 validators, 24 modified, 0 new 792.57 ms/op 747.21 ms/op 1.06
migrate state 1000000 validators, 1700 modified, 1000 new 1.0591 s/op 903.52 ms/op 1.17
migrate state 1000000 validators, 3400 modified, 2000 new 1.3310 s/op 1.1006 s/op 1.21
migrate state 1500000 validators, 24 modified, 0 new 934.56 ms/op 689.40 ms/op 1.36
migrate state 1500000 validators, 1700 modified, 1000 new 1.1794 s/op 869.44 ms/op 1.36
migrate state 1500000 validators, 3400 modified, 2000 new 1.4240 s/op 978.41 ms/op 1.46
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 5.1800 ns/op 6.4800 ns/op 0.80
state getBlockRootAtSlot - 250000 vs - 7PWei 688.63 ns/op 400.10 ns/op 1.72
computeProposers - vc 250000 7.9291 ms/op 5.5577 ms/op 1.43
computeEpochShuffling - vc 250000 46.128 ms/op 35.915 ms/op 1.28
getNextSyncCommittee - vc 250000 134.71 ms/op 97.955 ms/op 1.38
computeSigningRoot for AttestationData 24.483 us/op 14.733 us/op 1.66
hash AttestationData serialized data then Buffer.toString(base64) 1.8254 us/op 1.2239 us/op 1.49
toHexString serialized data 955.53 ns/op 819.88 ns/op 1.17
Buffer.toString(base64) 180.05 ns/op 150.73 ns/op 1.19
nodejs block root to RootHex using toHex 176.01 ns/op 110.53 ns/op 1.59
nodejs block root to RootHex using toRootHex 95.300 ns/op 71.189 ns/op 1.34
browser block root to RootHex using the deprecated toHexString 240.33 ns/op 212.09 ns/op 1.13
browser block root to RootHex using toHex 190.99 ns/op 178.01 ns/op 1.07
browser block root to RootHex using toRootHex 182.33 ns/op 156.49 ns/op 1.17

by benchmarkbot/action

@wemeetagain
Copy link
Member Author

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