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: remove unused metricsRegistries #6957

Merged
merged 1 commit into from
Jul 16, 2024
Merged

chore: remove unused metricsRegistries #6957

merged 1 commit into from
Jul 16, 2024

Conversation

wemeetagain
Copy link
Member

Motivation

  • spotted dead code

Description

  • kill dead code

@wemeetagain wemeetagain requested a review from a team as a code owner July 15, 2024 22:16
Copy link

codecov bot commented Jul 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.53%. Comparing base (f66aae4) to head (59f53dc).

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #6957   +/-   ##
=========================================
  Coverage     62.53%   62.53%           
=========================================
  Files           575      575           
  Lines         61068    61059    -9     
  Branches       2136     2132    -4     
=========================================
- Hits          38187    38185    -2     
+ Misses        22842    22835    -7     
  Partials         39       39           

Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 72317f3 Previous: f66aae4 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 348.08 us/op 497.23 us/op 0.70
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 39.114 us/op 40.794 us/op 0.96
BLS verify - blst-native 1.1214 ms/op 1.1311 ms/op 0.99
BLS verifyMultipleSignatures 3 - blst-native 2.3904 ms/op 2.4082 ms/op 0.99
BLS verifyMultipleSignatures 8 - blst-native 5.2962 ms/op 5.3256 ms/op 0.99
BLS verifyMultipleSignatures 32 - blst-native 19.473 ms/op 19.616 ms/op 0.99
BLS verifyMultipleSignatures 64 - blst-native 38.353 ms/op 38.642 ms/op 0.99
BLS verifyMultipleSignatures 128 - blst-native 76.101 ms/op 76.595 ms/op 0.99
BLS deserializing 10000 signatures 787.88 ms/op 786.56 ms/op 1.00
BLS deserializing 100000 signatures 7.9378 s/op 7.9807 s/op 0.99
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.2218 ms/op 1.2395 ms/op 0.99
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.2939 ms/op 1.3038 ms/op 0.99
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.0105 ms/op 2.0416 ms/op 0.98
BLS verifyMultipleSignatures - same message - 64 - blst-native 2.9887 ms/op 3.0404 ms/op 0.98
BLS verifyMultipleSignatures - same message - 128 - blst-native 6.0633 ms/op 6.5843 ms/op 0.92
BLS aggregatePubkeys 32 - blst-native 24.371 us/op 22.953 us/op 1.06
BLS aggregatePubkeys 128 - blst-native 89.245 us/op 89.363 us/op 1.00
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 55.736 ms/op 56.725 ms/op 0.98
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 58.532 ms/op 65.918 ms/op 0.89
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 29.795 ms/op 35.205 ms/op 0.85
getSlashingsAndExits - default max 73.444 us/op 84.135 us/op 0.87
getSlashingsAndExits - 2k 285.90 us/op 283.74 us/op 1.01
proposeBlockBody type=full, size=empty 4.8871 ms/op 4.9869 ms/op 0.98
isKnown best case - 1 super set check 506.00 ns/op 475.00 ns/op 1.07
isKnown normal case - 2 super set checks 486.00 ns/op 468.00 ns/op 1.04
isKnown worse case - 16 super set checks 487.00 ns/op 449.00 ns/op 1.08
InMemoryCheckpointStateCache - add get delete 5.7140 us/op 6.3800 us/op 0.90
validate api signedAggregateAndProof - struct 2.4259 ms/op 2.4167 ms/op 1.00
validate gossip signedAggregateAndProof - struct 2.4842 ms/op 2.4067 ms/op 1.03
validate gossip attestation - vc 640000 1.1475 ms/op 1.1332 ms/op 1.01
batch validate gossip attestation - vc 640000 - chunk 32 142.50 us/op 138.50 us/op 1.03
batch validate gossip attestation - vc 640000 - chunk 64 127.67 us/op 119.67 us/op 1.07
batch validate gossip attestation - vc 640000 - chunk 128 113.20 us/op 106.57 us/op 1.06
batch validate gossip attestation - vc 640000 - chunk 256 104.96 us/op 107.33 us/op 0.98
pickEth1Vote - no votes 773.27 us/op 851.49 us/op 0.91
pickEth1Vote - max votes 7.5711 ms/op 6.9035 ms/op 1.10
pickEth1Vote - Eth1Data hashTreeRoot value x2048 17.978 ms/op 12.214 ms/op 1.47
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 20.406 ms/op 14.249 ms/op 1.43
pickEth1Vote - Eth1Data fastSerialize value x2048 376.68 us/op 381.81 us/op 0.99
pickEth1Vote - Eth1Data fastSerialize tree x2048 5.1944 ms/op 2.9817 ms/op 1.74
bytes32 toHexString 594.00 ns/op 585.00 ns/op 1.02
bytes32 Buffer.toString(hex) 442.00 ns/op 436.00 ns/op 1.01
bytes32 Buffer.toString(hex) from Uint8Array 550.00 ns/op 527.00 ns/op 1.04
bytes32 Buffer.toString(hex) + 0x 442.00 ns/op 436.00 ns/op 1.01
Object access 1 prop 0.32400 ns/op 0.31400 ns/op 1.03
Map access 1 prop 0.32600 ns/op 0.32700 ns/op 1.00
Object get x1000 5.1200 ns/op 5.3450 ns/op 0.96
Map get x1000 5.7570 ns/op 6.0030 ns/op 0.96
Object set x1000 25.213 ns/op 22.819 ns/op 1.10
Map set x1000 18.584 ns/op 18.902 ns/op 0.98
Return object 10000 times 0.29870 ns/op 0.30130 ns/op 0.99
Throw Error 10000 times 2.6781 us/op 2.7365 us/op 0.98
fastMsgIdFn sha256 / 200 bytes 1.9580 us/op 1.9680 us/op 0.99
fastMsgIdFn h32 xxhash / 200 bytes 399.00 ns/op 398.00 ns/op 1.00
fastMsgIdFn h64 xxhash / 200 bytes 444.00 ns/op 449.00 ns/op 0.99
fastMsgIdFn sha256 / 1000 bytes 5.8330 us/op 5.9100 us/op 0.99
fastMsgIdFn h32 xxhash / 1000 bytes 521.00 ns/op 517.00 ns/op 1.01
fastMsgIdFn h64 xxhash / 1000 bytes 517.00 ns/op 510.00 ns/op 1.01
fastMsgIdFn sha256 / 10000 bytes 49.788 us/op 49.855 us/op 1.00
fastMsgIdFn h32 xxhash / 10000 bytes 1.8600 us/op 1.8740 us/op 0.99
fastMsgIdFn h64 xxhash / 10000 bytes 1.2910 us/op 1.2970 us/op 1.00
send data - 1000 256B messages 10.035 ms/op 10.022 ms/op 1.00
send data - 1000 512B messages 13.468 ms/op 13.460 ms/op 1.00
send data - 1000 1024B messages 20.619 ms/op 19.849 ms/op 1.04
send data - 1000 1200B messages 22.773 ms/op 25.031 ms/op 0.91
send data - 1000 2048B messages 29.458 ms/op 29.598 ms/op 1.00
send data - 1000 4096B messages 26.079 ms/op 26.118 ms/op 1.00
send data - 1000 16384B messages 61.429 ms/op 69.234 ms/op 0.89
send data - 1000 65536B messages 240.99 ms/op 260.54 ms/op 0.92
enrSubnets - fastDeserialize 64 bits 1.0930 us/op 1.1430 us/op 0.96
enrSubnets - ssz BitVector 64 bits 526.00 ns/op 567.00 ns/op 0.93
enrSubnets - fastDeserialize 4 bits 342.00 ns/op 346.00 ns/op 0.99
enrSubnets - ssz BitVector 4 bits 521.00 ns/op 570.00 ns/op 0.91
prioritizePeers score -10:0 att 32-0.1 sync 2-0 116.45 us/op 141.22 us/op 0.82
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 127.13 us/op 133.47 us/op 0.95
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 213.60 us/op 270.50 us/op 0.79
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 410.95 us/op 469.50 us/op 0.88
prioritizePeers score 0:0 att 64-1 sync 4-1 586.03 us/op 643.82 us/op 0.91
array of 16000 items push then shift 1.2901 us/op 1.2310 us/op 1.05
LinkedList of 16000 items push then shift 6.4590 ns/op 7.2420 ns/op 0.89
array of 16000 items push then pop 78.920 ns/op 87.431 ns/op 0.90
LinkedList of 16000 items push then pop 6.1630 ns/op 6.1180 ns/op 1.01
array of 24000 items push then shift 1.8849 us/op 1.7586 us/op 1.07
LinkedList of 24000 items push then shift 6.6210 ns/op 6.7120 ns/op 0.99
array of 24000 items push then pop 140.29 ns/op 112.97 ns/op 1.24
LinkedList of 24000 items push then pop 6.6270 ns/op 6.3400 ns/op 1.05
intersect bitArray bitLen 8 5.3620 ns/op 5.0940 ns/op 1.05
intersect array and set length 8 39.508 ns/op 38.506 ns/op 1.03
intersect bitArray bitLen 128 25.208 ns/op 25.361 ns/op 0.99
intersect array and set length 128 567.14 ns/op 559.49 ns/op 1.01
bitArray.getTrueBitIndexes() bitLen 128 2.5090 us/op 2.3330 us/op 1.08
bitArray.getTrueBitIndexes() bitLen 248 3.6230 us/op 3.4750 us/op 1.04
bitArray.getTrueBitIndexes() bitLen 512 6.8760 us/op 7.9970 us/op 0.86
Buffer.concat 32 items 960.00 ns/op 946.00 ns/op 1.01
Uint8Array.set 32 items 1.5930 us/op 1.6350 us/op 0.97
Buffer.copy 1.8080 us/op 1.6510 us/op 1.10
Uint8Array.set - with subarray 2.3420 us/op 2.1540 us/op 1.09
Uint8Array.set - without subarray 1.7420 us/op 1.6450 us/op 1.06
getUint32 - dataview 403.00 ns/op 436.00 ns/op 0.92
getUint32 - manual 327.00 ns/op 332.00 ns/op 0.98
Set add up to 64 items then delete first 1.7351 us/op 1.7915 us/op 0.97
OrderedSet add up to 64 items then delete first 2.9261 us/op 3.2250 us/op 0.91
Set add up to 64 items then delete last 2.0500 us/op 2.0748 us/op 0.99
OrderedSet add up to 64 items then delete last 3.1046 us/op 3.2724 us/op 0.95
Set add up to 64 items then delete middle 2.0557 us/op 2.0886 us/op 0.98
OrderedSet add up to 64 items then delete middle 4.4156 us/op 4.6972 us/op 0.94
Set add up to 128 items then delete first 4.0312 us/op 4.0926 us/op 0.98
OrderedSet add up to 128 items then delete first 6.6739 us/op 6.1692 us/op 1.08
Set add up to 128 items then delete last 3.9452 us/op 4.0776 us/op 0.97
OrderedSet add up to 128 items then delete last 6.1414 us/op 6.3791 us/op 0.96
Set add up to 128 items then delete middle 3.9147 us/op 4.0624 us/op 0.96
OrderedSet add up to 128 items then delete middle 12.163 us/op 11.430 us/op 1.06
Set add up to 256 items then delete first 8.1433 us/op 8.2109 us/op 0.99
OrderedSet add up to 256 items then delete first 12.530 us/op 12.107 us/op 1.03
Set add up to 256 items then delete last 7.5902 us/op 8.0101 us/op 0.95
OrderedSet add up to 256 items then delete last 12.086 us/op 12.555 us/op 0.96
Set add up to 256 items then delete middle 7.3560 us/op 8.0303 us/op 0.92
OrderedSet add up to 256 items then delete middle 33.409 us/op 34.808 us/op 0.96
transfer serialized Status (84 B) 1.5040 us/op 1.3690 us/op 1.10
copy serialized Status (84 B) 1.2430 us/op 1.1410 us/op 1.09
transfer serialized SignedVoluntaryExit (112 B) 1.6050 us/op 1.4570 us/op 1.10
copy serialized SignedVoluntaryExit (112 B) 1.2240 us/op 1.1680 us/op 1.05
transfer serialized ProposerSlashing (416 B) 2.0190 us/op 1.5990 us/op 1.26
copy serialized ProposerSlashing (416 B) 1.6800 us/op 1.3390 us/op 1.25
transfer serialized Attestation (485 B) 1.9450 us/op 1.6320 us/op 1.19
copy serialized Attestation (485 B) 1.7740 us/op 1.3050 us/op 1.36
transfer serialized AttesterSlashing (33232 B) 2.7460 us/op 1.7330 us/op 1.58
copy serialized AttesterSlashing (33232 B) 5.5480 us/op 3.6590 us/op 1.52
transfer serialized Small SignedBeaconBlock (128000 B) 3.4330 us/op 2.0850 us/op 1.65
copy serialized Small SignedBeaconBlock (128000 B) 14.049 us/op 9.2370 us/op 1.52
transfer serialized Avg SignedBeaconBlock (200000 B) 3.6460 us/op 2.3030 us/op 1.58
copy serialized Avg SignedBeaconBlock (200000 B) 21.483 us/op 14.107 us/op 1.52
transfer serialized BlobsSidecar (524380 B) 3.3870 us/op 2.5930 us/op 1.31
copy serialized BlobsSidecar (524380 B) 192.29 us/op 77.923 us/op 2.47
transfer serialized Big SignedBeaconBlock (1000000 B) 3.5730 us/op 3.1190 us/op 1.15
copy serialized Big SignedBeaconBlock (1000000 B) 164.13 us/op 232.23 us/op 0.71
pass gossip attestations to forkchoice per slot 2.8487 ms/op 2.8280 ms/op 1.01
forkChoice updateHead vc 100000 bc 64 eq 0 417.12 us/op 502.76 us/op 0.83
forkChoice updateHead vc 600000 bc 64 eq 0 2.6280 ms/op 2.5936 ms/op 1.01
forkChoice updateHead vc 1000000 bc 64 eq 0 4.1689 ms/op 4.3202 ms/op 0.96
forkChoice updateHead vc 600000 bc 320 eq 0 2.4970 ms/op 2.5929 ms/op 0.96
forkChoice updateHead vc 600000 bc 1200 eq 0 2.6920 ms/op 2.4462 ms/op 1.10
forkChoice updateHead vc 600000 bc 7200 eq 0 2.9184 ms/op 3.0369 ms/op 0.96
forkChoice updateHead vc 600000 bc 64 eq 1000 9.3850 ms/op 9.4143 ms/op 1.00
forkChoice updateHead vc 600000 bc 64 eq 10000 9.2000 ms/op 9.6048 ms/op 0.96
forkChoice updateHead vc 600000 bc 64 eq 300000 12.076 ms/op 11.932 ms/op 1.01
computeDeltas 500000 validators 300 proto nodes 2.9576 ms/op 3.0333 ms/op 0.98
computeDeltas 500000 validators 1200 proto nodes 2.9733 ms/op 3.0685 ms/op 0.97
computeDeltas 500000 validators 7200 proto nodes 2.9836 ms/op 2.9913 ms/op 1.00
computeDeltas 750000 validators 300 proto nodes 4.3669 ms/op 4.5731 ms/op 0.95
computeDeltas 750000 validators 1200 proto nodes 4.4339 ms/op 4.5406 ms/op 0.98
computeDeltas 750000 validators 7200 proto nodes 4.3854 ms/op 4.4872 ms/op 0.98
computeDeltas 1400000 validators 300 proto nodes 8.2686 ms/op 8.2861 ms/op 1.00
computeDeltas 1400000 validators 1200 proto nodes 8.4987 ms/op 8.3465 ms/op 1.02
computeDeltas 1400000 validators 7200 proto nodes 8.5083 ms/op 8.4543 ms/op 1.01
computeDeltas 2100000 validators 300 proto nodes 13.008 ms/op 12.619 ms/op 1.03
computeDeltas 2100000 validators 1200 proto nodes 12.844 ms/op 12.274 ms/op 1.05
computeDeltas 2100000 validators 7200 proto nodes 12.736 ms/op 12.079 ms/op 1.05
altair processAttestation - 250000 vs - 7PWei normalcase 1.5969 ms/op 1.4163 ms/op 1.13
altair processAttestation - 250000 vs - 7PWei worstcase 2.2992 ms/op 2.1074 ms/op 1.09
altair processAttestation - setStatus - 1/6 committees join 84.618 us/op 66.689 us/op 1.27
altair processAttestation - setStatus - 1/3 committees join 139.83 us/op 128.76 us/op 1.09
altair processAttestation - setStatus - 1/2 committees join 183.16 us/op 187.74 us/op 0.98
altair processAttestation - setStatus - 2/3 committees join 269.66 us/op 257.59 us/op 1.05
altair processAttestation - setStatus - 4/5 committees join 399.72 us/op 384.49 us/op 1.04
altair processAttestation - setStatus - 100% committees join 518.62 us/op 452.30 us/op 1.15
altair processBlock - 250000 vs - 7PWei normalcase 3.7276 ms/op 4.3260 ms/op 0.86
altair processBlock - 250000 vs - 7PWei normalcase hashState 22.421 ms/op 22.702 ms/op 0.99
altair processBlock - 250000 vs - 7PWei worstcase 42.343 ms/op 39.682 ms/op 1.07
altair processBlock - 250000 vs - 7PWei worstcase hashState 71.629 ms/op 80.029 ms/op 0.90
phase0 processBlock - 250000 vs - 7PWei normalcase 1.8523 ms/op 1.7406 ms/op 1.06
phase0 processBlock - 250000 vs - 7PWei worstcase 25.515 ms/op 23.132 ms/op 1.10
altair processEth1Data - 250000 vs - 7PWei normalcase 276.04 us/op 252.26 us/op 1.09
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 5.3920 us/op 7.1420 us/op 0.75
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 19.984 us/op 10.130 us/op 1.97
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 8.2290 us/op 10.648 us/op 0.77
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 6.5870 us/op 4.9260 us/op 1.34
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 80.639 us/op 71.055 us/op 1.13
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 520.07 us/op 756.45 us/op 0.69
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.0852 ms/op 1.0412 ms/op 1.04
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 665.94 us/op 1.0644 ms/op 0.63
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.1146 ms/op 1.9686 ms/op 1.07
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.1270 ms/op 1.1454 ms/op 0.98
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.1632 ms/op 2.8550 ms/op 1.11
Tree 40 250000 create 185.75 ms/op 189.77 ms/op 0.98
Tree 40 250000 get(125000) 117.46 ns/op 108.38 ns/op 1.08
Tree 40 250000 set(125000) 536.96 ns/op 555.43 ns/op 0.97
Tree 40 250000 toArray() 18.308 ms/op 13.456 ms/op 1.36
Tree 40 250000 iterate all - toArray() + loop 18.308 ms/op 10.840 ms/op 1.69
Tree 40 250000 iterate all - get(i) 43.399 ms/op 41.121 ms/op 1.06
MutableVector 250000 create 7.7639 ms/op 9.6329 ms/op 0.81
MutableVector 250000 get(125000) 6.2620 ns/op 5.8290 ns/op 1.07
MutableVector 250000 set(125000) 159.44 ns/op 188.34 ns/op 0.85
MutableVector 250000 toArray() 3.4665 ms/op 2.5947 ms/op 1.34
MutableVector 250000 iterate all - toArray() + loop 3.9367 ms/op 2.7082 ms/op 1.45
MutableVector 250000 iterate all - get(i) 1.4842 ms/op 1.4313 ms/op 1.04
Array 250000 create 3.1584 ms/op 2.3296 ms/op 1.36
Array 250000 clone - spread 1.2648 ms/op 1.3397 ms/op 0.94
Array 250000 get(125000) 0.61800 ns/op 0.57600 ns/op 1.07
Array 250000 set(125000) 0.64400 ns/op 0.58700 ns/op 1.10
Array 250000 iterate all - loop 80.728 us/op 77.603 us/op 1.04
effectiveBalanceIncrements clone Uint8Array 300000 14.237 us/op 14.991 us/op 0.95
effectiveBalanceIncrements clone MutableVector 300000 330.00 ns/op 309.00 ns/op 1.07
effectiveBalanceIncrements rw all Uint8Array 300000 168.22 us/op 168.43 us/op 1.00
effectiveBalanceIncrements rw all MutableVector 300000 55.696 ms/op 60.307 ms/op 0.92
phase0 afterProcessEpoch - 250000 vs - 7PWei 79.656 ms/op 77.180 ms/op 1.03
phase0 beforeProcessEpoch - 250000 vs - 7PWei 31.512 ms/op 38.400 ms/op 0.82
altair processEpoch - mainnet_e81889 324.38 ms/op 357.71 ms/op 0.91
mainnet_e81889 - altair beforeProcessEpoch 57.325 ms/op 35.363 ms/op 1.62
mainnet_e81889 - altair processJustificationAndFinalization 9.3520 us/op 9.1880 us/op 1.02
mainnet_e81889 - altair processInactivityUpdates 5.5514 ms/op 5.3462 ms/op 1.04
mainnet_e81889 - altair processRewardsAndPenalties 42.588 ms/op 47.263 ms/op 0.90
mainnet_e81889 - altair processRegistryUpdates 1.7360 us/op 1.4330 us/op 1.21
mainnet_e81889 - altair processSlashings 733.00 ns/op 548.00 ns/op 1.34
mainnet_e81889 - altair processEth1DataReset 683.00 ns/op 762.00 ns/op 0.90
mainnet_e81889 - altair processEffectiveBalanceUpdates 779.17 us/op 1.3203 ms/op 0.59
mainnet_e81889 - altair processSlashingsReset 1.3800 us/op 2.1770 us/op 0.63
mainnet_e81889 - altair processRandaoMixesReset 1.6820 us/op 2.6080 us/op 0.64
mainnet_e81889 - altair processHistoricalRootsUpdate 414.00 ns/op 657.00 ns/op 0.63
mainnet_e81889 - altair processParticipationFlagUpdates 1.4240 us/op 1.3620 us/op 1.05
mainnet_e81889 - altair processSyncCommitteeUpdates 663.00 ns/op 603.00 ns/op 1.10
mainnet_e81889 - altair afterProcessEpoch 77.354 ms/op 76.152 ms/op 1.02
capella processEpoch - mainnet_e217614 1.1724 s/op 1.2317 s/op 0.95
mainnet_e217614 - capella beforeProcessEpoch 229.83 ms/op 224.18 ms/op 1.03
mainnet_e217614 - capella processJustificationAndFinalization 10.102 us/op 8.8330 us/op 1.14
mainnet_e217614 - capella processInactivityUpdates 16.702 ms/op 15.034 ms/op 1.11
mainnet_e217614 - capella processRewardsAndPenalties 247.10 ms/op 268.64 ms/op 0.92
mainnet_e217614 - capella processRegistryUpdates 8.0280 us/op 12.746 us/op 0.63
mainnet_e217614 - capella processSlashings 438.00 ns/op 838.00 ns/op 0.52
mainnet_e217614 - capella processEth1DataReset 761.00 ns/op 683.00 ns/op 1.11
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.2206 ms/op 3.9188 ms/op 1.08
mainnet_e217614 - capella processSlashingsReset 2.1650 us/op 2.2180 us/op 0.98
mainnet_e217614 - capella processRandaoMixesReset 2.8380 us/op 2.7550 us/op 1.03
mainnet_e217614 - capella processHistoricalRootsUpdate 755.00 ns/op 668.00 ns/op 1.13
mainnet_e217614 - capella processParticipationFlagUpdates 1.7420 us/op 1.2210 us/op 1.43
mainnet_e217614 - capella afterProcessEpoch 239.92 ms/op 242.44 ms/op 0.99
phase0 processEpoch - mainnet_e58758 336.14 ms/op 342.66 ms/op 0.98
mainnet_e58758 - phase0 beforeProcessEpoch 96.964 ms/op 92.074 ms/op 1.05
mainnet_e58758 - phase0 processJustificationAndFinalization 12.034 us/op 10.637 us/op 1.13
mainnet_e58758 - phase0 processRewardsAndPenalties 36.420 ms/op 32.023 ms/op 1.14
mainnet_e58758 - phase0 processRegistryUpdates 6.2300 us/op 5.9880 us/op 1.04
mainnet_e58758 - phase0 processSlashings 754.00 ns/op 832.00 ns/op 0.91
mainnet_e58758 - phase0 processEth1DataReset 724.00 ns/op 703.00 ns/op 1.03
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.1259 ms/op 1.1366 ms/op 0.99
mainnet_e58758 - phase0 processSlashingsReset 1.9580 us/op 2.5820 us/op 0.76
mainnet_e58758 - phase0 processRandaoMixesReset 2.6580 us/op 3.0420 us/op 0.87
mainnet_e58758 - phase0 processHistoricalRootsUpdate 702.00 ns/op 730.00 ns/op 0.96
mainnet_e58758 - phase0 processParticipationRecordUpdates 2.8740 us/op 2.6430 us/op 1.09
mainnet_e58758 - phase0 afterProcessEpoch 63.208 ms/op 63.791 ms/op 0.99
phase0 processEffectiveBalanceUpdates - 250000 normalcase 820.41 us/op 750.90 us/op 1.09
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.4776 ms/op 1.5164 ms/op 0.97
altair processInactivityUpdates - 250000 normalcase 15.792 ms/op 20.046 ms/op 0.79
altair processInactivityUpdates - 250000 worstcase 16.560 ms/op 19.546 ms/op 0.85
phase0 processRegistryUpdates - 250000 normalcase 3.5280 us/op 3.0340 us/op 1.16
phase0 processRegistryUpdates - 250000 badcase_full_deposits 180.56 us/op 304.46 us/op 0.59
phase0 processRegistryUpdates - 250000 worstcase 0.5 102.60 ms/op 109.85 ms/op 0.93
altair processRewardsAndPenalties - 250000 normalcase 48.428 ms/op 42.822 ms/op 1.13
altair processRewardsAndPenalties - 250000 worstcase 41.819 ms/op 43.023 ms/op 0.97
phase0 getAttestationDeltas - 250000 normalcase 5.8497 ms/op 5.7960 ms/op 1.01
phase0 getAttestationDeltas - 250000 worstcase 6.2060 ms/op 5.6585 ms/op 1.10
phase0 processSlashings - 250000 worstcase 80.343 us/op 79.215 us/op 1.01
altair processSyncCommitteeUpdates - 250000 101.75 ms/op 97.304 ms/op 1.05
BeaconState.hashTreeRoot - No change 466.00 ns/op 447.00 ns/op 1.04
BeaconState.hashTreeRoot - 1 full validator 145.45 us/op 103.08 us/op 1.41
BeaconState.hashTreeRoot - 32 full validator 1.5005 ms/op 1.1129 ms/op 1.35
BeaconState.hashTreeRoot - 512 full validator 11.757 ms/op 11.811 ms/op 1.00
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 152.51 us/op 136.24 us/op 1.12
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.9648 ms/op 1.8913 ms/op 1.04
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 26.006 ms/op 24.680 ms/op 1.05
BeaconState.hashTreeRoot - 1 balances 108.51 us/op 97.746 us/op 1.11
BeaconState.hashTreeRoot - 32 balances 1.2715 ms/op 853.79 us/op 1.49
BeaconState.hashTreeRoot - 512 balances 11.980 ms/op 8.2460 ms/op 1.45
BeaconState.hashTreeRoot - 250000 balances 162.64 ms/op 185.25 ms/op 0.88
aggregationBits - 2048 els - zipIndexesInBitList 21.104 us/op 19.166 us/op 1.10
byteArrayEquals 32 41.627 ns/op 48.504 ns/op 0.86
Buffer.compare 32 14.924 ns/op 15.196 ns/op 0.98
byteArrayEquals 1024 1.2107 us/op 1.2236 us/op 0.99
Buffer.compare 1024 23.115 ns/op 23.431 ns/op 0.99
byteArrayEquals 16384 19.241 us/op 19.529 us/op 0.99
Buffer.compare 16384 166.32 ns/op 180.17 ns/op 0.92
byteArrayEquals 123687377 151.17 ms/op 152.53 ms/op 0.99
Buffer.compare 123687377 3.8717 ms/op 4.8519 ms/op 0.80
byteArrayEquals 32 - diff last byte 46.980 ns/op 47.904 ns/op 0.98
Buffer.compare 32 - diff last byte 16.174 ns/op 16.351 ns/op 0.99
byteArrayEquals 1024 - diff last byte 1.2555 us/op 1.2778 us/op 0.98
Buffer.compare 1024 - diff last byte 24.751 ns/op 23.573 ns/op 1.05
byteArrayEquals 16384 - diff last byte 19.957 us/op 20.227 us/op 0.99
Buffer.compare 16384 - diff last byte 188.34 ns/op 202.22 ns/op 0.93
byteArrayEquals 123687377 - diff last byte 151.11 ms/op 151.73 ms/op 1.00
Buffer.compare 123687377 - diff last byte 5.5064 ms/op 4.1268 ms/op 1.33
byteArrayEquals 32 - random bytes 4.7810 ns/op 4.9410 ns/op 0.97
Buffer.compare 32 - random bytes 15.262 ns/op 16.519 ns/op 0.92
byteArrayEquals 1024 - random bytes 4.7920 ns/op 4.9270 ns/op 0.97
Buffer.compare 1024 - random bytes 14.859 ns/op 16.797 ns/op 0.88
byteArrayEquals 16384 - random bytes 4.8240 ns/op 4.8780 ns/op 0.99
Buffer.compare 16384 - random bytes 15.162 ns/op 16.930 ns/op 0.90
byteArrayEquals 123687377 - random bytes 7.5100 ns/op 7.8200 ns/op 0.96
Buffer.compare 123687377 - random bytes 17.090 ns/op 19.650 ns/op 0.87
regular array get 100000 times 28.459 us/op 30.938 us/op 0.92
wrappedArray get 100000 times 28.402 us/op 30.803 us/op 0.92
arrayWithProxy get 100000 times 10.039 ms/op 9.5704 ms/op 1.05
ssz.Root.equals 40.593 ns/op 42.571 ns/op 0.95
byteArrayEquals 35.982 ns/op 38.534 ns/op 0.93
Buffer.compare 8.4020 ns/op 8.6440 ns/op 0.97
shuffle list - 16384 els 5.1560 ms/op 5.6819 ms/op 0.91
shuffle list - 250000 els 79.547 ms/op 83.449 ms/op 0.95
processSlot - 1 slots 11.855 us/op 13.493 us/op 0.88
processSlot - 32 slots 2.9854 ms/op 2.3789 ms/op 1.25
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 39.885 ms/op 42.497 ms/op 0.94
getCommitteeAssignments - req 1 vs - 250000 vc 1.8245 ms/op 1.7939 ms/op 1.02
getCommitteeAssignments - req 100 vs - 250000 vc 3.5686 ms/op 3.5044 ms/op 1.02
getCommitteeAssignments - req 1000 vs - 250000 vc 3.8119 ms/op 3.7734 ms/op 1.01
findModifiedValidators - 10000 modified validators 250.75 ms/op 236.52 ms/op 1.06
findModifiedValidators - 1000 modified validators 149.88 ms/op 157.34 ms/op 0.95
findModifiedValidators - 100 modified validators 145.62 ms/op 145.85 ms/op 1.00
findModifiedValidators - 10 modified validators 138.39 ms/op 145.33 ms/op 0.95
findModifiedValidators - 1 modified validators 138.18 ms/op 146.73 ms/op 0.94
findModifiedValidators - no difference 151.79 ms/op 166.04 ms/op 0.91
compare ViewDUs 3.3443 s/op 2.9693 s/op 1.13
compare each validator Uint8Array 1.2328 s/op 982.07 ms/op 1.26
compare ViewDU to Uint8Array 681.34 ms/op 792.51 ms/op 0.86
migrate state 1000000 validators, 24 modified, 0 new 536.63 ms/op 582.21 ms/op 0.92
migrate state 1000000 validators, 1700 modified, 1000 new 688.63 ms/op 782.92 ms/op 0.88
migrate state 1000000 validators, 3400 modified, 2000 new 882.22 ms/op 958.61 ms/op 0.92
migrate state 1500000 validators, 24 modified, 0 new 489.67 ms/op 496.23 ms/op 0.99
migrate state 1500000 validators, 1700 modified, 1000 new 671.39 ms/op 743.47 ms/op 0.90
migrate state 1500000 validators, 3400 modified, 2000 new 958.69 ms/op 976.46 ms/op 0.98
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 7.5000 ns/op 5.9000 ns/op 1.27
state getBlockRootAtSlot - 250000 vs - 7PWei 714.00 ns/op 727.25 ns/op 0.98
computeProposers - vc 250000 5.6317 ms/op 5.9672 ms/op 0.94
computeEpochShuffling - vc 250000 82.042 ms/op 82.391 ms/op 1.00
getNextSyncCommittee - vc 250000 106.72 ms/op 97.857 ms/op 1.09
computeSigningRoot for AttestationData 18.784 us/op 19.048 us/op 0.99
hash AttestationData serialized data then Buffer.toString(base64) 1.1552 us/op 1.1531 us/op 1.00
toHexString serialized data 754.64 ns/op 770.00 ns/op 0.98
Buffer.toString(base64) 131.67 ns/op 131.20 ns/op 1.00

by benchmarkbot/action

@nflaig nflaig merged commit e57e4b7 into unstable Jul 16, 2024
19 of 20 checks passed
@nflaig nflaig deleted the cayman/stray-code branch July 16, 2024 09:11
@wemeetagain
Copy link
Member Author

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

3 participants