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: print calculated block production cutoff time #7163

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Oct 15, 2024

Follow up to #7151 to print the calculated cutoff time that will be used for block production race.

@nflaig nflaig requested a review from a team as a code owner October 15, 2024 10:36
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.21%. Comparing base (5adb4ef) to head (ec484c8).
Report is 2 commits behind head on unstable.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #7163   +/-   ##
=========================================
  Coverage     49.20%   49.21%           
=========================================
  Files           598      598           
  Lines         39726    39726           
  Branches       2088     2092    +4     
=========================================
+ Hits          19549    19550    +1     
+ Misses        20137    20136    -1     
  Partials         40       40           

Copy link
Contributor

github-actions bot commented Oct 15, 2024

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 3b15f91 Previous: 5adb4ef Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 2.0280 ms/op 1.9345 ms/op 1.05
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 55.862 us/op 44.291 us/op 1.26
BLS verify - blst 890.51 us/op 746.00 us/op 1.19
BLS verifyMultipleSignatures 3 - blst 1.3395 ms/op 1.1363 ms/op 1.18
BLS verifyMultipleSignatures 8 - blst 2.1103 ms/op 1.6142 ms/op 1.31
BLS verifyMultipleSignatures 32 - blst 4.5628 ms/op 4.6730 ms/op 0.98
BLS verifyMultipleSignatures 64 - blst 8.5032 ms/op 8.7578 ms/op 0.97
BLS verifyMultipleSignatures 128 - blst 16.185 ms/op 16.735 ms/op 0.97
BLS deserializing 10000 signatures 637.10 ms/op 669.62 ms/op 0.95
BLS deserializing 100000 signatures 6.3419 s/op 6.7787 s/op 0.94
BLS verifyMultipleSignatures - same message - 3 - blst 869.24 us/op 866.95 us/op 1.00
BLS verifyMultipleSignatures - same message - 8 - blst 1.0608 ms/op 989.49 us/op 1.07
BLS verifyMultipleSignatures - same message - 32 - blst 1.7123 ms/op 1.6136 ms/op 1.06
BLS verifyMultipleSignatures - same message - 64 - blst 2.4562 ms/op 2.5068 ms/op 0.98
BLS verifyMultipleSignatures - same message - 128 - blst 4.1657 ms/op 4.2273 ms/op 0.99
BLS aggregatePubkeys 32 - blst 18.945 us/op 19.730 us/op 0.96
BLS aggregatePubkeys 128 - blst 64.624 us/op 68.852 us/op 0.94
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 68.865 ms/op 63.980 ms/op 1.08
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 38.026 ms/op 51.814 ms/op 0.73
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 38.559 ms/op 39.360 ms/op 0.98
getSlashingsAndExits - default max 73.724 us/op 93.635 us/op 0.79
getSlashingsAndExits - 2k 285.75 us/op 270.69 us/op 1.06
proposeBlockBody type=full, size=empty 6.4187 ms/op 6.0771 ms/op 1.06
isKnown best case - 1 super set check 652.00 ns/op 303.00 ns/op 2.15
isKnown normal case - 2 super set checks 529.00 ns/op 302.00 ns/op 1.75
isKnown worse case - 16 super set checks 504.00 ns/op 281.00 ns/op 1.79
InMemoryCheckpointStateCache - add get delete 3.1360 us/op 2.7460 us/op 1.14
updateUnfinalizedPubkeys - updating 10 pubkeys 692.27 us/op 914.93 us/op 0.76
updateUnfinalizedPubkeys - updating 100 pubkeys 2.5080 ms/op 4.1197 ms/op 0.61
updateUnfinalizedPubkeys - updating 1000 pubkeys 38.532 ms/op 54.875 ms/op 0.70
validate api signedAggregateAndProof - struct 1.9458 ms/op 1.4052 ms/op 1.38
validate gossip signedAggregateAndProof - struct 2.0231 ms/op 1.3421 ms/op 1.51
batch validate gossip attestation - vc 640000 - chunk 32 125.94 us/op 127.55 us/op 0.99
batch validate gossip attestation - vc 640000 - chunk 64 116.95 us/op 109.03 us/op 1.07
batch validate gossip attestation - vc 640000 - chunk 128 105.53 us/op 105.39 us/op 1.00
batch validate gossip attestation - vc 640000 - chunk 256 97.564 us/op 104.35 us/op 0.93
pickEth1Vote - no votes 888.39 us/op 1.0736 ms/op 0.83
pickEth1Vote - max votes 5.4744 ms/op 8.0635 ms/op 0.68
pickEth1Vote - Eth1Data hashTreeRoot value x2048 15.101 ms/op 17.440 ms/op 0.87
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 15.231 ms/op 19.358 ms/op 0.79
pickEth1Vote - Eth1Data fastSerialize value x2048 356.67 us/op 505.06 us/op 0.71
pickEth1Vote - Eth1Data fastSerialize tree x2048 1.9750 ms/op 3.1601 ms/op 0.62
bytes32 toHexString 572.00 ns/op 472.00 ns/op 1.21
bytes32 Buffer.toString(hex) 446.00 ns/op 259.00 ns/op 1.72
bytes32 Buffer.toString(hex) from Uint8Array 556.00 ns/op 414.00 ns/op 1.34
bytes32 Buffer.toString(hex) + 0x 470.00 ns/op 256.00 ns/op 1.84
Object access 1 prop 0.32200 ns/op 0.15800 ns/op 2.04
Map access 1 prop 0.32000 ns/op 0.13000 ns/op 2.46
Object get x1000 5.1450 ns/op 5.7660 ns/op 0.89
Map get x1000 5.9180 ns/op 6.5730 ns/op 0.90
Object set x1000 21.936 ns/op 32.286 ns/op 0.68
Map set x1000 18.660 ns/op 21.379 ns/op 0.87
Return object 10000 times 0.30050 ns/op 0.29090 ns/op 1.03
Throw Error 10000 times 2.7638 us/op 3.3340 us/op 0.83
toHex 111.72 ns/op 149.60 ns/op 0.75
Buffer.from 102.41 ns/op 126.23 ns/op 0.81
shared Buffer 71.122 ns/op 90.858 ns/op 0.78
fastMsgIdFn sha256 / 200 bytes 2.0130 us/op 2.2480 us/op 0.90
fastMsgIdFn h32 xxhash / 200 bytes 411.00 ns/op 218.00 ns/op 1.89
fastMsgIdFn h64 xxhash / 200 bytes 459.00 ns/op 264.00 ns/op 1.74
fastMsgIdFn sha256 / 1000 bytes 5.9840 us/op 7.2470 us/op 0.83
fastMsgIdFn h32 xxhash / 1000 bytes 543.00 ns/op 355.00 ns/op 1.53
fastMsgIdFn h64 xxhash / 1000 bytes 522.00 ns/op 341.00 ns/op 1.53
fastMsgIdFn sha256 / 10000 bytes 49.215 us/op 64.861 us/op 0.76
fastMsgIdFn h32 xxhash / 10000 bytes 1.9420 us/op 1.8430 us/op 1.05
fastMsgIdFn h64 xxhash / 10000 bytes 1.3490 us/op 1.2030 us/op 1.12
send data - 1000 256B messages 11.004 ms/op 11.886 ms/op 0.93
send data - 1000 512B messages 13.321 ms/op 15.757 ms/op 0.85
send data - 1000 1024B messages 21.490 ms/op 24.836 ms/op 0.87
send data - 1000 1200B messages 24.819 ms/op 26.423 ms/op 0.94
send data - 1000 2048B messages 30.438 ms/op 31.268 ms/op 0.97
send data - 1000 4096B messages 25.507 ms/op 32.592 ms/op 0.78
send data - 1000 16384B messages 61.848 ms/op 74.956 ms/op 0.83
send data - 1000 65536B messages 236.23 ms/op 214.52 ms/op 1.10
enrSubnets - fastDeserialize 64 bits 1.1760 us/op 1.1420 us/op 1.03
enrSubnets - ssz BitVector 64 bits 528.00 ns/op 385.00 ns/op 1.37
enrSubnets - fastDeserialize 4 bits 341.00 ns/op 155.00 ns/op 2.20
enrSubnets - ssz BitVector 4 bits 567.00 ns/op 359.00 ns/op 1.58
prioritizePeers score -10:0 att 32-0.1 sync 2-0 152.59 us/op 130.89 us/op 1.17
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 144.84 us/op 154.28 us/op 0.94
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 258.90 us/op 221.54 us/op 1.17
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 419.26 us/op 403.19 us/op 1.04
prioritizePeers score 0:0 att 64-1 sync 4-1 733.42 us/op 497.04 us/op 1.48
array of 16000 items push then shift 1.3494 us/op 1.6422 us/op 0.82
LinkedList of 16000 items push then shift 6.7730 ns/op 7.1580 ns/op 0.95
array of 16000 items push then pop 119.71 ns/op 122.47 ns/op 0.98
LinkedList of 16000 items push then pop 6.5240 ns/op 7.1920 ns/op 0.91
array of 24000 items push then shift 1.9846 us/op 2.4687 us/op 0.80
LinkedList of 24000 items push then shift 6.6110 ns/op 7.2170 ns/op 0.92
array of 24000 items push then pop 152.87 ns/op 154.18 ns/op 0.99
LinkedList of 24000 items push then pop 6.3570 ns/op 7.4620 ns/op 0.85
intersect bitArray bitLen 8 5.6310 ns/op 6.5570 ns/op 0.86
intersect array and set length 8 39.091 ns/op 45.335 ns/op 0.86
intersect bitArray bitLen 128 27.211 ns/op 30.952 ns/op 0.88
intersect array and set length 128 599.65 ns/op 736.52 ns/op 0.81
bitArray.getTrueBitIndexes() bitLen 128 2.0200 us/op 1.5670 us/op 1.29
bitArray.getTrueBitIndexes() bitLen 248 2.5140 us/op 2.5070 us/op 1.00
bitArray.getTrueBitIndexes() bitLen 512 6.1810 us/op 5.0330 us/op 1.23
Buffer.concat 32 items 1.0820 us/op 971.00 ns/op 1.11
Uint8Array.set 32 items 2.2460 us/op 1.5690 us/op 1.43
Buffer.copy 2.4890 us/op 1.8000 us/op 1.38
Uint8Array.set - with subarray 3.0470 us/op 2.5730 us/op 1.18
Uint8Array.set - without subarray 1.9100 us/op 1.3800 us/op 1.38
getUint32 - dataview 444.00 ns/op 250.00 ns/op 1.78
getUint32 - manual 362.00 ns/op 174.00 ns/op 2.08
Set add up to 64 items then delete first 1.6837 us/op 2.1586 us/op 0.78
OrderedSet add up to 64 items then delete first 2.6355 us/op 3.3374 us/op 0.79
Set add up to 64 items then delete last 2.0425 us/op 2.4863 us/op 0.82
OrderedSet add up to 64 items then delete last 3.0418 us/op 3.6123 us/op 0.84
Set add up to 64 items then delete middle 1.9678 us/op 2.5278 us/op 0.78
OrderedSet add up to 64 items then delete middle 4.6526 us/op 5.4796 us/op 0.85
Set add up to 128 items then delete first 4.1025 us/op 5.6183 us/op 0.73
OrderedSet add up to 128 items then delete first 5.9562 us/op 8.1227 us/op 0.73
Set add up to 128 items then delete last 3.9458 us/op 5.6028 us/op 0.70
OrderedSet add up to 128 items then delete last 6.1576 us/op 8.6548 us/op 0.71
Set add up to 128 items then delete middle 3.9379 us/op 5.5826 us/op 0.71
OrderedSet add up to 128 items then delete middle 12.240 us/op 15.600 us/op 0.78
Set add up to 256 items then delete first 7.7477 us/op 13.552 us/op 0.57
OrderedSet add up to 256 items then delete first 11.770 us/op 18.140 us/op 0.65
Set add up to 256 items then delete last 7.7284 us/op 10.930 us/op 0.71
OrderedSet add up to 256 items then delete last 12.152 us/op 15.841 us/op 0.77
Set add up to 256 items then delete middle 7.6514 us/op 10.324 us/op 0.74
OrderedSet add up to 256 items then delete middle 34.489 us/op 42.871 us/op 0.80
transfer serialized Status (84 B) 1.3710 us/op 1.3990 us/op 0.98
copy serialized Status (84 B) 1.2160 us/op 1.1720 us/op 1.04
transfer serialized SignedVoluntaryExit (112 B) 1.4640 us/op 1.4710 us/op 1.00
copy serialized SignedVoluntaryExit (112 B) 1.2590 us/op 1.2020 us/op 1.05
transfer serialized ProposerSlashing (416 B) 1.7550 us/op 1.8160 us/op 0.97
copy serialized ProposerSlashing (416 B) 1.9600 us/op 1.5150 us/op 1.29
transfer serialized Attestation (485 B) 2.2530 us/op 1.5430 us/op 1.46
copy serialized Attestation (485 B) 2.0930 us/op 1.6320 us/op 1.28
transfer serialized AttesterSlashing (33232 B) 2.5560 us/op 1.7260 us/op 1.48
copy serialized AttesterSlashing (33232 B) 4.6830 us/op 4.8470 us/op 0.97
transfer serialized Small SignedBeaconBlock (128000 B) 2.7240 us/op 2.2410 us/op 1.22
copy serialized Small SignedBeaconBlock (128000 B) 14.805 us/op 13.373 us/op 1.11
transfer serialized Avg SignedBeaconBlock (200000 B) 2.6360 us/op 2.7910 us/op 0.94
copy serialized Avg SignedBeaconBlock (200000 B) 13.386 us/op 19.854 us/op 0.67
transfer serialized BlobsSidecar (524380 B) 2.5370 us/op 2.8260 us/op 0.90
copy serialized BlobsSidecar (524380 B) 74.068 us/op 83.484 us/op 0.89
transfer serialized Big SignedBeaconBlock (1000000 B) 2.8910 us/op 3.7640 us/op 0.77
copy serialized Big SignedBeaconBlock (1000000 B) 130.66 us/op 192.13 us/op 0.68
pass gossip attestations to forkchoice per slot 2.5425 ms/op 2.9356 ms/op 0.87
forkChoice updateHead vc 100000 bc 64 eq 0 518.94 us/op 466.76 us/op 1.11
forkChoice updateHead vc 600000 bc 64 eq 0 2.3011 ms/op 4.1153 ms/op 0.56
forkChoice updateHead vc 1000000 bc 64 eq 0 3.9127 ms/op 5.1858 ms/op 0.75
forkChoice updateHead vc 600000 bc 320 eq 0 2.2847 ms/op 2.9291 ms/op 0.78
forkChoice updateHead vc 600000 bc 1200 eq 0 2.4298 ms/op 2.9485 ms/op 0.82
forkChoice updateHead vc 600000 bc 7200 eq 0 2.6246 ms/op 4.5551 ms/op 0.58
forkChoice updateHead vc 600000 bc 64 eq 1000 9.3909 ms/op 10.553 ms/op 0.89
forkChoice updateHead vc 600000 bc 64 eq 10000 9.3980 ms/op 10.869 ms/op 0.86
forkChoice updateHead vc 600000 bc 64 eq 300000 12.021 ms/op 14.041 ms/op 0.86
computeDeltas 500000 validators 300 proto nodes 3.3501 ms/op 4.3215 ms/op 0.78
computeDeltas 500000 validators 1200 proto nodes 3.4304 ms/op 4.2735 ms/op 0.80
computeDeltas 500000 validators 7200 proto nodes 3.3159 ms/op 4.2366 ms/op 0.78
computeDeltas 750000 validators 300 proto nodes 5.0053 ms/op 6.2576 ms/op 0.80
computeDeltas 750000 validators 1200 proto nodes 4.9775 ms/op 6.1804 ms/op 0.81
computeDeltas 750000 validators 7200 proto nodes 4.8671 ms/op 6.0839 ms/op 0.80
computeDeltas 1400000 validators 300 proto nodes 9.1286 ms/op 11.548 ms/op 0.79
computeDeltas 1400000 validators 1200 proto nodes 9.0052 ms/op 11.734 ms/op 0.77
computeDeltas 1400000 validators 7200 proto nodes 9.1879 ms/op 11.823 ms/op 0.78
computeDeltas 2100000 validators 300 proto nodes 13.651 ms/op 18.392 ms/op 0.74
computeDeltas 2100000 validators 1200 proto nodes 13.370 ms/op 17.685 ms/op 0.76
computeDeltas 2100000 validators 7200 proto nodes 13.580 ms/op 17.385 ms/op 0.78
altair processAttestation - 250000 vs - 7PWei normalcase 1.3595 ms/op 1.8050 ms/op 0.75
altair processAttestation - 250000 vs - 7PWei worstcase 2.0509 ms/op 2.7384 ms/op 0.75
altair processAttestation - setStatus - 1/6 committees join 61.162 us/op 92.770 us/op 0.66
altair processAttestation - setStatus - 1/3 committees join 118.18 us/op 178.05 us/op 0.66
altair processAttestation - setStatus - 1/2 committees join 176.32 us/op 258.65 us/op 0.68
altair processAttestation - setStatus - 2/3 committees join 234.34 us/op 331.85 us/op 0.71
altair processAttestation - setStatus - 4/5 committees join 367.43 us/op 479.90 us/op 0.77
altair processAttestation - setStatus - 100% committees join 447.63 us/op 570.28 us/op 0.78
altair processBlock - 250000 vs - 7PWei normalcase 3.9461 ms/op 5.6635 ms/op 0.70
altair processBlock - 250000 vs - 7PWei normalcase hashState 24.495 ms/op 26.008 ms/op 0.94
altair processBlock - 250000 vs - 7PWei worstcase 31.078 ms/op 32.301 ms/op 0.96
altair processBlock - 250000 vs - 7PWei worstcase hashState 74.138 ms/op 68.780 ms/op 1.08
phase0 processBlock - 250000 vs - 7PWei normalcase 1.8630 ms/op 2.1171 ms/op 0.88
phase0 processBlock - 250000 vs - 7PWei worstcase 21.806 ms/op 22.193 ms/op 0.98
altair processEth1Data - 250000 vs - 7PWei normalcase 243.39 us/op 321.13 us/op 0.76
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 4.7280 us/op 6.5170 us/op 0.73
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 27.773 us/op 37.189 us/op 0.75
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 8.5820 us/op 14.008 us/op 0.61
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 5.1720 us/op 5.7120 us/op 0.91
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 115.51 us/op 115.21 us/op 1.00
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 800.62 us/op 1.0469 ms/op 0.76
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.0407 ms/op 1.4455 ms/op 0.72
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.1742 ms/op 1.4337 ms/op 0.82
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.7211 ms/op 3.6080 ms/op 0.75
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.1176 ms/op 1.4870 ms/op 0.75
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 2.7159 ms/op 3.9572 ms/op 0.69
Tree 40 250000 create 195.41 ms/op 221.13 ms/op 0.88
Tree 40 250000 get(125000) 117.72 ns/op 158.63 ns/op 0.74
Tree 40 250000 set(125000) 531.88 ns/op 730.53 ns/op 0.73
Tree 40 250000 toArray() 15.525 ms/op 17.933 ms/op 0.87
Tree 40 250000 iterate all - toArray() + loop 14.480 ms/op 19.692 ms/op 0.74
Tree 40 250000 iterate all - get(i) 41.423 ms/op 61.037 ms/op 0.68
Array 250000 create 2.8697 ms/op 3.5659 ms/op 0.80
Array 250000 clone - spread 1.2071 ms/op 1.5941 ms/op 0.76
Array 250000 get(125000) 0.56900 ns/op 0.42600 ns/op 1.34
Array 250000 set(125000) 0.56300 ns/op 0.45700 ns/op 1.23
Array 250000 iterate all - loop 73.113 us/op 103.77 us/op 0.70
phase0 afterProcessEpoch - 250000 vs - 7PWei 39.859 ms/op 52.970 ms/op 0.75
Array.fill - length 1000000 2.3964 ms/op 3.7225 ms/op 0.64
Array push - length 1000000 14.891 ms/op 13.711 ms/op 1.09
Array.get 0.25581 ns/op 0.28261 ns/op 0.91
Uint8Array.get 0.33656 ns/op 0.44068 ns/op 0.76
phase0 beforeProcessEpoch - 250000 vs - 7PWei 18.723 ms/op 21.340 ms/op 0.88
altair processEpoch - mainnet_e81889 273.04 ms/op 252.73 ms/op 1.08
mainnet_e81889 - altair beforeProcessEpoch 19.848 ms/op 18.629 ms/op 1.07
mainnet_e81889 - altair processJustificationAndFinalization 15.538 us/op 11.746 us/op 1.32
mainnet_e81889 - altair processInactivityUpdates 5.3923 ms/op 5.4569 ms/op 0.99
mainnet_e81889 - altair processRewardsAndPenalties 49.182 ms/op 36.572 ms/op 1.34
mainnet_e81889 - altair processRegistryUpdates 2.4510 us/op 1.7880 us/op 1.37
mainnet_e81889 - altair processSlashings 884.00 ns/op 370.00 ns/op 2.39
mainnet_e81889 - altair processEth1DataReset 857.00 ns/op 413.00 ns/op 2.08
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.5156 ms/op 1.9413 ms/op 0.78
mainnet_e81889 - altair processSlashingsReset 3.0300 us/op 2.7430 us/op 1.10
mainnet_e81889 - altair processRandaoMixesReset 4.3330 us/op 3.3230 us/op 1.30
mainnet_e81889 - altair processHistoricalRootsUpdate 1.0310 us/op 642.00 ns/op 1.61
mainnet_e81889 - altair processParticipationFlagUpdates 2.7320 us/op 2.2870 us/op 1.19
mainnet_e81889 - altair processSyncCommitteeUpdates 912.00 ns/op 456.00 ns/op 2.00
mainnet_e81889 - altair afterProcessEpoch 43.886 ms/op 50.491 ms/op 0.87
capella processEpoch - mainnet_e217614 836.90 ms/op 944.08 ms/op 0.89
mainnet_e217614 - capella beforeProcessEpoch 70.750 ms/op 77.125 ms/op 0.92
mainnet_e217614 - capella processJustificationAndFinalization 18.983 us/op 18.694 us/op 1.02
mainnet_e217614 - capella processInactivityUpdates 17.197 ms/op 17.297 ms/op 0.99
mainnet_e217614 - capella processRewardsAndPenalties 238.37 ms/op 218.29 ms/op 1.09
mainnet_e217614 - capella processRegistryUpdates 13.879 us/op 12.554 us/op 1.11
mainnet_e217614 - capella processSlashings 841.00 ns/op 364.00 ns/op 2.31
mainnet_e217614 - capella processEth1DataReset 926.00 ns/op 338.00 ns/op 2.74
mainnet_e217614 - capella processEffectiveBalanceUpdates 9.3487 ms/op 16.407 ms/op 0.57
mainnet_e217614 - capella processSlashingsReset 4.0260 us/op 4.6800 us/op 0.86
mainnet_e217614 - capella processRandaoMixesReset 5.5700 us/op 5.0970 us/op 1.09
mainnet_e217614 - capella processHistoricalRootsUpdate 1.4210 us/op 562.00 ns/op 2.53
mainnet_e217614 - capella processParticipationFlagUpdates 3.4610 us/op 2.0540 us/op 1.69
mainnet_e217614 - capella afterProcessEpoch 118.99 ms/op 123.40 ms/op 0.96
phase0 processEpoch - mainnet_e58758 309.80 ms/op 326.59 ms/op 0.95
mainnet_e58758 - phase0 beforeProcessEpoch 82.605 ms/op 73.265 ms/op 1.13
mainnet_e58758 - phase0 processJustificationAndFinalization 19.933 us/op 12.991 us/op 1.53
mainnet_e58758 - phase0 processRewardsAndPenalties 35.816 ms/op 31.651 ms/op 1.13
mainnet_e58758 - phase0 processRegistryUpdates 17.378 us/op 7.9440 us/op 2.19
mainnet_e58758 - phase0 processSlashings 1.1720 us/op 336.00 ns/op 3.49
mainnet_e58758 - phase0 processEth1DataReset 1.0940 us/op 321.00 ns/op 3.41
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.0149 ms/op 1.1927 ms/op 0.85
mainnet_e58758 - phase0 processSlashingsReset 5.8250 us/op 2.9490 us/op 1.98
mainnet_e58758 - phase0 processRandaoMixesReset 6.4560 us/op 4.6490 us/op 1.39
mainnet_e58758 - phase0 processHistoricalRootsUpdate 942.00 ns/op 319.00 ns/op 2.95
mainnet_e58758 - phase0 processParticipationRecordUpdates 6.5650 us/op 2.8380 us/op 2.31
mainnet_e58758 - phase0 afterProcessEpoch 38.496 ms/op 42.183 ms/op 0.91
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.2171 ms/op 1.4237 ms/op 0.85
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 4.8338 ms/op 2.5298 ms/op 1.91
altair processInactivityUpdates - 250000 normalcase 19.320 ms/op 15.757 ms/op 1.23
altair processInactivityUpdates - 250000 worstcase 20.109 ms/op 17.911 ms/op 1.12
phase0 processRegistryUpdates - 250000 normalcase 12.785 us/op 10.009 us/op 1.28
phase0 processRegistryUpdates - 250000 badcase_full_deposits 299.33 us/op 300.33 us/op 1.00
phase0 processRegistryUpdates - 250000 worstcase 0.5 169.50 ms/op 123.12 ms/op 1.38
altair processRewardsAndPenalties - 250000 normalcase 54.359 ms/op 39.676 ms/op 1.37
altair processRewardsAndPenalties - 250000 worstcase 49.627 ms/op 40.214 ms/op 1.23
phase0 getAttestationDeltas - 250000 normalcase 7.3366 ms/op 8.0457 ms/op 0.91
phase0 getAttestationDeltas - 250000 worstcase 6.8339 ms/op 10.806 ms/op 0.63
phase0 processSlashings - 250000 worstcase 93.244 us/op 100.61 us/op 0.93
altair processSyncCommitteeUpdates - 250000 112.07 ms/op 128.98 ms/op 0.87
BeaconState.hashTreeRoot - No change 545.00 ns/op 233.00 ns/op 2.34
BeaconState.hashTreeRoot - 1 full validator 172.26 us/op 127.78 us/op 1.35
BeaconState.hashTreeRoot - 32 full validator 1.1288 ms/op 1.6373 ms/op 0.69
BeaconState.hashTreeRoot - 512 full validator 12.813 ms/op 10.882 ms/op 1.18
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 115.06 us/op 119.27 us/op 0.96
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.7950 ms/op 1.7031 ms/op 1.05
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 17.800 ms/op 20.344 ms/op 0.87
BeaconState.hashTreeRoot - 1 balances 80.668 us/op 96.939 us/op 0.83
BeaconState.hashTreeRoot - 32 balances 1.3989 ms/op 758.57 us/op 1.84
BeaconState.hashTreeRoot - 512 balances 10.621 ms/op 7.8429 ms/op 1.35
BeaconState.hashTreeRoot - 250000 balances 207.31 ms/op 144.31 ms/op 1.44
aggregationBits - 2048 els - zipIndexesInBitList 24.922 us/op 31.638 us/op 0.79
byteArrayEquals 32 48.863 ns/op 53.696 ns/op 0.91
Buffer.compare 32 16.042 ns/op 17.269 ns/op 0.93
byteArrayEquals 1024 1.2968 us/op 1.5762 us/op 0.82
Buffer.compare 1024 24.933 ns/op 24.709 ns/op 1.01
byteArrayEquals 16384 21.204 us/op 25.047 us/op 0.85
Buffer.compare 16384 185.03 ns/op 246.79 ns/op 0.75
byteArrayEquals 123687377 156.04 ms/op 193.15 ms/op 0.81
Buffer.compare 123687377 5.9287 ms/op 10.717 ms/op 0.55
byteArrayEquals 32 - diff last byte 48.235 ns/op 54.010 ns/op 0.89
Buffer.compare 32 - diff last byte 17.184 ns/op 17.714 ns/op 0.97
byteArrayEquals 1024 - diff last byte 1.3003 us/op 1.6245 us/op 0.80
Buffer.compare 1024 - diff last byte 23.636 ns/op 26.302 ns/op 0.90
byteArrayEquals 16384 - diff last byte 20.572 us/op 25.458 us/op 0.81
Buffer.compare 16384 - diff last byte 198.94 ns/op 210.72 ns/op 0.94
byteArrayEquals 123687377 - diff last byte 157.47 ms/op 194.28 ms/op 0.81
Buffer.compare 123687377 - diff last byte 6.4411 ms/op 8.8325 ms/op 0.73
byteArrayEquals 32 - random bytes 4.9010 ns/op 5.3510 ns/op 0.92
Buffer.compare 32 - random bytes 16.134 ns/op 17.947 ns/op 0.90
byteArrayEquals 1024 - random bytes 4.9220 ns/op 5.3720 ns/op 0.92
Buffer.compare 1024 - random bytes 15.660 ns/op 17.814 ns/op 0.88
byteArrayEquals 16384 - random bytes 5.0040 ns/op 5.5710 ns/op 0.90
Buffer.compare 16384 - random bytes 15.397 ns/op 17.810 ns/op 0.86
byteArrayEquals 123687377 - random bytes 7.9300 ns/op 6.6000 ns/op 1.20
Buffer.compare 123687377 - random bytes 18.360 ns/op 18.990 ns/op 0.97
regular array get 100000 times 30.800 us/op 33.477 us/op 0.92
wrappedArray get 100000 times 30.766 us/op 37.264 us/op 0.83
arrayWithProxy get 100000 times 10.703 ms/op 14.950 ms/op 0.72
ssz.Root.equals 46.564 ns/op 47.652 ns/op 0.98
byteArrayEquals 41.308 ns/op 46.329 ns/op 0.89
Buffer.compare 8.8470 ns/op 10.922 ns/op 0.81
processSlot - 1 slots 14.976 us/op 12.069 us/op 1.24
processSlot - 32 slots 3.6313 ms/op 2.4598 ms/op 1.48
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 37.373 ms/op 36.189 ms/op 1.03
getCommitteeAssignments - req 1 vs - 250000 vc 1.8405 ms/op 2.1553 ms/op 0.85
getCommitteeAssignments - req 100 vs - 250000 vc 3.6268 ms/op 4.1831 ms/op 0.87
getCommitteeAssignments - req 1000 vs - 250000 vc 3.9394 ms/op 4.5957 ms/op 0.86
findModifiedValidators - 10000 modified validators 251.63 ms/op 248.73 ms/op 1.01
findModifiedValidators - 1000 modified validators 176.29 ms/op 170.03 ms/op 1.04
findModifiedValidators - 100 modified validators 176.75 ms/op 149.44 ms/op 1.18
findModifiedValidators - 10 modified validators 148.01 ms/op 158.32 ms/op 0.93
findModifiedValidators - 1 modified validators 154.61 ms/op 149.81 ms/op 1.03
findModifiedValidators - no difference 166.58 ms/op 160.78 ms/op 1.04
compare ViewDUs 3.3172 s/op 3.1237 s/op 1.06
compare each validator Uint8Array 1.3340 s/op 1.0491 s/op 1.27
compare ViewDU to Uint8Array 1.0020 s/op 1.0016 s/op 1.00
migrate state 1000000 validators, 24 modified, 0 new 699.25 ms/op 670.70 ms/op 1.04
migrate state 1000000 validators, 1700 modified, 1000 new 950.33 ms/op 918.65 ms/op 1.03
migrate state 1000000 validators, 3400 modified, 2000 new 1.1289 s/op 1.0805 s/op 1.04
migrate state 1500000 validators, 24 modified, 0 new 640.16 ms/op 753.09 ms/op 0.85
migrate state 1500000 validators, 1700 modified, 1000 new 887.69 ms/op 954.44 ms/op 0.93
migrate state 1500000 validators, 3400 modified, 2000 new 1.0853 s/op 1.1668 s/op 0.93
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 5.8000 ns/op 4.3100 ns/op 1.35
state getBlockRootAtSlot - 250000 vs - 7PWei 757.54 ns/op 919.62 ns/op 0.82
computeProposers - vc 250000 5.6911 ms/op 7.2291 ms/op 0.79
computeEpochShuffling - vc 250000 35.389 ms/op 41.369 ms/op 0.86
getNextSyncCommittee - vc 250000 100.42 ms/op 119.99 ms/op 0.84
computeSigningRoot for AttestationData 22.109 us/op 17.726 us/op 1.25
hash AttestationData serialized data then Buffer.toString(base64) 1.1766 us/op 1.5496 us/op 0.76
toHexString serialized data 752.27 ns/op 872.66 ns/op 0.86
Buffer.toString(base64) 141.98 ns/op 181.77 ns/op 0.78
nodejs block root to RootHex using toHex 117.75 ns/op 158.34 ns/op 0.74
nodejs block root to RootHex using toRootHex 77.538 ns/op 96.462 ns/op 0.80
browser block root to RootHex using the deprecated toHexString 204.24 ns/op 223.86 ns/op 0.91
browser block root to RootHex using toHex 169.53 ns/op 179.14 ns/op 0.95
browser block root to RootHex using toRootHex 143.27 ns/op 161.92 ns/op 0.88

by benchmarkbot/action

@wemeetagain wemeetagain merged commit cf72219 into unstable Oct 15, 2024
20 checks passed
@wemeetagain wemeetagain deleted the nflaig/print-cutoff branch October 15, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants