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

feat: add token-file as an alias to configure keymanager token file #6609

Merged
merged 1 commit into from Apr 3, 2024

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Mar 28, 2024

Motivation

Follow up to #6525 which adds an alias that matches the spec value ethereum/keymanager-APIs#74.

Description

Adds --tokenFile / --token-file as an alias to configure keymanager token file.

Note: yargs automatically supports both camel case and kebab (hyphen) case

Steps to test or reproduce

./lodestar validator --token-file /path/to/file

@nflaig nflaig requested a review from a team as a code owner March 28, 2024 13:14
@nflaig nflaig changed the title chore: add token-file as an alias to configure keymanager token file feat: add token-file as an alias to configure keymanager token file Mar 28, 2024
@nflaig nflaig added this to the v1.18.0 milestone Mar 28, 2024
Copy link

codecov bot commented Mar 28, 2024

Codecov Report

Merging #6609 (6c53a2b) into unstable (ae9a32e) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #6609   +/-   ##
=========================================
  Coverage     61.61%   61.61%           
=========================================
  Files           556      556           
  Lines         58567    58567           
  Branches       1859     1859           
=========================================
  Hits          36084    36084           
  Misses        22442    22442           
  Partials         41       41           

Copy link
Contributor

github-actions bot commented Mar 28, 2024

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 2f5893f Previous: ae9a32e Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 401.17 us/op 815.61 us/op 0.49
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 55.992 us/op 50.791 us/op 1.10
BLS verify - blst-native 1.2053 ms/op 1.1008 ms/op 1.09
BLS verifyMultipleSignatures 3 - blst-native 2.4721 ms/op 2.3560 ms/op 1.05
BLS verifyMultipleSignatures 8 - blst-native 5.6721 ms/op 5.2268 ms/op 1.09
BLS verifyMultipleSignatures 32 - blst-native 20.800 ms/op 19.108 ms/op 1.09
BLS verifyMultipleSignatures 64 - blst-native 40.961 ms/op 37.449 ms/op 1.09
BLS verifyMultipleSignatures 128 - blst-native 82.553 ms/op 74.869 ms/op 1.10
BLS deserializing 10000 signatures 868.44 ms/op 790.49 ms/op 1.10
BLS deserializing 100000 signatures 8.6315 s/op 8.1474 s/op 1.06
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.1818 ms/op 1.1537 ms/op 1.02
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.6774 ms/op 1.3093 ms/op 1.28
BLS verifyMultipleSignatures - same message - 32 - blst-native 3.1029 ms/op 2.0544 ms/op 1.51
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.4686 ms/op 3.9497 ms/op 0.88
BLS verifyMultipleSignatures - same message - 128 - blst-native 8.1889 ms/op 5.0164 ms/op 1.63
BLS aggregatePubkeys 32 - blst-native 24.400 us/op 22.945 us/op 1.06
BLS aggregatePubkeys 128 - blst-native 98.020 us/op 89.973 us/op 1.09
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 81.890 ms/op 48.865 ms/op 1.68
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 53.715 ms/op 45.323 ms/op 1.19
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 27.531 ms/op 26.420 ms/op 1.04
getSlashingsAndExits - default max 92.556 us/op 124.12 us/op 0.75
getSlashingsAndExits - 2k 352.56 us/op 317.38 us/op 1.11
proposeBlockBody type=full, size=empty 4.6382 ms/op 4.2726 ms/op 1.09
isKnown best case - 1 super set check 683.00 ns/op 338.00 ns/op 2.02
isKnown normal case - 2 super set checks 709.00 ns/op 336.00 ns/op 2.11
isKnown worse case - 16 super set checks 697.00 ns/op 327.00 ns/op 2.13
InMemoryCheckpointStateCache - add get delete 5.2300 us/op 5.6420 us/op 0.93
validate api signedAggregateAndProof - struct 2.6279 ms/op 2.4508 ms/op 1.07
validate gossip signedAggregateAndProof - struct 2.5025 ms/op 2.4986 ms/op 1.00
validate gossip attestation - vc 640000 1.1996 ms/op 1.1492 ms/op 1.04
batch validate gossip attestation - vc 640000 - chunk 32 156.41 us/op 144.29 us/op 1.08
batch validate gossip attestation - vc 640000 - chunk 64 137.38 us/op 124.13 us/op 1.11
batch validate gossip attestation - vc 640000 - chunk 128 127.83 us/op 116.79 us/op 1.09
batch validate gossip attestation - vc 640000 - chunk 256 129.22 us/op 110.44 us/op 1.17
pickEth1Vote - no votes 1.2243 ms/op 917.18 us/op 1.33
pickEth1Vote - max votes 11.164 ms/op 9.8748 ms/op 1.13
pickEth1Vote - Eth1Data hashTreeRoot value x2048 24.574 ms/op 19.092 ms/op 1.29
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 20.676 ms/op 31.121 ms/op 0.66
pickEth1Vote - Eth1Data fastSerialize value x2048 441.31 us/op 503.99 us/op 0.88
pickEth1Vote - Eth1Data fastSerialize tree x2048 3.8859 ms/op 5.4780 ms/op 0.71
bytes32 toHexString 543.00 ns/op 631.00 ns/op 0.86
bytes32 Buffer.toString(hex) 395.00 ns/op 387.00 ns/op 1.02
bytes32 Buffer.toString(hex) from Uint8Array 730.00 ns/op 528.00 ns/op 1.38
bytes32 Buffer.toString(hex) + 0x 500.00 ns/op 334.00 ns/op 1.50
Object access 1 prop 0.32000 ns/op 0.22200 ns/op 1.44
Map access 1 prop 0.22400 ns/op 0.19200 ns/op 1.17
Object get x1000 5.4520 ns/op 4.9440 ns/op 1.10
Map get x1000 1.0310 ns/op 0.86300 ns/op 1.19
Object set x1000 67.304 ns/op 30.089 ns/op 2.24
Map set x1000 28.317 ns/op 19.789 ns/op 1.43
Return object 10000 times 0.28830 ns/op 0.23160 ns/op 1.24
Throw Error 10000 times 2.9352 us/op 2.6969 us/op 1.09
fastMsgIdFn sha256 / 200 bytes 2.1570 us/op 2.0640 us/op 1.05
fastMsgIdFn h32 xxhash / 200 bytes 390.00 ns/op 360.00 ns/op 1.08
fastMsgIdFn h64 xxhash / 200 bytes 436.00 ns/op 379.00 ns/op 1.15
fastMsgIdFn sha256 / 1000 bytes 6.7260 us/op 6.2390 us/op 1.08
fastMsgIdFn h32 xxhash / 1000 bytes 556.00 ns/op 499.00 ns/op 1.11
fastMsgIdFn h64 xxhash / 1000 bytes 588.00 ns/op 480.00 ns/op 1.23
fastMsgIdFn sha256 / 10000 bytes 56.418 us/op 51.756 us/op 1.09
fastMsgIdFn h32 xxhash / 10000 bytes 2.0530 us/op 1.8750 us/op 1.09
fastMsgIdFn h64 xxhash / 10000 bytes 1.4220 us/op 1.2870 us/op 1.10
send data - 1000 256B messages 16.645 ms/op 13.646 ms/op 1.22
send data - 1000 512B messages 20.285 ms/op 19.001 ms/op 1.07
send data - 1000 1024B messages 28.182 ms/op 25.474 ms/op 1.11
send data - 1000 1200B messages 33.390 ms/op 34.769 ms/op 0.96
send data - 1000 2048B messages 43.849 ms/op 44.112 ms/op 0.99
send data - 1000 4096B messages 34.607 ms/op 35.870 ms/op 0.96
send data - 1000 16384B messages 105.75 ms/op 85.533 ms/op 1.24
send data - 1000 65536B messages 465.48 ms/op 348.71 ms/op 1.33
enrSubnets - fastDeserialize 64 bits 1.5710 us/op 946.00 ns/op 1.66
enrSubnets - ssz BitVector 64 bits 619.00 ns/op 423.00 ns/op 1.46
enrSubnets - fastDeserialize 4 bits 300.00 ns/op 208.00 ns/op 1.44
enrSubnets - ssz BitVector 4 bits 673.00 ns/op 433.00 ns/op 1.55
prioritizePeers score -10:0 att 32-0.1 sync 2-0 102.46 us/op 65.890 us/op 1.56
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 119.57 us/op 77.555 us/op 1.54
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 167.29 us/op 108.42 us/op 1.54
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 278.68 us/op 182.04 us/op 1.53
prioritizePeers score 0:0 att 64-1 sync 4-1 291.39 us/op 218.11 us/op 1.34
array of 16000 items push then shift 1.3574 us/op 1.3251 us/op 1.02
LinkedList of 16000 items push then shift 9.4990 ns/op 5.9570 ns/op 1.59
array of 16000 items push then pop 124.70 ns/op 52.349 ns/op 2.38
LinkedList of 16000 items push then pop 10.620 ns/op 5.6930 ns/op 1.87
array of 24000 items push then shift 2.0643 us/op 1.9061 us/op 1.08
LinkedList of 24000 items push then shift 8.4060 ns/op 5.9120 ns/op 1.42
array of 24000 items push then pop 171.09 ns/op 93.435 ns/op 1.83
LinkedList of 24000 items push then pop 9.5720 ns/op 5.6900 ns/op 1.68
intersect bitArray bitLen 8 5.3090 ns/op 4.8350 ns/op 1.10
intersect array and set length 8 53.215 ns/op 49.005 ns/op 1.09
intersect bitArray bitLen 128 37.362 ns/op 29.273 ns/op 1.28
intersect array and set length 128 933.32 ns/op 688.55 ns/op 1.36
bitArray.getTrueBitIndexes() bitLen 128 1.5650 us/op 1.3170 us/op 1.19
bitArray.getTrueBitIndexes() bitLen 248 2.7380 us/op 2.0920 us/op 1.31
bitArray.getTrueBitIndexes() bitLen 512 5.3520 us/op 3.9630 us/op 1.35
Buffer.concat 32 items 1.0090 us/op 908.00 ns/op 1.11
Uint8Array.set 32 items 2.3410 us/op 1.6920 us/op 1.38
Set add up to 64 items then delete first 2.6351 us/op 1.7702 us/op 1.49
OrderedSet add up to 64 items then delete first 4.2829 us/op 2.7140 us/op 1.58
Set add up to 64 items then delete last 2.4635 us/op 2.0193 us/op 1.22
OrderedSet add up to 64 items then delete last 4.6124 us/op 3.0015 us/op 1.54
Set add up to 64 items then delete middle 2.3454 us/op 2.0145 us/op 1.16
OrderedSet add up to 64 items then delete middle 4.5346 us/op 4.2138 us/op 1.08
Set add up to 128 items then delete first 4.4693 us/op 3.9834 us/op 1.12
OrderedSet add up to 128 items then delete first 6.6261 us/op 6.2654 us/op 1.06
Set add up to 128 items then delete last 5.0137 us/op 3.8350 us/op 1.31
OrderedSet add up to 128 items then delete last 6.9269 us/op 5.7914 us/op 1.20
Set add up to 128 items then delete middle 4.0954 us/op 3.8158 us/op 1.07
OrderedSet add up to 128 items then delete middle 14.738 us/op 10.619 us/op 1.39
Set add up to 256 items then delete first 11.316 us/op 7.7143 us/op 1.47
OrderedSet add up to 256 items then delete first 17.875 us/op 12.253 us/op 1.46
Set add up to 256 items then delete last 10.763 us/op 7.5889 us/op 1.42
OrderedSet add up to 256 items then delete last 16.388 us/op 11.405 us/op 1.44
Set add up to 256 items then delete middle 10.259 us/op 7.4337 us/op 1.38
OrderedSet add up to 256 items then delete middle 38.403 us/op 30.444 us/op 1.26
transfer serialized Status (84 B) 1.9370 us/op 1.3900 us/op 1.39
copy serialized Status (84 B) 1.4930 us/op 1.0420 us/op 1.43
transfer serialized SignedVoluntaryExit (112 B) 1.8270 us/op 1.3810 us/op 1.32
copy serialized SignedVoluntaryExit (112 B) 1.1740 us/op 1.0370 us/op 1.13
transfer serialized ProposerSlashing (416 B) 1.7270 us/op 1.8910 us/op 0.91
copy serialized ProposerSlashing (416 B) 2.2020 us/op 1.6040 us/op 1.37
transfer serialized Attestation (485 B) 2.0960 us/op 1.7900 us/op 1.17
copy serialized Attestation (485 B) 1.9040 us/op 1.6510 us/op 1.15
transfer serialized AttesterSlashing (33232 B) 1.9420 us/op 1.9410 us/op 1.00
copy serialized AttesterSlashing (33232 B) 4.1810 us/op 3.7800 us/op 1.11
transfer serialized Small SignedBeaconBlock (128000 B) 1.8800 us/op 2.2000 us/op 0.85
copy serialized Small SignedBeaconBlock (128000 B) 8.8560 us/op 8.9550 us/op 0.99
transfer serialized Avg SignedBeaconBlock (200000 B) 2.5950 us/op 2.0240 us/op 1.28
copy serialized Avg SignedBeaconBlock (200000 B) 15.142 us/op 12.330 us/op 1.23
transfer serialized BlobsSidecar (524380 B) 3.0090 us/op 2.8510 us/op 1.06
copy serialized BlobsSidecar (524380 B) 78.174 us/op 115.48 us/op 0.68
transfer serialized Big SignedBeaconBlock (1000000 B) 3.4430 us/op 2.9190 us/op 1.18
copy serialized Big SignedBeaconBlock (1000000 B) 180.42 us/op 195.40 us/op 0.92
pass gossip attestations to forkchoice per slot 3.1741 ms/op 2.7948 ms/op 1.14
forkChoice updateHead vc 100000 bc 64 eq 0 493.37 us/op 455.75 us/op 1.08
forkChoice updateHead vc 600000 bc 64 eq 0 4.2281 ms/op 2.8649 ms/op 1.48
forkChoice updateHead vc 1000000 bc 64 eq 0 7.3423 ms/op 4.3219 ms/op 1.70
forkChoice updateHead vc 600000 bc 320 eq 0 3.1976 ms/op 2.5920 ms/op 1.23
forkChoice updateHead vc 600000 bc 1200 eq 0 3.1656 ms/op 2.7201 ms/op 1.16
forkChoice updateHead vc 600000 bc 7200 eq 0 4.6467 ms/op 3.4657 ms/op 1.34
forkChoice updateHead vc 600000 bc 64 eq 1000 11.354 ms/op 9.8602 ms/op 1.15
forkChoice updateHead vc 600000 bc 64 eq 10000 11.067 ms/op 9.7000 ms/op 1.14
forkChoice updateHead vc 600000 bc 64 eq 300000 17.906 ms/op 12.076 ms/op 1.48
computeDeltas 500000 validators 300 proto nodes 3.8263 ms/op 3.2174 ms/op 1.19
computeDeltas 500000 validators 1200 proto nodes 3.9456 ms/op 3.0228 ms/op 1.31
computeDeltas 500000 validators 7200 proto nodes 3.5664 ms/op 2.9046 ms/op 1.23
computeDeltas 750000 validators 300 proto nodes 5.5977 ms/op 4.4499 ms/op 1.26
computeDeltas 750000 validators 1200 proto nodes 5.3234 ms/op 4.4494 ms/op 1.20
computeDeltas 750000 validators 7200 proto nodes 5.2165 ms/op 4.4380 ms/op 1.18
computeDeltas 1400000 validators 300 proto nodes 9.9372 ms/op 8.6360 ms/op 1.15
computeDeltas 1400000 validators 1200 proto nodes 9.5974 ms/op 8.7624 ms/op 1.10
computeDeltas 1400000 validators 7200 proto nodes 9.9968 ms/op 8.6913 ms/op 1.15
computeDeltas 2100000 validators 300 proto nodes 15.066 ms/op 13.147 ms/op 1.15
computeDeltas 2100000 validators 1200 proto nodes 15.216 ms/op 12.959 ms/op 1.17
computeDeltas 2100000 validators 7200 proto nodes 14.503 ms/op 12.875 ms/op 1.13
altair processAttestation - 250000 vs - 7PWei normalcase 1.7705 ms/op 1.5261 ms/op 1.16
altair processAttestation - 250000 vs - 7PWei worstcase 5.1747 ms/op 2.1160 ms/op 2.45
altair processAttestation - setStatus - 1/6 committees join 130.33 us/op 78.413 us/op 1.66
altair processAttestation - setStatus - 1/3 committees join 267.66 us/op 154.08 us/op 1.74
altair processAttestation - setStatus - 1/2 committees join 331.18 us/op 228.36 us/op 1.45
altair processAttestation - setStatus - 2/3 committees join 406.85 us/op 281.55 us/op 1.45
altair processAttestation - setStatus - 4/5 committees join 551.69 us/op 413.12 us/op 1.34
altair processAttestation - setStatus - 100% committees join 632.80 us/op 491.36 us/op 1.29
altair processBlock - 250000 vs - 7PWei normalcase 10.816 ms/op 6.2839 ms/op 1.72
altair processBlock - 250000 vs - 7PWei normalcase hashState 32.956 ms/op 28.017 ms/op 1.18
altair processBlock - 250000 vs - 7PWei worstcase 43.640 ms/op 29.292 ms/op 1.49
altair processBlock - 250000 vs - 7PWei worstcase hashState 87.729 ms/op 86.101 ms/op 1.02
phase0 processBlock - 250000 vs - 7PWei normalcase 2.8508 ms/op 1.9593 ms/op 1.45
phase0 processBlock - 250000 vs - 7PWei worstcase 27.568 ms/op 23.535 ms/op 1.17
altair processEth1Data - 250000 vs - 7PWei normalcase 388.26 us/op 261.24 us/op 1.49
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 13.614 us/op 6.2290 us/op 2.19
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 54.249 us/op 57.587 us/op 0.94
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 18.061 us/op 9.0700 us/op 1.99
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 14.635 us/op 5.2860 us/op 2.77
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 150.97 us/op 151.11 us/op 1.00
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.1771 ms/op 1.0015 ms/op 1.18
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.6139 ms/op 1.4502 ms/op 1.11
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.5066 ms/op 922.78 us/op 1.63
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.5453 ms/op 2.4240 ms/op 1.46
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.2058 ms/op 1.4472 ms/op 1.52
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 6.3097 ms/op 3.4383 ms/op 1.84
Tree 40 250000 create 338.74 ms/op 260.63 ms/op 1.30
Tree 40 250000 get(125000) 127.88 ns/op 106.62 ns/op 1.20
Tree 40 250000 set(125000) 1.3374 us/op 759.25 ns/op 1.76
Tree 40 250000 toArray() 25.428 ms/op 15.666 ms/op 1.62
Tree 40 250000 iterate all - toArray() + loop 25.639 ms/op 17.408 ms/op 1.47
Tree 40 250000 iterate all - get(i) 53.983 ms/op 41.491 ms/op 1.30
MutableVector 250000 create 11.718 ms/op 11.652 ms/op 1.01
MutableVector 250000 get(125000) 6.2530 ns/op 5.5070 ns/op 1.14
MutableVector 250000 set(125000) 242.19 ns/op 201.19 ns/op 1.20
MutableVector 250000 toArray() 3.8498 ms/op 2.4350 ms/op 1.58
MutableVector 250000 iterate all - toArray() + loop 3.3481 ms/op 2.2410 ms/op 1.49
MutableVector 250000 iterate all - get(i) 1.4655 ms/op 1.3392 ms/op 1.09
Array 250000 create 3.5979 ms/op 2.3081 ms/op 1.56
Array 250000 clone - spread 1.3292 ms/op 1.0832 ms/op 1.23
Array 250000 get(125000) 1.1260 ns/op 0.99700 ns/op 1.13
Array 250000 set(125000) 1.3490 ns/op 1.1910 ns/op 1.13
Array 250000 iterate all - loop 164.10 us/op 146.14 us/op 1.12
effectiveBalanceIncrements clone Uint8Array 300000 16.306 us/op 19.436 us/op 0.84
effectiveBalanceIncrements clone MutableVector 300000 469.00 ns/op 405.00 ns/op 1.16
effectiveBalanceIncrements rw all Uint8Array 300000 203.43 us/op 175.88 us/op 1.16
effectiveBalanceIncrements rw all MutableVector 300000 70.246 ms/op 65.506 ms/op 1.07
phase0 afterProcessEpoch - 250000 vs - 7PWei 80.690 ms/op 74.732 ms/op 1.08
phase0 beforeProcessEpoch - 250000 vs - 7PWei 58.695 ms/op 43.537 ms/op 1.35
altair processEpoch - mainnet_e81889 502.51 ms/op 425.21 ms/op 1.18
mainnet_e81889 - altair beforeProcessEpoch 94.396 ms/op 67.229 ms/op 1.40
mainnet_e81889 - altair processJustificationAndFinalization 18.862 us/op 8.7360 us/op 2.16
mainnet_e81889 - altair processInactivityUpdates 5.1006 ms/op 3.9597 ms/op 1.29
mainnet_e81889 - altair processRewardsAndPenalties 73.466 ms/op 64.131 ms/op 1.15
mainnet_e81889 - altair processRegistryUpdates 3.0190 us/op 1.9160 us/op 1.58
mainnet_e81889 - altair processSlashings 863.00 ns/op 592.00 ns/op 1.46
mainnet_e81889 - altair processEth1DataReset 1.0530 us/op 393.00 ns/op 2.68
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.0878 ms/op 1.0217 ms/op 1.06
mainnet_e81889 - altair processSlashingsReset 6.1060 us/op 1.5650 us/op 3.90
mainnet_e81889 - altair processRandaoMixesReset 6.4650 us/op 3.5630 us/op 1.81
mainnet_e81889 - altair processHistoricalRootsUpdate 1.3140 us/op 799.00 ns/op 1.64
mainnet_e81889 - altair processParticipationFlagUpdates 2.8920 us/op 1.4020 us/op 2.06
mainnet_e81889 - altair processSyncCommitteeUpdates 1.7770 us/op 615.00 ns/op 2.89
mainnet_e81889 - altair afterProcessEpoch 87.441 ms/op 77.957 ms/op 1.12
capella processEpoch - mainnet_e217614 2.6945 s/op 1.6986 s/op 1.59
mainnet_e217614 - capella beforeProcessEpoch 596.18 ms/op 411.95 ms/op 1.45
mainnet_e217614 - capella processJustificationAndFinalization 25.902 us/op 10.564 us/op 2.45
mainnet_e217614 - capella processInactivityUpdates 33.927 ms/op 13.529 ms/op 2.51
mainnet_e217614 - capella processRewardsAndPenalties 731.60 ms/op 451.20 ms/op 1.62
mainnet_e217614 - capella processRegistryUpdates 22.656 us/op 18.946 us/op 1.20
mainnet_e217614 - capella processSlashings 1.6370 us/op 645.00 ns/op 2.54
mainnet_e217614 - capella processEth1DataReset 1.1810 us/op 617.00 ns/op 1.91
mainnet_e217614 - capella processEffectiveBalanceUpdates 5.4247 ms/op 3.4842 ms/op 1.56
mainnet_e217614 - capella processSlashingsReset 4.9980 us/op 1.9560 us/op 2.56
mainnet_e217614 - capella processRandaoMixesReset 6.3470 us/op 3.6440 us/op 1.74
mainnet_e217614 - capella processHistoricalRootsUpdate 1.1790 us/op 706.00 ns/op 1.67
mainnet_e217614 - capella processParticipationFlagUpdates 4.3700 us/op 1.5210 us/op 2.87
mainnet_e217614 - capella afterProcessEpoch 290.39 ms/op 227.43 ms/op 1.28
phase0 processEpoch - mainnet_e58758 544.60 ms/op 382.88 ms/op 1.42
mainnet_e58758 - phase0 beforeProcessEpoch 169.83 ms/op 121.53 ms/op 1.40
mainnet_e58758 - phase0 processJustificationAndFinalization 22.324 us/op 10.138 us/op 2.20
mainnet_e58758 - phase0 processRewardsAndPenalties 57.393 ms/op 66.107 ms/op 0.87
mainnet_e58758 - phase0 processRegistryUpdates 14.522 us/op 7.7260 us/op 1.88
mainnet_e58758 - phase0 processSlashings 1.6560 us/op 603.00 ns/op 2.75
mainnet_e58758 - phase0 processEth1DataReset 883.00 ns/op 627.00 ns/op 1.41
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.0324 ms/op 1.3492 ms/op 0.77
mainnet_e58758 - phase0 processSlashingsReset 3.5300 us/op 2.4270 us/op 1.45
mainnet_e58758 - phase0 processRandaoMixesReset 4.5850 us/op 2.6050 us/op 1.76
mainnet_e58758 - phase0 processHistoricalRootsUpdate 920.00 ns/op 543.00 ns/op 1.69
mainnet_e58758 - phase0 processParticipationRecordUpdates 5.7320 us/op 3.1020 us/op 1.85
mainnet_e58758 - phase0 afterProcessEpoch 71.636 ms/op 64.489 ms/op 1.11
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.0308 ms/op 939.03 us/op 1.10
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.1425 ms/op 1.1377 ms/op 1.00
altair processInactivityUpdates - 250000 normalcase 32.207 ms/op 25.037 ms/op 1.29
altair processInactivityUpdates - 250000 worstcase 32.350 ms/op 25.030 ms/op 1.29
phase0 processRegistryUpdates - 250000 normalcase 11.999 us/op 5.4530 us/op 2.20
phase0 processRegistryUpdates - 250000 badcase_full_deposits 404.68 us/op 432.67 us/op 0.94
phase0 processRegistryUpdates - 250000 worstcase 0.5 136.73 ms/op 113.76 ms/op 1.20
altair processRewardsAndPenalties - 250000 normalcase 62.992 ms/op 64.942 ms/op 0.97
altair processRewardsAndPenalties - 250000 worstcase 52.849 ms/op 74.612 ms/op 0.71
phase0 getAttestationDeltas - 250000 normalcase 6.8924 ms/op 5.6824 ms/op 1.21
phase0 getAttestationDeltas - 250000 worstcase 10.820 ms/op 5.7214 ms/op 1.89
phase0 processSlashings - 250000 worstcase 89.964 us/op 80.518 us/op 1.12
altair processSyncCommitteeUpdates - 250000 126.56 ms/op 107.49 ms/op 1.18
BeaconState.hashTreeRoot - No change 820.00 ns/op 381.00 ns/op 2.15
BeaconState.hashTreeRoot - 1 full validator 156.26 us/op 134.38 us/op 1.16
BeaconState.hashTreeRoot - 32 full validator 1.8389 ms/op 1.6567 ms/op 1.11
BeaconState.hashTreeRoot - 512 full validator 15.978 ms/op 17.491 ms/op 0.91
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 182.58 us/op 187.50 us/op 0.97
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.5887 ms/op 2.5933 ms/op 1.00
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 31.372 ms/op 27.407 ms/op 1.14
BeaconState.hashTreeRoot - 1 balances 118.53 us/op 119.19 us/op 0.99
BeaconState.hashTreeRoot - 32 balances 893.77 us/op 1.1263 ms/op 0.79
BeaconState.hashTreeRoot - 512 balances 9.0037 ms/op 11.896 ms/op 0.76
BeaconState.hashTreeRoot - 250000 balances 166.52 ms/op 188.72 ms/op 0.88
aggregationBits - 2048 els - zipIndexesInBitList 23.087 us/op 20.362 us/op 1.13
byteArrayEquals 32 65.570 ns/op 61.841 ns/op 1.06
Buffer.compare 32 38.858 ns/op 35.187 ns/op 1.10
byteArrayEquals 1024 1.7762 us/op 1.6450 us/op 1.08
Buffer.compare 1024 48.304 ns/op 41.749 ns/op 1.16
byteArrayEquals 16384 28.207 us/op 26.491 us/op 1.06
Buffer.compare 16384 226.92 ns/op 211.31 ns/op 1.07
byteArrayEquals 123687377 232.53 ms/op 200.16 ms/op 1.16
Buffer.compare 123687377 9.7295 ms/op 5.3930 ms/op 1.80
byteArrayEquals 32 - diff last byte 66.690 ns/op 59.280 ns/op 1.13
Buffer.compare 32 - diff last byte 44.828 ns/op 35.912 ns/op 1.25
byteArrayEquals 1024 - diff last byte 1.8582 us/op 1.6784 us/op 1.11
Buffer.compare 1024 - diff last byte 52.255 ns/op 42.305 ns/op 1.24
byteArrayEquals 16384 - diff last byte 32.248 us/op 26.123 us/op 1.23
Buffer.compare 16384 - diff last byte 239.24 ns/op 180.90 ns/op 1.32
byteArrayEquals 123687377 - diff last byte 217.31 ms/op 198.09 ms/op 1.10
Buffer.compare 123687377 - diff last byte 7.7920 ms/op 3.7863 ms/op 2.06
byteArrayEquals 32 - random bytes 5.9730 ns/op 4.7000 ns/op 1.27
Buffer.compare 32 - random bytes 41.435 ns/op 39.686 ns/op 1.04
byteArrayEquals 1024 - random bytes 6.0180 ns/op 4.5330 ns/op 1.33
Buffer.compare 1024 - random bytes 41.666 ns/op 38.155 ns/op 1.09
byteArrayEquals 16384 - random bytes 6.1340 ns/op 4.5110 ns/op 1.36
Buffer.compare 16384 - random bytes 40.992 ns/op 38.261 ns/op 1.07
byteArrayEquals 123687377 - random bytes 22.450 ns/op 8.1000 ns/op 2.77
Buffer.compare 123687377 - random bytes 57.300 ns/op 42.560 ns/op 1.35
regular array get 100000 times 43.898 us/op 41.676 us/op 1.05
wrappedArray get 100000 times 44.812 us/op 41.567 us/op 1.08
arrayWithProxy get 100000 times 15.939 ms/op 10.503 ms/op 1.52
ssz.Root.equals 57.855 ns/op 55.190 ns/op 1.05
byteArrayEquals 56.231 ns/op 54.080 ns/op 1.04
Buffer.compare 10.556 ns/op 9.4180 ns/op 1.12
shuffle list - 16384 els 6.0305 ms/op 5.8137 ms/op 1.04
shuffle list - 250000 els 89.205 ms/op 85.537 ms/op 1.04
processSlot - 1 slots 19.452 us/op 16.217 us/op 1.20
processSlot - 32 slots 4.0804 ms/op 3.8945 ms/op 1.05
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 61.495 ms/op 54.925 ms/op 1.12
getCommitteeAssignments - req 1 vs - 250000 vc 2.4353 ms/op 2.3099 ms/op 1.05
getCommitteeAssignments - req 100 vs - 250000 vc 3.6123 ms/op 3.4355 ms/op 1.05
getCommitteeAssignments - req 1000 vs - 250000 vc 3.8096 ms/op 3.6806 ms/op 1.04
findModifiedValidators - 10000 modified validators 401.72 ms/op 308.07 ms/op 1.30
findModifiedValidators - 1000 modified validators 213.49 ms/op 156.19 ms/op 1.37
findModifiedValidators - 100 modified validators 204.87 ms/op 138.93 ms/op 1.47
findModifiedValidators - 10 modified validators 200.18 ms/op 136.58 ms/op 1.47
findModifiedValidators - 1 modified validators 148.69 ms/op 141.89 ms/op 1.05
findModifiedValidators - no difference 167.98 ms/op 159.32 ms/op 1.05
compare ViewDUs 4.7638 s/op 3.9928 s/op 1.19
compare each validator Uint8Array 1.9271 s/op 1.4404 s/op 1.34
compare ViewDU to Uint8Array 1.0468 s/op 812.19 ms/op 1.29
migrate state 1000000 validators, 24 modified, 0 new 723.76 ms/op 734.55 ms/op 0.99
migrate state 1000000 validators, 1700 modified, 1000 new 1.1090 s/op 1.0099 s/op 1.10
migrate state 1000000 validators, 3400 modified, 2000 new 1.3211 s/op 1.1528 s/op 1.15
migrate state 1500000 validators, 24 modified, 0 new 705.18 ms/op 586.42 ms/op 1.20
migrate state 1500000 validators, 1700 modified, 1000 new 982.34 ms/op 994.83 ms/op 0.99
migrate state 1500000 validators, 3400 modified, 2000 new 1.1408 s/op 1.2057 s/op 0.95
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 5.3100 ns/op 4.5000 ns/op 1.18
state getBlockRootAtSlot - 250000 vs - 7PWei 459.15 ns/op 638.94 ns/op 0.72
computeProposers - vc 250000 6.2643 ms/op 7.0448 ms/op 0.89
computeEpochShuffling - vc 250000 87.943 ms/op 86.495 ms/op 1.02
getNextSyncCommittee - vc 250000 113.79 ms/op 120.73 ms/op 0.94
computeSigningRoot for AttestationData 25.376 us/op 25.005 us/op 1.01
hash AttestationData serialized data then Buffer.toString(base64) 1.3158 us/op 1.2521 us/op 1.05
toHexString serialized data 814.59 ns/op 860.19 ns/op 0.95
Buffer.toString(base64) 177.25 ns/op 159.95 ns/op 1.11

by benchmarkbot/action

@nflaig nflaig merged commit 5577996 into unstable Apr 3, 2024
18 of 21 checks passed
@nflaig nflaig deleted the nflaig/token-file-alias branch April 3, 2024 14:53
@wemeetagain
Copy link
Member

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