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: cleanup older dependencies #6482

Merged
merged 2 commits into from Feb 26, 2024
Merged

Conversation

jeluard
Copy link
Member

@jeluard jeluard commented Feb 26, 2024

Motivation

Remove unused dependencies and move dev dependencies to the proper section.
Used depcheck to identify all relevant dependencies / devDependencies. We might consider automating those checks down the line.

Copy link

codecov bot commented Feb 26, 2024

Codecov Report

Merging #6482 (7039c8c) into unstable (2bb4ae6) will not change coverage.
Report is 1 commits behind head on unstable.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #6482   +/-   ##
=========================================
  Coverage     61.72%   61.72%           
=========================================
  Files           555      555           
  Lines         58204    58204           
  Branches       1839     1839           
=========================================
  Hits          35925    35925           
  Misses        22240    22240           
  Partials         39       39           

Copy link
Contributor

github-actions bot commented Feb 26, 2024

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: a3de30b Previous: e9a3f07 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 679.84 us/op 909.23 us/op 0.75
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 99.682 us/op 176.03 us/op 0.57
BLS verify - blst-native 1.3422 ms/op 1.4517 ms/op 0.92
BLS verifyMultipleSignatures 3 - blst-native 2.8498 ms/op 3.1202 ms/op 0.91
BLS verifyMultipleSignatures 8 - blst-native 6.2230 ms/op 6.4448 ms/op 0.97
BLS verifyMultipleSignatures 32 - blst-native 23.491 ms/op 23.893 ms/op 0.98
BLS verifyMultipleSignatures 64 - blst-native 44.914 ms/op 46.184 ms/op 0.97
BLS verifyMultipleSignatures 128 - blst-native 89.259 ms/op 92.869 ms/op 0.96
BLS deserializing 10000 signatures 960.14 ms/op 965.83 ms/op 0.99
BLS deserializing 100000 signatures 9.6606 s/op 9.5495 s/op 1.01
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.3506 ms/op 1.4762 ms/op 0.91
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.5469 ms/op 1.6473 ms/op 0.94
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.3573 ms/op 2.5651 ms/op 0.92
BLS verifyMultipleSignatures - same message - 64 - blst-native 4.5389 ms/op 3.6115 ms/op 1.26
BLS verifyMultipleSignatures - same message - 128 - blst-native 7.9855 ms/op 6.1982 ms/op 1.29
BLS aggregatePubkeys 32 - blst-native 25.714 us/op 28.007 us/op 0.92
BLS aggregatePubkeys 128 - blst-native 104.23 us/op 110.23 us/op 0.95
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 58.972 ms/op 64.292 ms/op 0.92
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 51.696 ms/op 66.163 ms/op 0.78
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 34.727 ms/op 51.816 ms/op 0.67
getSlashingsAndExits - default max 291.25 us/op 277.56 us/op 1.05
getSlashingsAndExits - 2k 663.36 us/op 719.97 us/op 0.92
proposeBlockBody type=full, size=empty 6.6812 ms/op 6.6901 ms/op 1.00
isKnown best case - 1 super set check 720.00 ns/op 608.00 ns/op 1.18
isKnown normal case - 2 super set checks 667.00 ns/op 647.00 ns/op 1.03
isKnown worse case - 16 super set checks 716.00 ns/op 641.00 ns/op 1.12
CheckpointStateCache - add get delete 7.2510 us/op 6.6130 us/op 1.10
validate api signedAggregateAndProof - struct 2.9944 ms/op 3.0467 ms/op 0.98
validate gossip signedAggregateAndProof - struct 2.9812 ms/op 3.0523 ms/op 0.98
validate gossip attestation - vc 640000 1.4430 ms/op 1.4803 ms/op 0.97
batch validate gossip attestation - vc 640000 - chunk 32 183.15 us/op 190.77 us/op 0.96
batch validate gossip attestation - vc 640000 - chunk 64 163.53 us/op 167.52 us/op 0.98
batch validate gossip attestation - vc 640000 - chunk 128 160.51 us/op 166.57 us/op 0.96
batch validate gossip attestation - vc 640000 - chunk 256 151.30 us/op 150.91 us/op 1.00
pickEth1Vote - no votes 1.4636 ms/op 1.3762 ms/op 1.06
pickEth1Vote - max votes 14.348 ms/op 12.587 ms/op 1.14
pickEth1Vote - Eth1Data hashTreeRoot value x2048 23.304 ms/op 22.743 ms/op 1.02
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 35.704 ms/op 29.622 ms/op 1.21
pickEth1Vote - Eth1Data fastSerialize value x2048 863.96 us/op 791.90 us/op 1.09
pickEth1Vote - Eth1Data fastSerialize tree x2048 8.2351 ms/op 5.9118 ms/op 1.39
bytes32 toHexString 774.00 ns/op 749.00 ns/op 1.03
bytes32 Buffer.toString(hex) 317.00 ns/op 348.00 ns/op 0.91
bytes32 Buffer.toString(hex) from Uint8Array 560.00 ns/op 578.00 ns/op 0.97
bytes32 Buffer.toString(hex) + 0x 336.00 ns/op 319.00 ns/op 1.05
Object access 1 prop 0.20000 ns/op 0.24000 ns/op 0.83
Map access 1 prop 0.16000 ns/op 0.15700 ns/op 1.02
Object get x1000 8.1980 ns/op 7.7110 ns/op 1.06
Map get x1000 0.87000 ns/op 0.88600 ns/op 0.98
Object set x1000 69.875 ns/op 60.314 ns/op 1.16
Map set x1000 48.538 ns/op 49.842 ns/op 0.97
Return object 10000 times 0.25330 ns/op 0.25410 ns/op 1.00
Throw Error 10000 times 4.2362 us/op 4.1639 us/op 1.02
fastMsgIdFn sha256 / 200 bytes 3.5180 us/op 3.5780 us/op 0.98
fastMsgIdFn h32 xxhash / 200 bytes 346.00 ns/op 374.00 ns/op 0.93
fastMsgIdFn h64 xxhash / 200 bytes 384.00 ns/op 425.00 ns/op 0.90
fastMsgIdFn sha256 / 1000 bytes 12.001 us/op 12.372 us/op 0.97
fastMsgIdFn h32 xxhash / 1000 bytes 471.00 ns/op 502.00 ns/op 0.94
fastMsgIdFn h64 xxhash / 1000 bytes 460.00 ns/op 495.00 ns/op 0.93
fastMsgIdFn sha256 / 10000 bytes 106.09 us/op 107.18 us/op 0.99
fastMsgIdFn h32 xxhash / 10000 bytes 2.0010 us/op 2.1650 us/op 0.92
fastMsgIdFn h64 xxhash / 10000 bytes 1.4430 us/op 1.5140 us/op 0.95
send data - 1000 256B messages 20.908 ms/op 23.393 ms/op 0.89
send data - 1000 512B messages 28.479 ms/op 33.827 ms/op 0.84
send data - 1000 1024B messages 40.944 ms/op 48.911 ms/op 0.84
send data - 1000 1200B messages 39.997 ms/op 49.969 ms/op 0.80
send data - 1000 2048B messages 52.235 ms/op 60.775 ms/op 0.86
send data - 1000 4096B messages 28.730 ms/op 54.334 ms/op 0.53
send data - 1000 16384B messages 122.96 ms/op 134.98 ms/op 0.91
send data - 1000 65536B messages 473.78 ms/op 499.19 ms/op 0.95
enrSubnets - fastDeserialize 64 bits 1.4120 us/op 1.5350 us/op 0.92
enrSubnets - ssz BitVector 64 bits 429.00 ns/op 554.00 ns/op 0.77
enrSubnets - fastDeserialize 4 bits 212.00 ns/op 222.00 ns/op 0.95
enrSubnets - ssz BitVector 4 bits 504.00 ns/op 521.00 ns/op 0.97
prioritizePeers score -10:0 att 32-0.1 sync 2-0 123.87 us/op 126.25 us/op 0.98
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 158.81 us/op 150.42 us/op 1.06
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 203.11 us/op 213.34 us/op 0.95
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 366.19 us/op 365.44 us/op 1.00
prioritizePeers score 0:0 att 64-1 sync 4-1 401.95 us/op 419.65 us/op 0.96
array of 16000 items push then shift 1.7670 us/op 1.8476 us/op 0.96
LinkedList of 16000 items push then shift 9.8250 ns/op 9.9920 ns/op 0.98
array of 16000 items push then pop 129.45 ns/op 119.53 ns/op 1.08
LinkedList of 16000 items push then pop 9.5410 ns/op 9.5560 ns/op 1.00
array of 24000 items push then shift 3.0104 us/op 2.7184 us/op 1.11
LinkedList of 24000 items push then shift 10.891 ns/op 9.5410 ns/op 1.14
array of 24000 items push then pop 170.81 ns/op 158.79 ns/op 1.08
LinkedList of 24000 items push then pop 9.4760 ns/op 9.1590 ns/op 1.03
intersect bitArray bitLen 8 6.1480 ns/op 6.1740 ns/op 1.00
intersect array and set length 8 88.914 ns/op 85.586 ns/op 1.04
intersect bitArray bitLen 128 38.927 ns/op 37.211 ns/op 1.05
intersect array and set length 128 1.1551 us/op 1.1068 us/op 1.04
bitArray.getTrueBitIndexes() bitLen 128 1.8810 us/op 1.6530 us/op 1.14
bitArray.getTrueBitIndexes() bitLen 248 3.3590 us/op 3.1290 us/op 1.07
bitArray.getTrueBitIndexes() bitLen 512 6.8670 us/op 6.5890 us/op 1.04
Buffer.concat 32 items 1.1220 us/op 1.1300 us/op 0.99
Uint8Array.set 32 items 2.5150 us/op 2.1200 us/op 1.19
Set add up to 64 items then delete first 5.2380 us/op 5.1507 us/op 1.02
OrderedSet add up to 64 items then delete first 7.2287 us/op 6.4288 us/op 1.12
Set add up to 64 items then delete last 5.6306 us/op 5.4642 us/op 1.03
OrderedSet add up to 64 items then delete last 6.9892 us/op 7.0399 us/op 0.99
Set add up to 64 items then delete middle 5.5852 us/op 5.5564 us/op 1.01
OrderedSet add up to 64 items then delete middle 8.6058 us/op 8.3533 us/op 1.03
Set add up to 128 items then delete first 10.702 us/op 10.679 us/op 1.00
OrderedSet add up to 128 items then delete first 15.247 us/op 15.074 us/op 1.01
Set add up to 128 items then delete last 10.967 us/op 9.9780 us/op 1.10
OrderedSet add up to 128 items then delete last 15.179 us/op 12.264 us/op 1.24
Set add up to 128 items then delete middle 11.089 us/op 10.612 us/op 1.04
OrderedSet add up to 128 items then delete middle 20.568 us/op 18.836 us/op 1.09
Set add up to 256 items then delete first 23.395 us/op 21.874 us/op 1.07
OrderedSet add up to 256 items then delete first 30.862 us/op 31.049 us/op 0.99
Set add up to 256 items then delete last 22.057 us/op 21.717 us/op 1.02
OrderedSet add up to 256 items then delete last 28.535 us/op 29.498 us/op 0.97
Set add up to 256 items then delete middle 21.985 us/op 21.927 us/op 1.00
OrderedSet add up to 256 items then delete middle 52.543 us/op 54.350 us/op 0.97
transfer serialized Status (84 B) 2.0670 us/op 2.0850 us/op 0.99
copy serialized Status (84 B) 1.4910 us/op 1.5710 us/op 0.95
transfer serialized SignedVoluntaryExit (112 B) 2.3530 us/op 2.1800 us/op 1.08
copy serialized SignedVoluntaryExit (112 B) 1.7580 us/op 1.6280 us/op 1.08
transfer serialized ProposerSlashing (416 B) 3.4810 us/op 2.9100 us/op 1.20
copy serialized ProposerSlashing (416 B) 3.1490 us/op 2.3870 us/op 1.32
transfer serialized Attestation (485 B) 3.1330 us/op 3.0320 us/op 1.03
copy serialized Attestation (485 B) 2.4640 us/op 2.7700 us/op 0.89
transfer serialized AttesterSlashing (33232 B) 2.1820 us/op 2.6820 us/op 0.81
copy serialized AttesterSlashing (33232 B) 6.2920 us/op 10.100 us/op 0.62
transfer serialized Small SignedBeaconBlock (128000 B) 2.6770 us/op 3.3350 us/op 0.80
copy serialized Small SignedBeaconBlock (128000 B) 20.825 us/op 35.557 us/op 0.59
transfer serialized Avg SignedBeaconBlock (200000 B) 3.5270 us/op 3.9050 us/op 0.90
copy serialized Avg SignedBeaconBlock (200000 B) 34.527 us/op 56.749 us/op 0.61
transfer serialized BlobsSidecar (524380 B) 4.1930 us/op 5.2060 us/op 0.81
copy serialized BlobsSidecar (524380 B) 235.65 us/op 157.04 us/op 1.50
transfer serialized Big SignedBeaconBlock (1000000 B) 4.7270 us/op 5.6050 us/op 0.84
copy serialized Big SignedBeaconBlock (1000000 B) 223.25 us/op 266.79 us/op 0.84
pass gossip attestations to forkchoice per slot 4.6612 ms/op 4.4621 ms/op 1.04
forkChoice updateHead vc 100000 bc 64 eq 0 703.82 us/op 857.92 us/op 0.82
forkChoice updateHead vc 600000 bc 64 eq 0 4.9280 ms/op 6.4958 ms/op 0.76
forkChoice updateHead vc 1000000 bc 64 eq 0 8.4834 ms/op 9.9555 ms/op 0.85
forkChoice updateHead vc 600000 bc 320 eq 0 4.4016 ms/op 5.5103 ms/op 0.80
forkChoice updateHead vc 600000 bc 1200 eq 0 4.5498 ms/op 4.9572 ms/op 0.92
forkChoice updateHead vc 600000 bc 7200 eq 0 5.5918 ms/op 7.0997 ms/op 0.79
forkChoice updateHead vc 600000 bc 64 eq 1000 11.584 ms/op 12.016 ms/op 0.96
forkChoice updateHead vc 600000 bc 64 eq 10000 12.430 ms/op 12.652 ms/op 0.98
forkChoice updateHead vc 600000 bc 64 eq 300000 19.938 ms/op 19.217 ms/op 1.04
computeDeltas 500000 validators 300 proto nodes 7.3552 ms/op 7.6705 ms/op 0.96
computeDeltas 500000 validators 1200 proto nodes 7.6530 ms/op 7.7129 ms/op 0.99
computeDeltas 500000 validators 7200 proto nodes 7.2439 ms/op 7.7964 ms/op 0.93
computeDeltas 750000 validators 300 proto nodes 11.662 ms/op 11.200 ms/op 1.04
computeDeltas 750000 validators 1200 proto nodes 12.638 ms/op 10.992 ms/op 1.15
computeDeltas 750000 validators 7200 proto nodes 13.009 ms/op 11.321 ms/op 1.15
computeDeltas 1400000 validators 300 proto nodes 24.219 ms/op 21.191 ms/op 1.14
computeDeltas 1400000 validators 1200 proto nodes 24.637 ms/op 23.714 ms/op 1.04
computeDeltas 1400000 validators 7200 proto nodes 24.703 ms/op 21.121 ms/op 1.17
computeDeltas 2100000 validators 300 proto nodes 35.616 ms/op 33.867 ms/op 1.05
computeDeltas 2100000 validators 1200 proto nodes 35.007 ms/op 32.824 ms/op 1.07
computeDeltas 2100000 validators 7200 proto nodes 36.183 ms/op 32.033 ms/op 1.13
altair processAttestation - 250000 vs - 7PWei normalcase 5.3627 ms/op 3.5696 ms/op 1.50
altair processAttestation - 250000 vs - 7PWei worstcase 6.4051 ms/op 4.6604 ms/op 1.37
altair processAttestation - setStatus - 1/6 committees join 234.61 us/op 197.61 us/op 1.19
altair processAttestation - setStatus - 1/3 committees join 487.18 us/op 432.89 us/op 1.13
altair processAttestation - setStatus - 1/2 committees join 503.82 us/op 590.04 us/op 0.85
altair processAttestation - setStatus - 2/3 committees join 711.75 us/op 679.38 us/op 1.05
altair processAttestation - setStatus - 4/5 committees join 955.08 us/op 917.64 us/op 1.04
altair processAttestation - setStatus - 100% committees join 1.1849 ms/op 1.1655 ms/op 1.02
altair processBlock - 250000 vs - 7PWei normalcase 14.286 ms/op 11.978 ms/op 1.19
altair processBlock - 250000 vs - 7PWei normalcase hashState 51.146 ms/op 40.631 ms/op 1.26
altair processBlock - 250000 vs - 7PWei worstcase 59.462 ms/op 51.440 ms/op 1.16
altair processBlock - 250000 vs - 7PWei worstcase hashState 128.42 ms/op 123.08 ms/op 1.04
phase0 processBlock - 250000 vs - 7PWei normalcase 4.5525 ms/op 3.5723 ms/op 1.27
phase0 processBlock - 250000 vs - 7PWei worstcase 41.286 ms/op 41.535 ms/op 0.99
altair processEth1Data - 250000 vs - 7PWei normalcase 928.35 us/op 1.0308 ms/op 0.90
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 16.720 us/op 18.811 us/op 0.89
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 89.242 us/op 72.328 us/op 1.23
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 38.947 us/op 31.929 us/op 1.22
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 28.054 us/op 17.091 us/op 1.64
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 287.62 us/op 305.01 us/op 0.94
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 2.5928 ms/op 1.9383 ms/op 1.34
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 3.0220 ms/op 2.5102 ms/op 1.20
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 3.1537 ms/op 2.1626 ms/op 1.46
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 7.0843 ms/op 4.8736 ms/op 1.45
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 3.4795 ms/op 3.4106 ms/op 1.02
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 11.996 ms/op 8.4965 ms/op 1.41
Tree 40 250000 create 908.58 ms/op 825.72 ms/op 1.10
Tree 40 250000 get(125000) 240.54 ns/op 237.56 ns/op 1.01
Tree 40 250000 set(125000) 2.9993 us/op 2.6310 us/op 1.14
Tree 40 250000 toArray() 29.575 ms/op 27.695 ms/op 1.07
Tree 40 250000 iterate all - toArray() + loop 31.346 ms/op 28.573 ms/op 1.10
Tree 40 250000 iterate all - get(i) 89.834 ms/op 85.780 ms/op 1.05
MutableVector 250000 create 21.350 ms/op 20.596 ms/op 1.04
MutableVector 250000 get(125000) 8.3310 ns/op 7.1270 ns/op 1.17
MutableVector 250000 set(125000) 821.83 ns/op 481.30 ns/op 1.71
MutableVector 250000 toArray() 5.1217 ms/op 4.5961 ms/op 1.11
MutableVector 250000 iterate all - toArray() + loop 5.4455 ms/op 4.9020 ms/op 1.11
MutableVector 250000 iterate all - get(i) 2.0663 ms/op 1.7877 ms/op 1.16
Array 250000 create 4.9155 ms/op 4.2794 ms/op 1.15
Array 250000 clone - spread 2.6061 ms/op 1.9074 ms/op 1.37
Array 250000 get(125000) 2.9790 ns/op 2.5730 ns/op 1.16
Array 250000 set(125000) 6.0810 ns/op 6.1770 ns/op 0.98
Array 250000 iterate all - loop 221.04 us/op 194.58 us/op 1.14
effectiveBalanceIncrements clone Uint8Array 300000 74.916 us/op 77.572 us/op 0.97
effectiveBalanceIncrements clone MutableVector 300000 596.00 ns/op 500.00 ns/op 1.19
effectiveBalanceIncrements rw all Uint8Array 300000 228.07 us/op 226.13 us/op 1.01
effectiveBalanceIncrements rw all MutableVector 300000 151.52 ms/op 215.42 ms/op 0.70
phase0 afterProcessEpoch - 250000 vs - 7PWei 124.43 ms/op 135.44 ms/op 0.92
phase0 beforeProcessEpoch - 250000 vs - 7PWei 53.292 ms/op 70.349 ms/op 0.76
altair processEpoch - mainnet_e81889 579.80 ms/op 656.01 ms/op 0.88
mainnet_e81889 - altair beforeProcessEpoch 94.136 ms/op 118.40 ms/op 0.80
mainnet_e81889 - altair processJustificationAndFinalization 20.783 us/op 31.417 us/op 0.66
mainnet_e81889 - altair processInactivityUpdates 6.6108 ms/op 10.094 ms/op 0.65
mainnet_e81889 - altair processRewardsAndPenalties 74.456 ms/op 87.516 ms/op 0.85
mainnet_e81889 - altair processRegistryUpdates 2.7310 us/op 5.6340 us/op 0.48
mainnet_e81889 - altair processSlashings 488.00 ns/op 1.4240 us/op 0.34
mainnet_e81889 - altair processEth1DataReset 522.00 ns/op 1.1130 us/op 0.47
mainnet_e81889 - altair processEffectiveBalanceUpdates 2.6766 ms/op 2.1467 ms/op 1.25
mainnet_e81889 - altair processSlashingsReset 6.0610 us/op 7.8000 us/op 0.78
mainnet_e81889 - altair processRandaoMixesReset 6.3850 us/op 10.038 us/op 0.64
mainnet_e81889 - altair processHistoricalRootsUpdate 919.00 ns/op 2.7170 us/op 0.34
mainnet_e81889 - altair processParticipationFlagUpdates 2.8310 us/op 4.2580 us/op 0.66
mainnet_e81889 - altair processSyncCommitteeUpdates 1.0640 us/op 1.5170 us/op 0.70
mainnet_e81889 - altair afterProcessEpoch 122.52 ms/op 149.70 ms/op 0.82
capella processEpoch - mainnet_e217614 2.6315 s/op 2.8465 s/op 0.92
mainnet_e217614 - capella beforeProcessEpoch 515.76 ms/op 594.95 ms/op 0.87
mainnet_e217614 - capella processJustificationAndFinalization 20.318 us/op 22.023 us/op 0.92
mainnet_e217614 - capella processInactivityUpdates 22.696 ms/op 26.520 ms/op 0.86
mainnet_e217614 - capella processRewardsAndPenalties 469.61 ms/op 499.88 ms/op 0.94
mainnet_e217614 - capella processRegistryUpdates 26.284 us/op 39.952 us/op 0.66
mainnet_e217614 - capella processSlashings 554.00 ns/op 1.5590 us/op 0.36
mainnet_e217614 - capella processEth1DataReset 514.00 ns/op 849.00 ns/op 0.61
mainnet_e217614 - capella processEffectiveBalanceUpdates 5.3499 ms/op 6.5691 ms/op 0.81
mainnet_e217614 - capella processSlashingsReset 2.7340 us/op 6.5560 us/op 0.42
mainnet_e217614 - capella processRandaoMixesReset 4.5530 us/op 9.9950 us/op 0.46
mainnet_e217614 - capella processHistoricalRootsUpdate 621.00 ns/op 1.5580 us/op 0.40
mainnet_e217614 - capella processParticipationFlagUpdates 2.0130 us/op 3.5570 us/op 0.57
mainnet_e217614 - capella afterProcessEpoch 312.30 ms/op 346.44 ms/op 0.90
phase0 processEpoch - mainnet_e58758 475.35 ms/op 589.26 ms/op 0.81
mainnet_e58758 - phase0 beforeProcessEpoch 141.96 ms/op 194.03 ms/op 0.73
mainnet_e58758 - phase0 processJustificationAndFinalization 17.681 us/op 29.341 us/op 0.60
mainnet_e58758 - phase0 processRewardsAndPenalties 57.739 ms/op 50.575 ms/op 1.14
mainnet_e58758 - phase0 processRegistryUpdates 12.309 us/op 20.884 us/op 0.59
mainnet_e58758 - phase0 processSlashings 492.00 ns/op 937.00 ns/op 0.53
mainnet_e58758 - phase0 processEth1DataReset 475.00 ns/op 1.0290 us/op 0.46
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.4320 ms/op 1.6909 ms/op 0.85
mainnet_e58758 - phase0 processSlashingsReset 3.2900 us/op 5.1990 us/op 0.63
mainnet_e58758 - phase0 processRandaoMixesReset 3.8310 us/op 9.1280 us/op 0.42
mainnet_e58758 - phase0 processHistoricalRootsUpdate 414.00 ns/op 1.2100 us/op 0.34
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.6360 us/op 10.924 us/op 0.33
mainnet_e58758 - phase0 afterProcessEpoch 97.934 ms/op 111.41 ms/op 0.88
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.7789 ms/op 1.8743 ms/op 0.95
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.6109 ms/op 1.7940 ms/op 0.90
altair processInactivityUpdates - 250000 normalcase 26.432 ms/op 38.670 ms/op 0.68
altair processInactivityUpdates - 250000 worstcase 30.659 ms/op 36.643 ms/op 0.84
phase0 processRegistryUpdates - 250000 normalcase 13.397 us/op 14.716 us/op 0.91
phase0 processRegistryUpdates - 250000 badcase_full_deposits 512.76 us/op 667.65 us/op 0.77
phase0 processRegistryUpdates - 250000 worstcase 0.5 168.80 ms/op 215.66 ms/op 0.78
altair processRewardsAndPenalties - 250000 normalcase 63.775 ms/op 75.289 ms/op 0.85
altair processRewardsAndPenalties - 250000 worstcase 60.809 ms/op 89.431 ms/op 0.68
phase0 getAttestationDeltas - 250000 normalcase 9.6647 ms/op 13.079 ms/op 0.74
phase0 getAttestationDeltas - 250000 worstcase 11.723 ms/op 12.186 ms/op 0.96
phase0 processSlashings - 250000 worstcase 106.90 us/op 112.16 us/op 0.95
altair processSyncCommitteeUpdates - 250000 163.23 ms/op 190.95 ms/op 0.85
BeaconState.hashTreeRoot - No change 462.00 ns/op 791.00 ns/op 0.58
BeaconState.hashTreeRoot - 1 full validator 144.77 us/op 183.88 us/op 0.79
BeaconState.hashTreeRoot - 32 full validator 1.7248 ms/op 1.8833 ms/op 0.92
BeaconState.hashTreeRoot - 512 full validator 16.911 ms/op 22.440 ms/op 0.75
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 168.72 us/op 215.96 us/op 0.78
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.2823 ms/op 2.9500 ms/op 0.77
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 28.702 ms/op 32.372 ms/op 0.89
BeaconState.hashTreeRoot - 1 balances 157.25 us/op 153.18 us/op 1.03
BeaconState.hashTreeRoot - 32 balances 1.4020 ms/op 1.5809 ms/op 0.89
BeaconState.hashTreeRoot - 512 balances 15.373 ms/op 14.289 ms/op 1.08
BeaconState.hashTreeRoot - 250000 balances 272.40 ms/op 246.21 ms/op 1.11
aggregationBits - 2048 els - zipIndexesInBitList 26.922 us/op 24.722 us/op 1.09
byteArrayEquals 32 78.036 ns/op 83.157 ns/op 0.94
Buffer.compare 32 58.159 ns/op 62.619 ns/op 0.93
byteArrayEquals 1024 2.1241 us/op 2.2774 us/op 0.93
Buffer.compare 1024 73.475 ns/op 78.280 ns/op 0.94
byteArrayEquals 16384 33.743 us/op 38.385 us/op 0.88
Buffer.compare 16384 276.85 ns/op 292.68 ns/op 0.95
byteArrayEquals 123687377 253.63 ms/op 269.92 ms/op 0.94
Buffer.compare 123687377 7.4602 ms/op 7.5315 ms/op 0.99
byteArrayEquals 32 - diff last byte 79.377 ns/op 78.045 ns/op 1.02
Buffer.compare 32 - diff last byte 58.318 ns/op 61.319 ns/op 0.95
byteArrayEquals 1024 - diff last byte 2.0712 us/op 2.1967 us/op 0.94
Buffer.compare 1024 - diff last byte 74.753 ns/op 80.672 ns/op 0.93
byteArrayEquals 16384 - diff last byte 32.920 us/op 36.444 us/op 0.90
Buffer.compare 16384 - diff last byte 262.54 ns/op 284.54 ns/op 0.92
byteArrayEquals 123687377 - diff last byte 251.25 ms/op 267.23 ms/op 0.94
Buffer.compare 123687377 - diff last byte 8.9071 ms/op 8.5816 ms/op 1.04
byteArrayEquals 32 - random bytes 6.3320 ns/op 6.2170 ns/op 1.02
Buffer.compare 32 - random bytes 63.149 ns/op 67.467 ns/op 0.94
byteArrayEquals 1024 - random bytes 6.4680 ns/op 6.4710 ns/op 1.00
Buffer.compare 1024 - random bytes 63.678 ns/op 69.105 ns/op 0.92
byteArrayEquals 16384 - random bytes 6.1790 ns/op 6.6690 ns/op 0.93
Buffer.compare 16384 - random bytes 63.402 ns/op 71.251 ns/op 0.89
byteArrayEquals 123687377 - random bytes 9.1400 ns/op 11.310 ns/op 0.81
Buffer.compare 123687377 - random bytes 72.430 ns/op 83.640 ns/op 0.87
regular array get 100000 times 46.298 us/op 55.872 us/op 0.83
wrappedArray get 100000 times 46.727 us/op 53.157 us/op 0.88
arrayWithProxy get 100000 times 14.608 ms/op 16.169 ms/op 0.90
ssz.Root.equals 56.174 ns/op 60.413 ns/op 0.93
byteArrayEquals 55.332 ns/op 58.454 ns/op 0.95
Buffer.compare 12.510 ns/op 12.766 ns/op 0.98
shuffle list - 16384 els 7.2663 ms/op 7.8010 ms/op 0.93
shuffle list - 250000 els 107.13 ms/op 119.74 ms/op 0.89
processSlot - 1 slots 20.562 us/op 20.431 us/op 1.01
processSlot - 32 slots 3.2248 ms/op 4.2163 ms/op 0.76
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 64.477 ms/op 73.941 ms/op 0.87
getCommitteeAssignments - req 1 vs - 250000 vc 2.5477 ms/op 2.9873 ms/op 0.85
getCommitteeAssignments - req 100 vs - 250000 vc 3.7859 ms/op 4.3612 ms/op 0.87
getCommitteeAssignments - req 1000 vs - 250000 vc 4.2253 ms/op 4.9161 ms/op 0.86
findModifiedValidators - 10000 modified validators 551.37 ms/op 707.72 ms/op 0.78
findModifiedValidators - 1000 modified validators 451.61 ms/op 581.54 ms/op 0.78
findModifiedValidators - 100 modified validators 423.03 ms/op 527.96 ms/op 0.80
findModifiedValidators - 10 modified validators 413.32 ms/op 524.89 ms/op 0.79
findModifiedValidators - 1 modified validators 423.24 ms/op 492.73 ms/op 0.86
findModifiedValidators - no difference 396.54 ms/op 521.52 ms/op 0.76
compare ViewDUs 5.1204 s/op 5.4488 s/op 0.94
compare each validator Uint8Array 2.0290 s/op 2.2079 s/op 0.92
compare ViewDU to Uint8Array 1.1758 s/op 1.5405 s/op 0.76
migrate state 1000000 validators, 24 modified, 0 new 839.34 ms/op 1.0034 s/op 0.84
migrate state 1000000 validators, 1700 modified, 1000 new 1.1723 s/op 1.5094 s/op 0.78
migrate state 1000000 validators, 3400 modified, 2000 new 1.4419 s/op 1.7061 s/op 0.85
migrate state 1500000 validators, 24 modified, 0 new 837.15 ms/op 945.28 ms/op 0.89
migrate state 1500000 validators, 1700 modified, 1000 new 1.1470 s/op 1.4068 s/op 0.82
migrate state 1500000 validators, 3400 modified, 2000 new 1.3741 s/op 1.5829 s/op 0.87
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.5900 ns/op 5.6000 ns/op 0.82
state getBlockRootAtSlot - 250000 vs - 7PWei 555.61 ns/op 801.24 ns/op 0.69
computeProposers - vc 250000 9.2232 ms/op 11.073 ms/op 0.83
computeEpochShuffling - vc 250000 104.01 ms/op 115.78 ms/op 0.90
getNextSyncCommittee - vc 250000 163.78 ms/op 198.24 ms/op 0.83
computeSigningRoot for AttestationData 30.959 us/op 32.855 us/op 0.94
hash AttestationData serialized data then Buffer.toString(base64) 2.3566 us/op 2.5981 us/op 0.91
toHexString serialized data 1.1529 us/op 1.4861 us/op 0.78
Buffer.toString(base64) 244.25 ns/op 310.45 ns/op 0.79

by benchmarkbot/action

@jeluard jeluard marked this pull request as ready for review February 26, 2024 17:08
@jeluard jeluard requested a review from a team as a code owner February 26, 2024 17:08
"it-all": "^3.0.4",
"level": "^8.0.0"
},
"devDependencies": {
"@lodestar/logger": "^1.16.0"
"@lodestar/logger": "^1.16.0",
"@types/levelup": "^4.3.3"
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need to keep @types/levelup? I don't see this being used

@jeluard jeluard force-pushed the jeluard/dependencies-cleanup branch 2 times, most recently from f4c3f29 to 8f14fd8 Compare February 26, 2024 20:30
@wemeetagain wemeetagain merged commit f62bc13 into unstable Feb 26, 2024
20 checks passed
@wemeetagain wemeetagain deleted the jeluard/dependencies-cleanup branch February 26, 2024 22:53
@wemeetagain
Copy link
Member

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

None yet

3 participants