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

fix: add logger to builder http client #7168

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Oct 16, 2024

Motivation

Those logs would be nice to have to better investigate builder api times and wire format used

Description

Adds logger to builder http client

@nflaig nflaig requested a review from a team as a code owner October 16, 2024 09:54
Copy link

codecov bot commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.21%. Comparing base (cf72219) to head (0c640b0).
Report is 3 commits behind head on unstable.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #7168   +/-   ##
=========================================
  Coverage     49.21%   49.21%           
=========================================
  Files           598      598           
  Lines         39726    39726           
  Branches       2092     2095    +3     
=========================================
+ Hits          19550    19551    +1     
+ Misses        20136    20135    -1     
  Partials         40       40           

Copy link
Contributor

github-actions bot commented Oct 16, 2024

Performance Report

✔️ no performance regression detected

🚀🚀 Significant benchmark improvement detected

Benchmark suite Current: 111a5f9 Previous: cf72219 Ratio
forkChoice updateHead vc 600000 bc 64 eq 300000 12.010 ms/op 65.050 ms/op 0.18
Full benchmark results
Benchmark suite Current: 111a5f9 Previous: cf72219 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.9499 ms/op 1.8222 ms/op 1.07
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 49.698 us/op 48.271 us/op 1.03
BLS verify - blst 906.39 us/op 901.48 us/op 1.01
BLS verifyMultipleSignatures 3 - blst 1.3407 ms/op 1.3719 ms/op 0.98
BLS verifyMultipleSignatures 8 - blst 2.1412 ms/op 2.1398 ms/op 1.00
BLS verifyMultipleSignatures 32 - blst 4.4676 ms/op 4.4521 ms/op 1.00
BLS verifyMultipleSignatures 64 - blst 8.3921 ms/op 8.3445 ms/op 1.01
BLS verifyMultipleSignatures 128 - blst 16.007 ms/op 15.986 ms/op 1.00
BLS deserializing 10000 signatures 627.96 ms/op 626.05 ms/op 1.00
BLS deserializing 100000 signatures 6.2980 s/op 6.3849 s/op 0.99
BLS verifyMultipleSignatures - same message - 3 - blst 959.56 us/op 946.56 us/op 1.01
BLS verifyMultipleSignatures - same message - 8 - blst 1.1100 ms/op 1.0932 ms/op 1.02
BLS verifyMultipleSignatures - same message - 32 - blst 1.6647 ms/op 1.8226 ms/op 0.91
BLS verifyMultipleSignatures - same message - 64 - blst 2.5376 ms/op 2.5419 ms/op 1.00
BLS verifyMultipleSignatures - same message - 128 - blst 3.9978 ms/op 4.2752 ms/op 0.94
BLS aggregatePubkeys 32 - blst 18.648 us/op 18.286 us/op 1.02
BLS aggregatePubkeys 128 - blst 63.631 us/op 64.152 us/op 0.99
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 68.971 ms/op 77.079 ms/op 0.89
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 45.538 ms/op 55.593 ms/op 0.82
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 37.206 ms/op 46.273 ms/op 0.80
getSlashingsAndExits - default max 67.486 us/op 82.625 us/op 0.82
getSlashingsAndExits - 2k 262.67 us/op 334.15 us/op 0.79
proposeBlockBody type=full, size=empty 5.1414 ms/op 5.3953 ms/op 0.95
isKnown best case - 1 super set check 471.00 ns/op 478.00 ns/op 0.99
isKnown normal case - 2 super set checks 452.00 ns/op 472.00 ns/op 0.96
isKnown worse case - 16 super set checks 457.00 ns/op 470.00 ns/op 0.97
InMemoryCheckpointStateCache - add get delete 2.6310 us/op 3.3500 us/op 0.79
updateUnfinalizedPubkeys - updating 10 pubkeys 1.1547 ms/op 1.2222 ms/op 0.94
updateUnfinalizedPubkeys - updating 100 pubkeys 2.6255 ms/op 4.1910 ms/op 0.63
updateUnfinalizedPubkeys - updating 1000 pubkeys 39.043 ms/op 43.967 ms/op 0.89
validate api signedAggregateAndProof - struct 1.5474 ms/op 1.7581 ms/op 0.88
validate gossip signedAggregateAndProof - struct 1.6911 ms/op 1.9892 ms/op 0.85
batch validate gossip attestation - vc 640000 - chunk 32 119.93 us/op 136.66 us/op 0.88
batch validate gossip attestation - vc 640000 - chunk 64 104.04 us/op 116.18 us/op 0.90
batch validate gossip attestation - vc 640000 - chunk 128 103.93 us/op 109.78 us/op 0.95
batch validate gossip attestation - vc 640000 - chunk 256 102.92 us/op 116.77 us/op 0.88
pickEth1Vote - no votes 880.79 us/op 1.0689 ms/op 0.82
pickEth1Vote - max votes 4.6357 ms/op 8.0391 ms/op 0.58
pickEth1Vote - Eth1Data hashTreeRoot value x2048 13.862 ms/op 11.804 ms/op 1.17
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 17.759 ms/op 16.828 ms/op 1.06
pickEth1Vote - Eth1Data fastSerialize value x2048 336.09 us/op 382.98 us/op 0.88
pickEth1Vote - Eth1Data fastSerialize tree x2048 2.1876 ms/op 3.3781 ms/op 0.65
bytes32 toHexString 630.00 ns/op 839.00 ns/op 0.75
bytes32 Buffer.toString(hex) 439.00 ns/op 521.00 ns/op 0.84
bytes32 Buffer.toString(hex) from Uint8Array 597.00 ns/op 725.00 ns/op 0.82
bytes32 Buffer.toString(hex) + 0x 427.00 ns/op 537.00 ns/op 0.80
Object access 1 prop 0.33800 ns/op 0.38600 ns/op 0.88
Map access 1 prop 0.32200 ns/op 0.34900 ns/op 0.92
Object get x1000 4.8810 ns/op 5.2990 ns/op 0.92
Map get x1000 6.5880 ns/op 5.9870 ns/op 1.10
Object set x1000 22.670 ns/op 24.752 ns/op 0.92
Map set x1000 18.811 ns/op 21.310 ns/op 0.88
Return object 10000 times 0.29350 ns/op 0.31230 ns/op 0.94
Throw Error 10000 times 2.6481 us/op 3.0244 us/op 0.88
toHex 111.49 ns/op 125.63 ns/op 0.89
Buffer.from 103.85 ns/op 106.69 ns/op 0.97
shared Buffer 72.158 ns/op 70.768 ns/op 1.02
fastMsgIdFn sha256 / 200 bytes 1.9870 us/op 2.1910 us/op 0.91
fastMsgIdFn h32 xxhash / 200 bytes 410.00 ns/op 510.00 ns/op 0.80
fastMsgIdFn h64 xxhash / 200 bytes 437.00 ns/op 508.00 ns/op 0.86
fastMsgIdFn sha256 / 1000 bytes 5.6420 us/op 6.0440 us/op 0.93
fastMsgIdFn h32 xxhash / 1000 bytes 537.00 ns/op 635.00 ns/op 0.85
fastMsgIdFn h64 xxhash / 1000 bytes 495.00 ns/op 584.00 ns/op 0.85
fastMsgIdFn sha256 / 10000 bytes 46.688 us/op 50.138 us/op 0.93
fastMsgIdFn h32 xxhash / 10000 bytes 1.8450 us/op 2.0220 us/op 0.91
fastMsgIdFn h64 xxhash / 10000 bytes 1.2590 us/op 1.3740 us/op 0.92
send data - 1000 256B messages 10.016 ms/op 12.996 ms/op 0.77
send data - 1000 512B messages 13.164 ms/op 19.212 ms/op 0.69
send data - 1000 1024B messages 19.923 ms/op 26.372 ms/op 0.76
send data - 1000 1200B messages 23.545 ms/op 28.823 ms/op 0.82
send data - 1000 2048B messages 28.398 ms/op 37.722 ms/op 0.75
send data - 1000 4096B messages 25.480 ms/op 38.454 ms/op 0.66
send data - 1000 16384B messages 61.712 ms/op 88.441 ms/op 0.70
send data - 1000 65536B messages 239.64 ms/op 339.72 ms/op 0.71
enrSubnets - fastDeserialize 64 bits 1.1050 us/op 2.1450 us/op 0.52
enrSubnets - ssz BitVector 64 bits 503.00 ns/op 840.00 ns/op 0.60
enrSubnets - fastDeserialize 4 bits 328.00 ns/op 467.00 ns/op 0.70
enrSubnets - ssz BitVector 4 bits 501.00 ns/op 719.00 ns/op 0.70
prioritizePeers score -10:0 att 32-0.1 sync 2-0 120.62 us/op 206.47 us/op 0.58
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 139.45 us/op 226.27 us/op 0.62
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 301.93 us/op 391.72 us/op 0.77
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 541.88 us/op 551.54 us/op 0.98
prioritizePeers score 0:0 att 64-1 sync 4-1 638.39 us/op 967.98 us/op 0.66
array of 16000 items push then shift 1.2937 us/op 1.4064 us/op 0.92
LinkedList of 16000 items push then shift 7.2560 ns/op 8.4800 ns/op 0.86
array of 16000 items push then pop 83.697 ns/op 164.78 ns/op 0.51
LinkedList of 16000 items push then pop 6.1420 ns/op 8.0520 ns/op 0.76
array of 24000 items push then shift 1.7849 us/op 2.0304 us/op 0.88
LinkedList of 24000 items push then shift 6.9450 ns/op 6.7010 ns/op 1.04
array of 24000 items push then pop 113.09 ns/op 181.00 ns/op 0.62
LinkedList of 24000 items push then pop 6.1610 ns/op 6.4480 ns/op 0.96
intersect bitArray bitLen 8 5.5820 ns/op 6.0110 ns/op 0.93
intersect array and set length 8 38.980 ns/op 75.099 ns/op 0.52
intersect bitArray bitLen 128 26.273 ns/op 27.071 ns/op 0.97
intersect array and set length 128 581.70 ns/op 890.33 ns/op 0.65
bitArray.getTrueBitIndexes() bitLen 128 2.0020 us/op 2.8620 us/op 0.70
bitArray.getTrueBitIndexes() bitLen 248 3.3870 us/op 3.8080 us/op 0.89
bitArray.getTrueBitIndexes() bitLen 512 6.2370 us/op 10.012 us/op 0.62
Buffer.concat 32 items 1.0080 us/op 1.1060 us/op 0.91
Uint8Array.set 32 items 1.8490 us/op 1.6200 us/op 1.14
Buffer.copy 1.9980 us/op 2.7130 us/op 0.74
Uint8Array.set - with subarray 2.6670 us/op 4.2460 us/op 0.63
Uint8Array.set - without subarray 1.6880 us/op 2.7170 us/op 0.62
getUint32 - dataview 393.00 ns/op 591.00 ns/op 0.66
getUint32 - manual 337.00 ns/op 610.00 ns/op 0.55
Set add up to 64 items then delete first 1.8423 us/op 3.2989 us/op 0.56
OrderedSet add up to 64 items then delete first 2.8352 us/op 5.2607 us/op 0.54
Set add up to 64 items then delete last 2.0793 us/op 3.2958 us/op 0.63
OrderedSet add up to 64 items then delete last 3.2387 us/op 5.6689 us/op 0.57
Set add up to 64 items then delete middle 2.1016 us/op 3.4290 us/op 0.61
OrderedSet add up to 64 items then delete middle 4.6029 us/op 6.4786 us/op 0.71
Set add up to 128 items then delete first 4.1338 us/op 5.2356 us/op 0.79
OrderedSet add up to 128 items then delete first 6.3205 us/op 7.3698 us/op 0.86
Set add up to 128 items then delete last 4.0535 us/op 5.3874 us/op 0.75
OrderedSet add up to 128 items then delete last 6.3650 us/op 7.4141 us/op 0.86
Set add up to 128 items then delete middle 4.0569 us/op 5.5669 us/op 0.73
OrderedSet add up to 128 items then delete middle 12.138 us/op 14.690 us/op 0.83
Set add up to 256 items then delete first 7.8624 us/op 13.556 us/op 0.58
OrderedSet add up to 256 items then delete first 12.041 us/op 21.379 us/op 0.56
Set add up to 256 items then delete last 7.9317 us/op 12.461 us/op 0.64
OrderedSet add up to 256 items then delete last 12.472 us/op 21.344 us/op 0.58
Set add up to 256 items then delete middle 8.1233 us/op 12.953 us/op 0.63
OrderedSet add up to 256 items then delete middle 34.796 us/op 43.659 us/op 0.80
transfer serialized Status (84 B) 1.4420 us/op 1.8520 us/op 0.78
copy serialized Status (84 B) 1.2000 us/op 1.8570 us/op 0.65
transfer serialized SignedVoluntaryExit (112 B) 1.4740 us/op 1.7960 us/op 0.82
copy serialized SignedVoluntaryExit (112 B) 1.2970 us/op 1.5650 us/op 0.83
transfer serialized ProposerSlashing (416 B) 1.6940 us/op 2.1100 us/op 0.80
copy serialized ProposerSlashing (416 B) 1.7350 us/op 2.3930 us/op 0.73
transfer serialized Attestation (485 B) 2.0510 us/op 3.1250 us/op 0.66
copy serialized Attestation (485 B) 1.6570 us/op 2.8840 us/op 0.57
transfer serialized AttesterSlashing (33232 B) 2.9170 us/op 2.7690 us/op 1.05
copy serialized AttesterSlashing (33232 B) 6.5150 us/op 11.233 us/op 0.58
transfer serialized Small SignedBeaconBlock (128000 B) 2.7220 us/op 3.2700 us/op 0.83
copy serialized Small SignedBeaconBlock (128000 B) 15.880 us/op 15.051 us/op 1.06
transfer serialized Avg SignedBeaconBlock (200000 B) 2.5770 us/op 3.2650 us/op 0.79
copy serialized Avg SignedBeaconBlock (200000 B) 19.614 us/op 17.677 us/op 1.11
transfer serialized BlobsSidecar (524380 B) 2.5180 us/op 3.8510 us/op 0.65
copy serialized BlobsSidecar (524380 B) 119.77 us/op 98.945 us/op 1.21
transfer serialized Big SignedBeaconBlock (1000000 B) 2.8300 us/op 4.1880 us/op 0.68
copy serialized Big SignedBeaconBlock (1000000 B) 340.19 us/op 167.56 us/op 2.03
pass gossip attestations to forkchoice per slot 2.3639 ms/op 3.0846 ms/op 0.77
forkChoice updateHead vc 100000 bc 64 eq 0 403.69 us/op 376.41 us/op 1.07
forkChoice updateHead vc 600000 bc 64 eq 0 2.4912 ms/op 4.5434 ms/op 0.55
forkChoice updateHead vc 1000000 bc 64 eq 0 4.0153 ms/op 5.2672 ms/op 0.76
forkChoice updateHead vc 600000 bc 320 eq 0 2.4784 ms/op 3.1325 ms/op 0.79
forkChoice updateHead vc 600000 bc 1200 eq 0 2.4337 ms/op 2.3871 ms/op 1.02
forkChoice updateHead vc 600000 bc 7200 eq 0 2.5916 ms/op 4.3150 ms/op 0.60
forkChoice updateHead vc 600000 bc 64 eq 1000 9.0685 ms/op 10.207 ms/op 0.89
forkChoice updateHead vc 600000 bc 64 eq 10000 9.2271 ms/op 11.418 ms/op 0.81
forkChoice updateHead vc 600000 bc 64 eq 300000 12.010 ms/op 65.050 ms/op 0.18
computeDeltas 500000 validators 300 proto nodes 3.2589 ms/op 4.1427 ms/op 0.79
computeDeltas 500000 validators 1200 proto nodes 3.4735 ms/op 3.8162 ms/op 0.91
computeDeltas 500000 validators 7200 proto nodes 3.4579 ms/op 3.6051 ms/op 0.96
computeDeltas 750000 validators 300 proto nodes 4.9844 ms/op 5.7122 ms/op 0.87
computeDeltas 750000 validators 1200 proto nodes 4.9476 ms/op 5.8615 ms/op 0.84
computeDeltas 750000 validators 7200 proto nodes 5.1233 ms/op 5.8561 ms/op 0.87
computeDeltas 1400000 validators 300 proto nodes 9.4955 ms/op 11.367 ms/op 0.84
computeDeltas 1400000 validators 1200 proto nodes 9.4382 ms/op 10.311 ms/op 0.92
computeDeltas 1400000 validators 7200 proto nodes 9.3870 ms/op 10.120 ms/op 0.93
computeDeltas 2100000 validators 300 proto nodes 14.353 ms/op 15.896 ms/op 0.90
computeDeltas 2100000 validators 1200 proto nodes 14.697 ms/op 16.054 ms/op 0.92
computeDeltas 2100000 validators 7200 proto nodes 14.698 ms/op 16.556 ms/op 0.89
altair processAttestation - 250000 vs - 7PWei normalcase 1.7569 ms/op 2.7190 ms/op 0.65
altair processAttestation - 250000 vs - 7PWei worstcase 2.5351 ms/op 2.3286 ms/op 1.09
altair processAttestation - setStatus - 1/6 committees join 79.981 us/op 89.154 us/op 0.90
altair processAttestation - setStatus - 1/3 committees join 166.11 us/op 244.06 us/op 0.68
altair processAttestation - setStatus - 1/2 committees join 196.85 us/op 402.49 us/op 0.49
altair processAttestation - setStatus - 2/3 committees join 293.49 us/op 506.45 us/op 0.58
altair processAttestation - setStatus - 4/5 committees join 417.57 us/op 798.02 us/op 0.52
altair processAttestation - setStatus - 100% committees join 517.69 us/op 775.15 us/op 0.67
altair processBlock - 250000 vs - 7PWei normalcase 3.9090 ms/op 11.358 ms/op 0.34
altair processBlock - 250000 vs - 7PWei normalcase hashState 32.439 ms/op 50.418 ms/op 0.64
altair processBlock - 250000 vs - 7PWei worstcase 40.506 ms/op 45.412 ms/op 0.89
altair processBlock - 250000 vs - 7PWei worstcase hashState 76.361 ms/op 76.593 ms/op 1.00
phase0 processBlock - 250000 vs - 7PWei normalcase 2.1295 ms/op 1.3948 ms/op 1.53
phase0 processBlock - 250000 vs - 7PWei worstcase 23.977 ms/op 30.575 ms/op 0.78
altair processEth1Data - 250000 vs - 7PWei normalcase 261.71 us/op 291.83 us/op 0.90
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 5.0940 us/op 12.289 us/op 0.41
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 28.969 us/op 65.257 us/op 0.44
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 8.3690 us/op 13.620 us/op 0.61
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 6.0100 us/op 8.1020 us/op 0.74
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 138.74 us/op 130.41 us/op 1.06
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 842.66 us/op 982.02 us/op 0.86
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.1346 ms/op 1.4081 ms/op 0.81
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.1678 ms/op 1.5920 ms/op 0.73
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.8664 ms/op 4.0991 ms/op 0.70
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.1209 ms/op 1.9714 ms/op 0.57
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.1524 ms/op 3.5797 ms/op 0.88
Tree 40 250000 create 186.95 ms/op 213.75 ms/op 0.87
Tree 40 250000 get(125000) 127.27 ns/op 169.54 ns/op 0.75
Tree 40 250000 set(125000) 555.41 ns/op 655.84 ns/op 0.85
Tree 40 250000 toArray() 10.501 ms/op 27.756 ms/op 0.38
Tree 40 250000 iterate all - toArray() + loop 10.311 ms/op 25.912 ms/op 0.40
Tree 40 250000 iterate all - get(i) 41.102 ms/op 63.321 ms/op 0.65
Array 250000 create 2.2900 ms/op 3.4455 ms/op 0.66
Array 250000 clone - spread 1.2829 ms/op 1.5037 ms/op 0.85
Array 250000 get(125000) 0.56700 ns/op 0.62500 ns/op 0.91
Array 250000 set(125000) 0.58900 ns/op 0.64000 ns/op 0.92
Array 250000 iterate all - loop 76.569 us/op 80.848 us/op 0.95
phase0 afterProcessEpoch - 250000 vs - 7PWei 42.457 ms/op 50.903 ms/op 0.83
Array.fill - length 1000000 2.5524 ms/op 2.8926 ms/op 0.88
Array push - length 1000000 14.982 ms/op 20.660 ms/op 0.73
Array.get 0.25235 ns/op 0.28288 ns/op 0.89
Uint8Array.get 0.33622 ns/op 0.35835 ns/op 0.94
phase0 beforeProcessEpoch - 250000 vs - 7PWei 18.063 ms/op 21.915 ms/op 0.82
altair processEpoch - mainnet_e81889 230.13 ms/op 328.28 ms/op 0.70
mainnet_e81889 - altair beforeProcessEpoch 17.776 ms/op 25.524 ms/op 0.70
mainnet_e81889 - altair processJustificationAndFinalization 16.095 us/op 23.879 us/op 0.67
mainnet_e81889 - altair processInactivityUpdates 4.3536 ms/op 7.6612 ms/op 0.57
mainnet_e81889 - altair processRewardsAndPenalties 50.737 ms/op 57.458 ms/op 0.88
mainnet_e81889 - altair processRegistryUpdates 2.4130 us/op 3.3150 us/op 0.73
mainnet_e81889 - altair processSlashings 726.00 ns/op 1.2040 us/op 0.60
mainnet_e81889 - altair processEth1DataReset 837.00 ns/op 887.00 ns/op 0.94
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.9477 ms/op 2.2597 ms/op 0.86
mainnet_e81889 - altair processSlashingsReset 3.6100 us/op 4.2340 us/op 0.85
mainnet_e81889 - altair processRandaoMixesReset 4.7870 us/op 5.0090 us/op 0.96
mainnet_e81889 - altair processHistoricalRootsUpdate 1.9700 us/op 993.00 ns/op 1.98
mainnet_e81889 - altair processParticipationFlagUpdates 4.2890 us/op 4.8330 us/op 0.89
mainnet_e81889 - altair processSyncCommitteeUpdates 1.1390 us/op 1.3000 us/op 0.88
mainnet_e81889 - altair afterProcessEpoch 44.617 ms/op 45.734 ms/op 0.98
capella processEpoch - mainnet_e217614 1.1161 s/op 1.0274 s/op 1.09
mainnet_e217614 - capella beforeProcessEpoch 78.349 ms/op 73.915 ms/op 1.06
mainnet_e217614 - capella processJustificationAndFinalization 16.188 us/op 21.312 us/op 0.76
mainnet_e217614 - capella processInactivityUpdates 15.337 ms/op 14.236 ms/op 1.08
mainnet_e217614 - capella processRewardsAndPenalties 222.49 ms/op 211.91 ms/op 1.05
mainnet_e217614 - capella processRegistryUpdates 11.210 us/op 15.520 us/op 0.72
mainnet_e217614 - capella processSlashings 745.00 ns/op 962.00 ns/op 0.77
mainnet_e217614 - capella processEth1DataReset 645.00 ns/op 866.00 ns/op 0.74
mainnet_e217614 - capella processEffectiveBalanceUpdates 14.794 ms/op 18.296 ms/op 0.81
mainnet_e217614 - capella processSlashingsReset 2.4150 us/op 3.5510 us/op 0.68
mainnet_e217614 - capella processRandaoMixesReset 2.9240 us/op 12.011 us/op 0.24
mainnet_e217614 - capella processHistoricalRootsUpdate 685.00 ns/op 1.1140 us/op 0.61
mainnet_e217614 - capella processParticipationFlagUpdates 1.5570 us/op 3.3670 us/op 0.46
mainnet_e217614 - capella afterProcessEpoch 103.37 ms/op 111.21 ms/op 0.93
phase0 processEpoch - mainnet_e58758 283.17 ms/op 319.31 ms/op 0.89
mainnet_e58758 - phase0 beforeProcessEpoch 65.028 ms/op 87.207 ms/op 0.75
mainnet_e58758 - phase0 processJustificationAndFinalization 11.054 us/op 17.789 us/op 0.62
mainnet_e58758 - phase0 processRewardsAndPenalties 31.542 ms/op 32.901 ms/op 0.96
mainnet_e58758 - phase0 processRegistryUpdates 4.2090 us/op 7.7860 us/op 0.54
mainnet_e58758 - phase0 processSlashings 465.00 ns/op 859.00 ns/op 0.54
mainnet_e58758 - phase0 processEth1DataReset 695.00 ns/op 756.00 ns/op 0.92
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 826.87 us/op 954.73 us/op 0.87
mainnet_e58758 - phase0 processSlashingsReset 1.9820 us/op 4.3050 us/op 0.46
mainnet_e58758 - phase0 processRandaoMixesReset 1.9750 us/op 5.1930 us/op 0.38
mainnet_e58758 - phase0 processHistoricalRootsUpdate 419.00 ns/op 411.00 ns/op 1.02
mainnet_e58758 - phase0 processParticipationRecordUpdates 2.9350 us/op 3.6590 us/op 0.80
mainnet_e58758 - phase0 afterProcessEpoch 35.580 ms/op 36.456 ms/op 0.98
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.0274 ms/op 1.1433 ms/op 0.90
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.8370 ms/op 2.1769 ms/op 0.84
altair processInactivityUpdates - 250000 normalcase 16.181 ms/op 17.160 ms/op 0.94
altair processInactivityUpdates - 250000 worstcase 17.970 ms/op 19.699 ms/op 0.91
phase0 processRegistryUpdates - 250000 normalcase 7.2210 us/op 7.5910 us/op 0.95
phase0 processRegistryUpdates - 250000 badcase_full_deposits 318.70 us/op 302.83 us/op 1.05
phase0 processRegistryUpdates - 250000 worstcase 0.5 103.98 ms/op 108.24 ms/op 0.96
altair processRewardsAndPenalties - 250000 normalcase 35.087 ms/op 34.529 ms/op 1.02
altair processRewardsAndPenalties - 250000 worstcase 31.852 ms/op 35.889 ms/op 0.89
phase0 getAttestationDeltas - 250000 normalcase 7.2432 ms/op 6.6152 ms/op 1.09
phase0 getAttestationDeltas - 250000 worstcase 6.0551 ms/op 7.2565 ms/op 0.83
phase0 processSlashings - 250000 worstcase 95.069 us/op 92.010 us/op 1.03
altair processSyncCommitteeUpdates - 250000 96.001 ms/op 98.175 ms/op 0.98
BeaconState.hashTreeRoot - No change 440.00 ns/op 483.00 ns/op 0.91
BeaconState.hashTreeRoot - 1 full validator 71.242 us/op 120.15 us/op 0.59
BeaconState.hashTreeRoot - 32 full validator 1.1042 ms/op 1.4969 ms/op 0.74
BeaconState.hashTreeRoot - 512 full validator 7.9220 ms/op 10.191 ms/op 0.78
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 102.63 us/op 147.78 us/op 0.69
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.2835 ms/op 2.0787 ms/op 0.62
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 16.971 ms/op 23.068 ms/op 0.74
BeaconState.hashTreeRoot - 1 balances 69.071 us/op 87.040 us/op 0.79
BeaconState.hashTreeRoot - 32 balances 616.58 us/op 867.79 us/op 0.71
BeaconState.hashTreeRoot - 512 balances 6.1479 ms/op 7.8375 ms/op 0.78
BeaconState.hashTreeRoot - 250000 balances 100.93 ms/op 206.61 ms/op 0.49
aggregationBits - 2048 els - zipIndexesInBitList 19.505 us/op 21.087 us/op 0.92
byteArrayEquals 32 47.918 ns/op 48.484 ns/op 0.99
Buffer.compare 32 16.164 ns/op 15.794 ns/op 1.02
byteArrayEquals 1024 1.2688 us/op 1.2884 us/op 0.98
Buffer.compare 1024 23.428 ns/op 23.063 ns/op 1.02
byteArrayEquals 16384 20.147 us/op 20.397 us/op 0.99
Buffer.compare 16384 203.35 ns/op 185.67 ns/op 1.10
byteArrayEquals 123687377 149.01 ms/op 153.55 ms/op 0.97
Buffer.compare 123687377 5.4618 ms/op 4.4817 ms/op 1.22
byteArrayEquals 32 - diff last byte 50.432 ns/op 47.320 ns/op 1.07
Buffer.compare 32 - diff last byte 16.790 ns/op 15.778 ns/op 1.06
byteArrayEquals 1024 - diff last byte 1.2728 us/op 1.2683 us/op 1.00
Buffer.compare 1024 - diff last byte 24.150 ns/op 24.664 ns/op 0.98
byteArrayEquals 16384 - diff last byte 19.880 us/op 20.047 us/op 0.99
Buffer.compare 16384 - diff last byte 188.24 ns/op 207.43 ns/op 0.91
byteArrayEquals 123687377 - diff last byte 151.90 ms/op 156.92 ms/op 0.97
Buffer.compare 123687377 - diff last byte 4.8548 ms/op 7.0003 ms/op 0.69
byteArrayEquals 32 - random bytes 4.8370 ns/op 5.1100 ns/op 0.95
Buffer.compare 32 - random bytes 16.781 ns/op 16.121 ns/op 1.04
byteArrayEquals 1024 - random bytes 4.8580 ns/op 5.1330 ns/op 0.95
Buffer.compare 1024 - random bytes 16.077 ns/op 15.998 ns/op 1.00
byteArrayEquals 16384 - random bytes 4.9150 ns/op 5.1200 ns/op 0.96
Buffer.compare 16384 - random bytes 16.836 ns/op 16.410 ns/op 1.03
byteArrayEquals 123687377 - random bytes 7.9800 ns/op 8.2600 ns/op 0.97
Buffer.compare 123687377 - random bytes 18.830 ns/op 19.560 ns/op 0.96
regular array get 100000 times 30.670 us/op 32.384 us/op 0.95
wrappedArray get 100000 times 30.518 us/op 32.451 us/op 0.94
arrayWithProxy get 100000 times 10.688 ms/op 10.465 ms/op 1.02
ssz.Root.equals 44.611 ns/op 47.075 ns/op 0.95
byteArrayEquals 43.347 ns/op 44.603 ns/op 0.97
Buffer.compare 8.8710 ns/op 9.8030 ns/op 0.90
processSlot - 1 slots 15.103 us/op 15.581 us/op 0.97
processSlot - 32 slots 3.1516 ms/op 2.7861 ms/op 1.13
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 34.074 ms/op 37.999 ms/op 0.90
getCommitteeAssignments - req 1 vs - 250000 vc 1.8432 ms/op 1.8208 ms/op 1.01
getCommitteeAssignments - req 100 vs - 250000 vc 3.5897 ms/op 3.5727 ms/op 1.00
getCommitteeAssignments - req 1000 vs - 250000 vc 3.8902 ms/op 3.8084 ms/op 1.02
findModifiedValidators - 10000 modified validators 236.78 ms/op 229.81 ms/op 1.03
findModifiedValidators - 1000 modified validators 159.03 ms/op 148.44 ms/op 1.07
findModifiedValidators - 100 modified validators 151.91 ms/op 161.17 ms/op 0.94
findModifiedValidators - 10 modified validators 138.59 ms/op 158.38 ms/op 0.88
findModifiedValidators - 1 modified validators 138.54 ms/op 131.88 ms/op 1.05
findModifiedValidators - no difference 151.43 ms/op 146.03 ms/op 1.04
compare ViewDUs 3.5082 s/op 3.0162 s/op 1.16
compare each validator Uint8Array 1.3476 s/op 1.5419 s/op 0.87
compare ViewDU to Uint8Array 746.06 ms/op 786.50 ms/op 0.95
migrate state 1000000 validators, 24 modified, 0 new 731.95 ms/op 681.11 ms/op 1.07
migrate state 1000000 validators, 1700 modified, 1000 new 944.97 ms/op 883.01 ms/op 1.07
migrate state 1000000 validators, 3400 modified, 2000 new 1.1071 s/op 1.0362 s/op 1.07
migrate state 1500000 validators, 24 modified, 0 new 712.98 ms/op 639.35 ms/op 1.12
migrate state 1500000 validators, 1700 modified, 1000 new 905.42 ms/op 978.29 ms/op 0.93
migrate state 1500000 validators, 3400 modified, 2000 new 1.0396 s/op 1.0193 s/op 1.02
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 6.1800 ns/op 6.2900 ns/op 0.98
state getBlockRootAtSlot - 250000 vs - 7PWei 405.36 ns/op 734.26 ns/op 0.55
computeProposers - vc 250000 5.4176 ms/op 6.0565 ms/op 0.89
computeEpochShuffling - vc 250000 35.832 ms/op 34.532 ms/op 1.04
getNextSyncCommittee - vc 250000 99.336 ms/op 108.96 ms/op 0.91
computeSigningRoot for AttestationData 15.110 us/op 21.140 us/op 0.71
hash AttestationData serialized data then Buffer.toString(base64) 1.2525 us/op 1.1739 us/op 1.07
toHexString serialized data 811.35 ns/op 785.04 ns/op 1.03
Buffer.toString(base64) 148.32 ns/op 168.95 ns/op 0.88
nodejs block root to RootHex using toHex 135.12 ns/op 121.57 ns/op 1.11
nodejs block root to RootHex using toRootHex 87.710 ns/op 76.796 ns/op 1.14
browser block root to RootHex using the deprecated toHexString 210.20 ns/op 210.94 ns/op 1.00
browser block root to RootHex using toHex 178.81 ns/op 171.18 ns/op 1.04
browser block root to RootHex using toRootHex 173.71 ns/op 161.13 ns/op 1.08

by benchmarkbot/action

@philknows philknows added this to the v1.23.0 milestone Oct 16, 2024
@wemeetagain wemeetagain merged commit eb94c6d into unstable Oct 16, 2024
20 checks passed
@wemeetagain wemeetagain deleted the nflaig/builder-http-logger branch October 16, 2024 15:24
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