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: correctly set ssz hasher in prover cli #7396

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Jan 24, 2025

Motivation

E2E tests are failing due to this

Description

Correctly set ssz hasher in prover CLI

@nflaig nflaig requested a review from a team as a code owner January 24, 2025 11:12
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.60%. Comparing base (821c319) to head (0f427e4).
Report is 1 commits behind head on unstable.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #7396   +/-   ##
=========================================
  Coverage     48.60%   48.60%           
=========================================
  Files           603      603           
  Lines         40523    40523           
  Branches       2070     2070           
=========================================
  Hits          19698    19698           
  Misses        20787    20787           
  Partials         38       38           

Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 183a032 Previous: 821c319 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 2.2134 ms/op 2.0039 ms/op 1.10
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 67.598 us/op 67.383 us/op 1.00
BLS verify - blst 1.0900 ms/op 990.25 us/op 1.10
BLS verifyMultipleSignatures 3 - blst 1.8483 ms/op 1.3960 ms/op 1.32
BLS verifyMultipleSignatures 8 - blst 3.2847 ms/op 1.9688 ms/op 1.67
BLS verifyMultipleSignatures 32 - blst 7.9943 ms/op 6.2492 ms/op 1.28
BLS verifyMultipleSignatures 64 - blst 13.258 ms/op 11.553 ms/op 1.15
BLS verifyMultipleSignatures 128 - blst 32.147 ms/op 19.773 ms/op 1.63
BLS deserializing 10000 signatures 918.08 ms/op 740.38 ms/op 1.24
BLS deserializing 100000 signatures 8.3968 s/op 7.3580 s/op 1.14
BLS verifyMultipleSignatures - same message - 3 - blst 1.1567 ms/op 1.1926 ms/op 0.97
BLS verifyMultipleSignatures - same message - 8 - blst 1.2904 ms/op 1.3033 ms/op 0.99
BLS verifyMultipleSignatures - same message - 32 - blst 2.2819 ms/op 2.1026 ms/op 1.09
BLS verifyMultipleSignatures - same message - 64 - blst 3.1713 ms/op 2.9709 ms/op 1.07
BLS verifyMultipleSignatures - same message - 128 - blst 5.4549 ms/op 4.9605 ms/op 1.10
BLS aggregatePubkeys 32 - blst 27.548 us/op 21.363 us/op 1.29
BLS aggregatePubkeys 128 - blst 83.314 us/op 76.606 us/op 1.09
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 83.145 ms/op 63.300 ms/op 1.31
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 53.785 ms/op 78.636 ms/op 0.68
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 50.681 ms/op 47.784 ms/op 1.06
getSlashingsAndExits - default max 119.58 us/op 103.06 us/op 1.16
getSlashingsAndExits - 2k 440.48 us/op 464.28 us/op 0.95
proposeBlockBody type=full, size=empty 8.1381 ms/op 6.0313 ms/op 1.35
isKnown best case - 1 super set check 664.00 ns/op 335.00 ns/op 1.98
isKnown normal case - 2 super set checks 603.00 ns/op 308.00 ns/op 1.96
isKnown worse case - 16 super set checks 667.00 ns/op 312.00 ns/op 2.14
InMemoryCheckpointStateCache - add get delete 4.8230 us/op 3.2880 us/op 1.47
validate api signedAggregateAndProof - struct 2.3834 ms/op 2.1017 ms/op 1.13
validate gossip signedAggregateAndProof - struct 2.1377 ms/op 1.8738 ms/op 1.14
batch validate gossip attestation - vc 640000 - chunk 32 184.18 us/op 143.80 us/op 1.28
batch validate gossip attestation - vc 640000 - chunk 64 135.43 us/op 132.96 us/op 1.02
batch validate gossip attestation - vc 640000 - chunk 128 132.02 us/op 126.47 us/op 1.04
batch validate gossip attestation - vc 640000 - chunk 256 131.29 us/op 117.93 us/op 1.11
pickEth1Vote - no votes 1.2938 ms/op 1.1340 ms/op 1.14
pickEth1Vote - max votes 7.2144 ms/op 7.2128 ms/op 1.00
pickEth1Vote - Eth1Data hashTreeRoot value x2048 13.953 ms/op 15.217 ms/op 0.92
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 20.482 ms/op 20.933 ms/op 0.98
pickEth1Vote - Eth1Data fastSerialize value x2048 569.41 us/op 586.39 us/op 0.97
pickEth1Vote - Eth1Data fastSerialize tree x2048 2.8353 ms/op 3.0906 ms/op 0.92
bytes32 toHexString 528.00 ns/op 530.00 ns/op 1.00
bytes32 Buffer.toString(hex) 275.00 ns/op 252.00 ns/op 1.09
bytes32 Buffer.toString(hex) from Uint8Array 453.00 ns/op 434.00 ns/op 1.04
bytes32 Buffer.toString(hex) + 0x 280.00 ns/op 256.00 ns/op 1.09
Object access 1 prop 0.19100 ns/op 0.15500 ns/op 1.23
Map access 1 prop 0.16300 ns/op 0.13900 ns/op 1.17
Object get x1000 7.4860 ns/op 6.1660 ns/op 1.21
Map get x1000 8.1240 ns/op 6.6700 ns/op 1.22
Object set x1000 54.003 ns/op 46.584 ns/op 1.16
Map set x1000 38.290 ns/op 31.360 ns/op 1.22
Return object 10000 times 0.35310 ns/op 0.31500 ns/op 1.12
Throw Error 10000 times 4.1809 us/op 3.5543 us/op 1.18
toHex 224.09 ns/op 175.77 ns/op 1.27
Buffer.from 169.43 ns/op 161.65 ns/op 1.05
shared Buffer 117.05 ns/op 96.585 ns/op 1.21
fastMsgIdFn sha256 / 200 bytes 2.6790 us/op 2.3550 us/op 1.14
fastMsgIdFn h32 xxhash / 200 bytes 348.00 ns/op 280.00 ns/op 1.24
fastMsgIdFn h64 xxhash / 200 bytes 319.00 ns/op 270.00 ns/op 1.18
fastMsgIdFn sha256 / 1000 bytes 9.0060 us/op 7.6270 us/op 1.18
fastMsgIdFn h32 xxhash / 1000 bytes 503.00 ns/op 385.00 ns/op 1.31
fastMsgIdFn h64 xxhash / 1000 bytes 421.00 ns/op 344.00 ns/op 1.22
fastMsgIdFn sha256 / 10000 bytes 79.168 us/op 65.844 us/op 1.20
fastMsgIdFn h32 xxhash / 10000 bytes 2.3400 us/op 1.9710 us/op 1.19
fastMsgIdFn h64 xxhash / 10000 bytes 1.5130 us/op 1.3300 us/op 1.14
send data - 1000 256B messages 15.682 ms/op 13.918 ms/op 1.13
send data - 1000 512B messages 21.950 ms/op 21.670 ms/op 1.01
send data - 1000 1024B messages 31.690 ms/op 26.675 ms/op 1.19
send data - 1000 1200B messages 33.045 ms/op 29.813 ms/op 1.11
send data - 1000 2048B messages 36.586 ms/op 34.120 ms/op 1.07
send data - 1000 4096B messages 36.674 ms/op 31.111 ms/op 1.18
send data - 1000 16384B messages 86.997 ms/op 74.284 ms/op 1.17
send data - 1000 65536B messages 254.60 ms/op 210.29 ms/op 1.21
enrSubnets - fastDeserialize 64 bits 1.5930 us/op 1.1050 us/op 1.44
enrSubnets - ssz BitVector 64 bits 499.00 ns/op 359.00 ns/op 1.39
enrSubnets - fastDeserialize 4 bits 216.00 ns/op 139.00 ns/op 1.55
enrSubnets - ssz BitVector 4 bits 507.00 ns/op 351.00 ns/op 1.44
prioritizePeers score -10:0 att 32-0.1 sync 2-0 190.47 us/op 142.35 us/op 1.34
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 204.35 us/op 160.03 us/op 1.28
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 324.87 us/op 219.96 us/op 1.48
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 572.13 us/op 409.30 us/op 1.40
prioritizePeers score 0:0 att 64-1 sync 4-1 724.29 us/op 533.08 us/op 1.36
array of 16000 items push then shift 1.9733 us/op 1.6483 us/op 1.20
LinkedList of 16000 items push then shift 8.8130 ns/op 7.1230 ns/op 1.24
array of 16000 items push then pop 145.14 ns/op 116.14 ns/op 1.25
LinkedList of 16000 items push then pop 8.4990 ns/op 7.0010 ns/op 1.21
array of 24000 items push then shift 3.2634 us/op 2.4603 us/op 1.33
LinkedList of 24000 items push then shift 9.3970 ns/op 7.7050 ns/op 1.22
array of 24000 items push then pop 195.17 ns/op 145.71 ns/op 1.34
LinkedList of 24000 items push then pop 8.5340 ns/op 7.0500 ns/op 1.21
intersect bitArray bitLen 8 7.5210 ns/op 6.5500 ns/op 1.15
intersect array and set length 8 53.202 ns/op 45.362 ns/op 1.17
intersect bitArray bitLen 128 34.477 ns/op 30.381 ns/op 1.13
intersect array and set length 128 862.94 ns/op 732.70 ns/op 1.18
bitArray.getTrueBitIndexes() bitLen 128 1.8850 us/op 1.4580 us/op 1.29
bitArray.getTrueBitIndexes() bitLen 248 3.3140 us/op 2.4850 us/op 1.33
bitArray.getTrueBitIndexes() bitLen 512 6.3790 us/op 4.4960 us/op 1.42
Buffer.concat 32 items 960.00 ns/op 780.00 ns/op 1.23
Uint8Array.set 32 items 1.7640 us/op 2.0760 us/op 0.85
Buffer.copy 3.5270 us/op 3.2930 us/op 1.07
Uint8Array.set - with subarray 3.4500 us/op 3.0990 us/op 1.11
Uint8Array.set - without subarray 1.7970 us/op 1.9540 us/op 0.92
getUint32 - dataview 319.00 ns/op 232.00 ns/op 1.38
getUint32 - manual 271.00 ns/op 148.00 ns/op 1.83
Set add up to 64 items then delete first 3.1857 us/op 2.1545 us/op 1.48
OrderedSet add up to 64 items then delete first 4.3125 us/op 3.1686 us/op 1.36
Set add up to 64 items then delete last 3.4758 us/op 2.4901 us/op 1.40
OrderedSet add up to 64 items then delete last 5.3308 us/op 3.5676 us/op 1.49
Set add up to 64 items then delete middle 3.6965 us/op 2.4670 us/op 1.50
OrderedSet add up to 64 items then delete middle 7.6935 us/op 5.2222 us/op 1.47
Set add up to 128 items then delete first 7.5036 us/op 4.9976 us/op 1.50
OrderedSet add up to 128 items then delete first 12.459 us/op 7.9226 us/op 1.57
Set add up to 128 items then delete last 7.0525 us/op 4.9403 us/op 1.43
OrderedSet add up to 128 items then delete last 11.003 us/op 7.2881 us/op 1.51
Set add up to 128 items then delete middle 7.5490 us/op 4.8435 us/op 1.56
OrderedSet add up to 128 items then delete middle 18.415 us/op 13.495 us/op 1.36
Set add up to 256 items then delete first 14.507 us/op 10.222 us/op 1.42
OrderedSet add up to 256 items then delete first 23.207 us/op 16.219 us/op 1.43
Set add up to 256 items then delete last 13.689 us/op 9.8502 us/op 1.39
OrderedSet add up to 256 items then delete last 19.572 us/op 14.883 us/op 1.32
Set add up to 256 items then delete middle 13.913 us/op 9.7526 us/op 1.43
OrderedSet add up to 256 items then delete middle 55.936 us/op 41.949 us/op 1.33
transfer serialized Status (84 B) 3.3860 us/op 2.8080 us/op 1.21
copy serialized Status (84 B) 1.7310 us/op 1.4180 us/op 1.22
transfer serialized SignedVoluntaryExit (112 B) 3.5800 us/op 2.6460 us/op 1.35
copy serialized SignedVoluntaryExit (112 B) 1.8150 us/op 1.3550 us/op 1.34
transfer serialized ProposerSlashing (416 B) 3.8740 us/op 3.3630 us/op 1.15
copy serialized ProposerSlashing (416 B) 2.4120 us/op 2.1550 us/op 1.12
transfer serialized Attestation (485 B) 3.5840 us/op 3.0300 us/op 1.18
copy serialized Attestation (485 B) 2.3200 us/op 1.7160 us/op 1.35
transfer serialized AttesterSlashing (33232 B) 3.1990 us/op 3.1280 us/op 1.02
copy serialized AttesterSlashing (33232 B) 6.6700 us/op 5.5120 us/op 1.21
transfer serialized Small SignedBeaconBlock (128000 B) 5.1100 us/op 3.2750 us/op 1.56
copy serialized Small SignedBeaconBlock (128000 B) 33.964 us/op 45.648 us/op 0.74
transfer serialized Avg SignedBeaconBlock (200000 B) 5.0020 us/op 4.2980 us/op 1.16
copy serialized Avg SignedBeaconBlock (200000 B) 66.352 us/op 19.771 us/op 3.36
transfer serialized BlobsSidecar (524380 B) 5.7670 us/op 3.9290 us/op 1.47
copy serialized BlobsSidecar (524380 B) 101.97 us/op 80.504 us/op 1.27
transfer serialized Big SignedBeaconBlock (1000000 B) 5.4340 us/op 3.9860 us/op 1.36
copy serialized Big SignedBeaconBlock (1000000 B) 166.51 us/op 149.00 us/op 1.12
pass gossip attestations to forkchoice per slot 3.4030 ms/op 4.6259 ms/op 0.74
forkChoice updateHead vc 100000 bc 64 eq 0 571.37 us/op 455.31 us/op 1.25
forkChoice updateHead vc 600000 bc 64 eq 0 3.6040 ms/op 3.7102 ms/op 0.97
forkChoice updateHead vc 1000000 bc 64 eq 0 6.9635 ms/op 5.3640 ms/op 1.30
forkChoice updateHead vc 600000 bc 320 eq 0 3.7428 ms/op 2.8673 ms/op 1.31
forkChoice updateHead vc 600000 bc 1200 eq 0 4.2186 ms/op 2.9763 ms/op 1.42
forkChoice updateHead vc 600000 bc 7200 eq 0 5.0490 ms/op 4.1352 ms/op 1.22
forkChoice updateHead vc 600000 bc 64 eq 1000 13.150 ms/op 10.565 ms/op 1.24
forkChoice updateHead vc 600000 bc 64 eq 10000 13.165 ms/op 11.014 ms/op 1.20
forkChoice updateHead vc 600000 bc 64 eq 300000 29.262 ms/op 15.891 ms/op 1.84
computeDeltas 500000 validators 300 proto nodes 5.9398 ms/op 4.0844 ms/op 1.45
computeDeltas 500000 validators 1200 proto nodes 4.9775 ms/op 4.1636 ms/op 1.20
computeDeltas 500000 validators 7200 proto nodes 5.0284 ms/op 4.2841 ms/op 1.17
computeDeltas 750000 validators 300 proto nodes 7.1541 ms/op 6.4844 ms/op 1.10
computeDeltas 750000 validators 1200 proto nodes 7.0306 ms/op 8.5198 ms/op 0.83
computeDeltas 750000 validators 7200 proto nodes 7.0013 ms/op 8.0568 ms/op 0.87
computeDeltas 1400000 validators 300 proto nodes 13.146 ms/op 13.413 ms/op 0.98
computeDeltas 1400000 validators 1200 proto nodes 12.882 ms/op 13.096 ms/op 0.98
computeDeltas 1400000 validators 7200 proto nodes 13.602 ms/op 12.729 ms/op 1.07
computeDeltas 2100000 validators 300 proto nodes 20.188 ms/op 19.718 ms/op 1.02
computeDeltas 2100000 validators 1200 proto nodes 19.981 ms/op 19.804 ms/op 1.01
computeDeltas 2100000 validators 7200 proto nodes 21.798 ms/op 23.082 ms/op 0.94
altair processAttestation - 250000 vs - 7PWei normalcase 2.5381 ms/op 3.9280 ms/op 0.65
altair processAttestation - 250000 vs - 7PWei worstcase 4.1128 ms/op 5.2171 ms/op 0.79
altair processAttestation - setStatus - 1/6 committees join 156.98 us/op 198.16 us/op 0.79
altair processAttestation - setStatus - 1/3 committees join 282.60 us/op 363.36 us/op 0.78
altair processAttestation - setStatus - 1/2 committees join 408.71 us/op 451.00 us/op 0.91
altair processAttestation - setStatus - 2/3 committees join 577.84 us/op 598.92 us/op 0.96
altair processAttestation - setStatus - 4/5 committees join 774.37 us/op 745.71 us/op 1.04
altair processAttestation - setStatus - 100% committees join 859.20 us/op 916.12 us/op 0.94
altair processBlock - 250000 vs - 7PWei normalcase 7.0371 ms/op 6.8325 ms/op 1.03
altair processBlock - 250000 vs - 7PWei normalcase hashState 39.062 ms/op 29.981 ms/op 1.30
altair processBlock - 250000 vs - 7PWei worstcase 44.830 ms/op 54.268 ms/op 0.83
altair processBlock - 250000 vs - 7PWei worstcase hashState 92.301 ms/op 131.57 ms/op 0.70
phase0 processBlock - 250000 vs - 7PWei normalcase 2.7038 ms/op 4.0616 ms/op 0.67
phase0 processBlock - 250000 vs - 7PWei worstcase 33.724 ms/op 34.996 ms/op 0.96
altair processEth1Data - 250000 vs - 7PWei normalcase 665.53 us/op 689.32 us/op 0.97
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 8.4800 us/op 9.7010 us/op 0.87
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 46.953 us/op 55.839 us/op 0.84
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 10.369 us/op 17.224 us/op 0.60
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 9.1010 us/op 12.485 us/op 0.73
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 153.76 us/op 223.63 us/op 0.69
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.3168 ms/op 1.7458 ms/op 0.75
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.8897 ms/op 2.2057 ms/op 0.86
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.6128 ms/op 2.7283 ms/op 0.59
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 4.1759 ms/op 8.2947 ms/op 0.50
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.5846 ms/op 2.3651 ms/op 0.67
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 5.2415 ms/op 6.9169 ms/op 0.76
Tree 40 250000 create 573.83 ms/op 1.0324 s/op 0.56
Tree 40 250000 get(125000) 178.60 ns/op 224.49 ns/op 0.80
Tree 40 250000 set(125000) 2.6247 us/op 3.4276 us/op 0.77
Tree 40 250000 toArray() 22.182 ms/op 33.820 ms/op 0.66
Tree 40 250000 iterate all - toArray() + loop 23.332 ms/op 32.657 ms/op 0.71
Tree 40 250000 iterate all - get(i) 64.916 ms/op 84.399 ms/op 0.77
Array 250000 create 4.1174 ms/op 5.6659 ms/op 0.73
Array 250000 clone - spread 1.6664 ms/op 5.6399 ms/op 0.30
Array 250000 get(125000) 0.49000 ns/op 0.60500 ns/op 0.81
Array 250000 set(125000) 0.53800 ns/op 0.72700 ns/op 0.74
Array 250000 iterate all - loop 135.47 us/op 119.37 us/op 1.13
phase0 afterProcessEpoch - 250000 vs - 7PWei 62.699 ms/op 65.905 ms/op 0.95
Array.fill - length 1000000 6.3869 ms/op 9.7906 ms/op 0.65
Array push - length 1000000 18.627 ms/op 55.190 ms/op 0.34
Array.get 0.32865 ns/op 0.44172 ns/op 0.74
Uint8Array.get 0.52701 ns/op 0.57034 ns/op 0.92
phase0 beforeProcessEpoch - 250000 vs - 7PWei 22.285 ms/op 36.827 ms/op 0.61
altair processEpoch - mainnet_e81889 344.64 ms/op 416.64 ms/op 0.83
mainnet_e81889 - altair beforeProcessEpoch 22.135 ms/op 34.754 ms/op 0.64
mainnet_e81889 - altair processJustificationAndFinalization 16.643 us/op 37.440 us/op 0.44
mainnet_e81889 - altair processInactivityUpdates 5.9062 ms/op 10.330 ms/op 0.57
mainnet_e81889 - altair processRewardsAndPenalties 58.750 ms/op 64.807 ms/op 0.91
mainnet_e81889 - altair processRegistryUpdates 2.6120 us/op 6.8150 us/op 0.38
mainnet_e81889 - altair processSlashings 528.00 ns/op 1.1550 us/op 0.46
mainnet_e81889 - altair processEth1DataReset 552.00 ns/op 1.2660 us/op 0.44
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.9450 ms/op 2.0667 ms/op 0.94
mainnet_e81889 - altair processSlashingsReset 4.0910 us/op 8.9080 us/op 0.46
mainnet_e81889 - altair processRandaoMixesReset 4.7560 us/op 9.0490 us/op 0.53
mainnet_e81889 - altair processHistoricalRootsUpdate 698.00 ns/op 1.5330 us/op 0.46
mainnet_e81889 - altair processParticipationFlagUpdates 2.1540 us/op 7.8200 us/op 0.28
mainnet_e81889 - altair processSyncCommitteeUpdates 452.00 ns/op 1.6470 us/op 0.27
mainnet_e81889 - altair afterProcessEpoch 59.109 ms/op 59.015 ms/op 1.00
capella processEpoch - mainnet_e217614 1.1041 s/op 1.1527 s/op 0.96
mainnet_e217614 - capella beforeProcessEpoch 73.783 ms/op 70.568 ms/op 1.05
mainnet_e217614 - capella processJustificationAndFinalization 14.557 us/op 18.953 us/op 0.77
mainnet_e217614 - capella processInactivityUpdates 17.409 ms/op 16.634 ms/op 1.05
mainnet_e217614 - capella processRewardsAndPenalties 243.53 ms/op 251.90 ms/op 0.97
mainnet_e217614 - capella processRegistryUpdates 13.232 us/op 16.045 us/op 0.82
mainnet_e217614 - capella processSlashings 674.00 ns/op 847.00 ns/op 0.80
mainnet_e217614 - capella processEth1DataReset 1.0680 us/op 472.00 ns/op 2.26
mainnet_e217614 - capella processEffectiveBalanceUpdates 15.250 ms/op 14.105 ms/op 1.08
mainnet_e217614 - capella processSlashingsReset 3.6190 us/op 7.5410 us/op 0.48
mainnet_e217614 - capella processRandaoMixesReset 4.9300 us/op 5.8040 us/op 0.85
mainnet_e217614 - capella processHistoricalRootsUpdate 701.00 ns/op 702.00 ns/op 1.00
mainnet_e217614 - capella processParticipationFlagUpdates 2.3820 us/op 2.7370 us/op 0.87
mainnet_e217614 - capella afterProcessEpoch 131.76 ms/op 125.27 ms/op 1.05
phase0 processEpoch - mainnet_e58758 339.05 ms/op 368.06 ms/op 0.92
mainnet_e58758 - phase0 beforeProcessEpoch 79.803 ms/op 79.505 ms/op 1.00
mainnet_e58758 - phase0 processJustificationAndFinalization 17.606 us/op 15.685 us/op 1.12
mainnet_e58758 - phase0 processRewardsAndPenalties 32.121 ms/op 27.111 ms/op 1.18
mainnet_e58758 - phase0 processRegistryUpdates 6.8110 us/op 8.9600 us/op 0.76
mainnet_e58758 - phase0 processSlashings 523.00 ns/op 665.00 ns/op 0.79
mainnet_e58758 - phase0 processEth1DataReset 487.00 ns/op 506.00 ns/op 0.96
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.5820 ms/op 1.6187 ms/op 0.98
mainnet_e58758 - phase0 processSlashingsReset 3.6940 us/op 4.0280 us/op 0.92
mainnet_e58758 - phase0 processRandaoMixesReset 4.8190 us/op 6.4780 us/op 0.74
mainnet_e58758 - phase0 processHistoricalRootsUpdate 433.00 ns/op 583.00 ns/op 0.74
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.6850 us/op 3.5780 us/op 1.03
mainnet_e58758 - phase0 afterProcessEpoch 48.841 ms/op 44.400 ms/op 1.10
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.7201 ms/op 2.0071 ms/op 0.86
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 2.7601 ms/op 1.9144 ms/op 1.44
altair processInactivityUpdates - 250000 normalcase 19.631 ms/op 19.816 ms/op 0.99
altair processInactivityUpdates - 250000 worstcase 22.196 ms/op 20.551 ms/op 1.08
phase0 processRegistryUpdates - 250000 normalcase 7.0600 us/op 5.6660 us/op 1.25
phase0 processRegistryUpdates - 250000 badcase_full_deposits 312.34 us/op 309.67 us/op 1.01
phase0 processRegistryUpdates - 250000 worstcase 0.5 123.30 ms/op 110.40 ms/op 1.12
altair processRewardsAndPenalties - 250000 normalcase 49.496 ms/op 45.038 ms/op 1.10
altair processRewardsAndPenalties - 250000 worstcase 47.206 ms/op 47.362 ms/op 1.00
phase0 getAttestationDeltas - 250000 normalcase 9.8977 ms/op 6.8483 ms/op 1.45
phase0 getAttestationDeltas - 250000 worstcase 7.2797 ms/op 7.0156 ms/op 1.04
phase0 processSlashings - 250000 worstcase 99.364 us/op 111.81 us/op 0.89
altair processSyncCommitteeUpdates - 250000 131.34 ms/op 133.34 ms/op 0.99
BeaconState.hashTreeRoot - No change 264.00 ns/op 257.00 ns/op 1.03
BeaconState.hashTreeRoot - 1 full validator 126.70 us/op 105.98 us/op 1.20
BeaconState.hashTreeRoot - 32 full validator 1.3610 ms/op 1.1156 ms/op 1.22
BeaconState.hashTreeRoot - 512 full validator 12.328 ms/op 9.1336 ms/op 1.35
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 176.07 us/op 157.32 us/op 1.12
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.5414 ms/op 2.1626 ms/op 1.18
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 26.781 ms/op 27.426 ms/op 0.98
BeaconState.hashTreeRoot - 1 balances 116.41 us/op 95.800 us/op 1.22
BeaconState.hashTreeRoot - 32 balances 1.1638 ms/op 931.13 us/op 1.25
BeaconState.hashTreeRoot - 512 balances 8.3875 ms/op 8.3134 ms/op 1.01
BeaconState.hashTreeRoot - 250000 balances 233.77 ms/op 148.97 ms/op 1.57
aggregationBits - 2048 els - zipIndexesInBitList 33.016 us/op 26.278 us/op 1.26
byteArrayEquals 32 64.293 ns/op 54.405 ns/op 1.18
Buffer.compare 32 20.315 ns/op 17.484 ns/op 1.16
byteArrayEquals 1024 1.8209 us/op 1.6073 us/op 1.13
Buffer.compare 1024 29.694 ns/op 25.853 ns/op 1.15
byteArrayEquals 16384 28.427 us/op 25.531 us/op 1.11
Buffer.compare 16384 232.45 ns/op 206.92 ns/op 1.12
byteArrayEquals 123687377 222.04 ms/op 192.50 ms/op 1.15
Buffer.compare 123687377 10.087 ms/op 6.9973 ms/op 1.44
byteArrayEquals 32 - diff last byte 66.429 ns/op 53.164 ns/op 1.25
Buffer.compare 32 - diff last byte 20.599 ns/op 20.342 ns/op 1.01
byteArrayEquals 1024 - diff last byte 1.8241 us/op 1.6354 us/op 1.12
Buffer.compare 1024 - diff last byte 32.914 ns/op 27.958 ns/op 1.18
byteArrayEquals 16384 - diff last byte 29.893 us/op 25.550 us/op 1.17
Buffer.compare 16384 - diff last byte 234.01 ns/op 195.42 ns/op 1.20
byteArrayEquals 123687377 - diff last byte 222.76 ms/op 194.32 ms/op 1.15
Buffer.compare 123687377 - diff last byte 7.9364 ms/op 7.3624 ms/op 1.08
byteArrayEquals 32 - random bytes 5.9660 ns/op 5.2480 ns/op 1.14
Buffer.compare 32 - random bytes 19.922 ns/op 17.789 ns/op 1.12
byteArrayEquals 1024 - random bytes 5.8640 ns/op 5.2130 ns/op 1.12
Buffer.compare 1024 - random bytes 19.078 ns/op 17.287 ns/op 1.10
byteArrayEquals 16384 - random bytes 5.6310 ns/op 5.1690 ns/op 1.09
Buffer.compare 16384 - random bytes 19.124 ns/op 17.508 ns/op 1.09
byteArrayEquals 123687377 - random bytes 7.2300 ns/op 6.5400 ns/op 1.11
Buffer.compare 123687377 - random bytes 20.170 ns/op 18.790 ns/op 1.07
regular array get 100000 times 46.376 us/op 36.425 us/op 1.27
wrappedArray get 100000 times 34.809 us/op 33.684 us/op 1.03
arrayWithProxy get 100000 times 14.253 ms/op 14.592 ms/op 0.98
ssz.Root.equals 49.922 ns/op 46.953 ns/op 1.06
byteArrayEquals 49.241 ns/op 46.199 ns/op 1.07
Buffer.compare 11.508 ns/op 10.697 ns/op 1.08
processSlot - 1 slots 14.438 us/op 15.509 us/op 0.93
processSlot - 32 slots 3.3966 ms/op 4.0540 ms/op 0.84
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 39.680 ms/op 38.718 ms/op 1.02
getCommitteeAssignments - req 1 vs - 250000 vc 2.3742 ms/op 2.1443 ms/op 1.11
getCommitteeAssignments - req 100 vs - 250000 vc 4.5568 ms/op 4.1510 ms/op 1.10
getCommitteeAssignments - req 1000 vs - 250000 vc 4.7225 ms/op 4.4484 ms/op 1.06
findModifiedValidators - 10000 modified validators 271.93 ms/op 251.52 ms/op 1.08
findModifiedValidators - 1000 modified validators 179.11 ms/op 195.18 ms/op 0.92
findModifiedValidators - 100 modified validators 174.40 ms/op 181.18 ms/op 0.96
findModifiedValidators - 10 modified validators 186.93 ms/op 189.57 ms/op 0.99
findModifiedValidators - 1 modified validators 148.85 ms/op 185.18 ms/op 0.80
findModifiedValidators - no difference 164.70 ms/op 175.11 ms/op 0.94
compare ViewDUs 3.2147 s/op 3.3275 s/op 0.97
compare each validator Uint8Array 1.4796 s/op 1.6687 s/op 0.89
compare ViewDU to Uint8Array 1.0905 s/op 924.21 ms/op 1.18
migrate state 1000000 validators, 24 modified, 0 new 759.72 ms/op 698.39 ms/op 1.09
migrate state 1000000 validators, 1700 modified, 1000 new 961.98 ms/op 1.0160 s/op 0.95
migrate state 1000000 validators, 3400 modified, 2000 new 1.1399 s/op 1.2591 s/op 0.91
migrate state 1500000 validators, 24 modified, 0 new 721.41 ms/op 841.65 ms/op 0.86
migrate state 1500000 validators, 1700 modified, 1000 new 948.36 ms/op 1.0117 s/op 0.94
migrate state 1500000 validators, 3400 modified, 2000 new 1.1425 s/op 1.2457 s/op 0.92
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.7500 ns/op 4.4800 ns/op 1.06
state getBlockRootAtSlot - 250000 vs - 7PWei 903.82 ns/op 727.76 ns/op 1.24
computeProposers - vc 250000 7.3460 ms/op 6.7755 ms/op 1.08
computeEpochShuffling - vc 250000 42.280 ms/op 41.157 ms/op 1.03
getNextSyncCommittee - vc 250000 124.90 ms/op 119.67 ms/op 1.04
computeSigningRoot for AttestationData 24.955 us/op 22.584 us/op 1.10
hash AttestationData serialized data then Buffer.toString(base64) 1.5920 us/op 1.5564 us/op 1.02
toHexString serialized data 915.01 ns/op 859.12 ns/op 1.07
Buffer.toString(base64) 175.11 ns/op 178.51 ns/op 0.98
nodejs block root to RootHex using toHex 174.02 ns/op 142.83 ns/op 1.22
nodejs block root to RootHex using toRootHex 92.969 ns/op 90.822 ns/op 1.02
browser block root to RootHex using the deprecated toHexString 241.45 ns/op 221.22 ns/op 1.09
browser block root to RootHex using toHex 196.34 ns/op 177.71 ns/op 1.10
browser block root to RootHex using toRootHex 170.04 ns/op 158.24 ns/op 1.07

by benchmarkbot/action

@wemeetagain wemeetagain merged commit cf23839 into unstable Jan 24, 2025
20 checks passed
@wemeetagain wemeetagain deleted the nflaig/fix-prover-cli branch January 24, 2025 15:27
@wemeetagain
Copy link
Member

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