Skip to content

Commit

Permalink
fix: add logger to builder http client (#7168)
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig authored Oct 16, 2024
1 parent 245d63e commit eb94c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beacon-node/src/execution/builder/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class ExecutionBuilderHttp implements IExecutionBuilder {
headers: opts.userAgent ? {"User-Agent": opts.userAgent} : undefined,
},
},
{config, metrics: metrics?.builderHttpClient}
{config, metrics: metrics?.builderHttpClient, logger}
);
logger?.info("External builder", {url: toPrintableUrl(baseUrl)});
this.config = config;
Expand Down

1 comment on commit eb94c6d

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for some benchmarks.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold.

Benchmark suite Current: eb94c6d Previous: 245d63e Ratio
findModifiedValidators - 10000 modified validators 843.85 ms/op 250.08 ms/op 3.37
Full benchmark results
Benchmark suite Current: eb94c6d Previous: 245d63e Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.5765 ms/op 1.7157 ms/op 0.92
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 42.182 us/op 47.802 us/op 0.88
BLS verify - blst 872.46 us/op 879.04 us/op 0.99
BLS verifyMultipleSignatures 3 - blst 1.3725 ms/op 1.3164 ms/op 1.04
BLS verifyMultipleSignatures 8 - blst 1.8565 ms/op 2.0500 ms/op 0.91
BLS verifyMultipleSignatures 32 - blst 6.0373 ms/op 4.5344 ms/op 1.33
BLS verifyMultipleSignatures 64 - blst 10.150 ms/op 8.4466 ms/op 1.20
BLS verifyMultipleSignatures 128 - blst 17.964 ms/op 15.982 ms/op 1.12
BLS deserializing 10000 signatures 708.67 ms/op 618.63 ms/op 1.15
BLS deserializing 100000 signatures 6.8672 s/op 6.2123 s/op 1.11
BLS verifyMultipleSignatures - same message - 3 - blst 941.41 us/op 962.59 us/op 0.98
BLS verifyMultipleSignatures - same message - 8 - blst 1.0367 ms/op 1.0871 ms/op 0.95
BLS verifyMultipleSignatures - same message - 32 - blst 1.6642 ms/op 1.7251 ms/op 0.96
BLS verifyMultipleSignatures - same message - 64 - blst 2.5744 ms/op 2.6052 ms/op 0.99
BLS verifyMultipleSignatures - same message - 128 - blst 4.4266 ms/op 4.2465 ms/op 1.04
BLS aggregatePubkeys 32 - blst 20.281 us/op 18.434 us/op 1.10
BLS aggregatePubkeys 128 - blst 70.417 us/op 65.118 us/op 1.08
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 67.391 ms/op 60.327 ms/op 1.12
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 64.867 ms/op 39.304 ms/op 1.65
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 53.685 ms/op 45.430 ms/op 1.18
getSlashingsAndExits - default max 155.13 us/op 66.532 us/op 2.33
getSlashingsAndExits - 2k 338.18 us/op 262.99 us/op 1.29
proposeBlockBody type=full, size=empty 5.9413 ms/op 5.1212 ms/op 1.16
isKnown best case - 1 super set check 552.00 ns/op 487.00 ns/op 1.13
isKnown normal case - 2 super set checks 486.00 ns/op 475.00 ns/op 1.02
isKnown worse case - 16 super set checks 633.00 ns/op 484.00 ns/op 1.31
InMemoryCheckpointStateCache - add get delete 2.7450 us/op 2.6380 us/op 1.04
updateUnfinalizedPubkeys - updating 10 pubkeys 1.2917 ms/op 769.93 us/op 1.68
updateUnfinalizedPubkeys - updating 100 pubkeys 3.5872 ms/op 2.6717 ms/op 1.34
updateUnfinalizedPubkeys - updating 1000 pubkeys 48.120 ms/op 37.144 ms/op 1.30
validate api signedAggregateAndProof - struct 1.6115 ms/op 1.6377 ms/op 0.98
validate gossip signedAggregateAndProof - struct 1.6510 ms/op 1.8466 ms/op 0.89
batch validate gossip attestation - vc 640000 - chunk 32 135.03 us/op 119.44 us/op 1.13
batch validate gossip attestation - vc 640000 - chunk 64 116.26 us/op 109.24 us/op 1.06
batch validate gossip attestation - vc 640000 - chunk 128 106.89 us/op 97.666 us/op 1.09
batch validate gossip attestation - vc 640000 - chunk 256 102.70 us/op 98.930 us/op 1.04
pickEth1Vote - no votes 905.50 us/op 810.00 us/op 1.12
pickEth1Vote - max votes 5.1147 ms/op 6.0047 ms/op 0.85
pickEth1Vote - Eth1Data hashTreeRoot value x2048 10.224 ms/op 14.956 ms/op 0.68
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 15.469 ms/op 19.626 ms/op 0.79
pickEth1Vote - Eth1Data fastSerialize value x2048 387.33 us/op 338.72 us/op 1.14
pickEth1Vote - Eth1Data fastSerialize tree x2048 2.6254 ms/op 2.8227 ms/op 0.93
bytes32 toHexString 614.00 ns/op 575.00 ns/op 1.07
bytes32 Buffer.toString(hex) 452.00 ns/op 445.00 ns/op 1.02
bytes32 Buffer.toString(hex) from Uint8Array 534.00 ns/op 601.00 ns/op 0.89
bytes32 Buffer.toString(hex) + 0x 446.00 ns/op 430.00 ns/op 1.04
Object access 1 prop 0.32700 ns/op 0.34600 ns/op 0.95
Map access 1 prop 0.32900 ns/op 0.32000 ns/op 1.03
Object get x1000 5.2310 ns/op 4.9310 ns/op 1.06
Map get x1000 5.9100 ns/op 5.9940 ns/op 0.99
Object set x1000 22.699 ns/op 23.931 ns/op 0.95
Map set x1000 20.032 ns/op 20.538 ns/op 0.98
Return object 10000 times 0.30030 ns/op 0.29630 ns/op 1.01
Throw Error 10000 times 2.8014 us/op 2.6917 us/op 1.04
toHex 117.73 ns/op 118.02 ns/op 1.00
Buffer.from 109.98 ns/op 102.64 ns/op 1.07
shared Buffer 77.858 ns/op 69.423 ns/op 1.12
fastMsgIdFn sha256 / 200 bytes 2.1890 us/op 2.0200 us/op 1.08
fastMsgIdFn h32 xxhash / 200 bytes 509.00 ns/op 427.00 ns/op 1.19
fastMsgIdFn h64 xxhash / 200 bytes 489.00 ns/op 482.00 ns/op 1.01
fastMsgIdFn sha256 / 1000 bytes 6.1620 us/op 6.2890 us/op 0.98
fastMsgIdFn h32 xxhash / 1000 bytes 624.00 ns/op 553.00 ns/op 1.13
fastMsgIdFn h64 xxhash / 1000 bytes 569.00 ns/op 555.00 ns/op 1.03
fastMsgIdFn sha256 / 10000 bytes 50.603 us/op 51.220 us/op 0.99
fastMsgIdFn h32 xxhash / 10000 bytes 2.0440 us/op 2.0400 us/op 1.00
fastMsgIdFn h64 xxhash / 10000 bytes 1.3690 us/op 1.4340 us/op 0.95
send data - 1000 256B messages 12.021 ms/op 10.124 ms/op 1.19
send data - 1000 512B messages 15.576 ms/op 14.833 ms/op 1.05
send data - 1000 1024B messages 23.319 ms/op 23.068 ms/op 1.01
send data - 1000 1200B messages 22.941 ms/op 26.878 ms/op 0.85
send data - 1000 2048B messages 31.763 ms/op 31.553 ms/op 1.01
send data - 1000 4096B messages 30.697 ms/op 32.259 ms/op 0.95
send data - 1000 16384B messages 70.919 ms/op 68.878 ms/op 1.03
send data - 1000 65536B messages 294.21 ms/op 287.99 ms/op 1.02
enrSubnets - fastDeserialize 64 bits 1.6360 us/op 1.6320 us/op 1.00
enrSubnets - ssz BitVector 64 bits 668.00 ns/op 703.00 ns/op 0.95
enrSubnets - fastDeserialize 4 bits 419.00 ns/op 412.00 ns/op 1.02
enrSubnets - ssz BitVector 4 bits 669.00 ns/op 678.00 ns/op 0.99
prioritizePeers score -10:0 att 32-0.1 sync 2-0 199.05 us/op 173.49 us/op 1.15
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 156.63 us/op 154.81 us/op 1.01
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 330.90 us/op 281.50 us/op 1.18
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 469.11 us/op 482.35 us/op 0.97
prioritizePeers score 0:0 att 64-1 sync 4-1 861.73 us/op 845.93 us/op 1.02
array of 16000 items push then shift 1.3427 us/op 1.4011 us/op 0.96
LinkedList of 16000 items push then shift 9.0290 ns/op 7.8880 ns/op 1.14
array of 16000 items push then pop 144.13 ns/op 128.05 ns/op 1.13
LinkedList of 16000 items push then pop 7.9780 ns/op 8.5540 ns/op 0.93
array of 24000 items push then shift 1.9698 us/op 1.9791 us/op 1.00
LinkedList of 24000 items push then shift 9.7830 ns/op 7.5040 ns/op 1.30
array of 24000 items push then pop 204.50 ns/op 158.42 ns/op 1.29
LinkedList of 24000 items push then pop 9.1500 ns/op 6.7680 ns/op 1.35
intersect bitArray bitLen 8 5.6000 ns/op 5.5330 ns/op 1.01
intersect array and set length 8 85.201 ns/op 40.373 ns/op 2.11
intersect bitArray bitLen 128 27.259 ns/op 27.213 ns/op 1.00
intersect array and set length 128 983.93 ns/op 694.96 ns/op 1.42
bitArray.getTrueBitIndexes() bitLen 128 2.5750 us/op 2.3790 us/op 1.08
bitArray.getTrueBitIndexes() bitLen 248 4.0900 us/op 3.9300 us/op 1.04
bitArray.getTrueBitIndexes() bitLen 512 9.8590 us/op 8.4670 us/op 1.16
Buffer.concat 32 items 1.1180 us/op 1.1710 us/op 0.95
Uint8Array.set 32 items 1.7440 us/op 1.8110 us/op 0.96
Buffer.copy 2.0090 us/op 2.1230 us/op 0.95
Uint8Array.set - with subarray 2.5680 us/op 3.3890 us/op 0.76
Uint8Array.set - without subarray 1.6930 us/op 1.7920 us/op 0.94
getUint32 - dataview 511.00 ns/op 501.00 ns/op 1.02
getUint32 - manual 481.00 ns/op 479.00 ns/op 1.00
Set add up to 64 items then delete first 1.9395 us/op 2.6637 us/op 0.73
OrderedSet add up to 64 items then delete first 3.0455 us/op 4.0328 us/op 0.76
Set add up to 64 items then delete last 2.2183 us/op 2.3375 us/op 0.95
OrderedSet add up to 64 items then delete last 3.3242 us/op 3.4550 us/op 0.96
Set add up to 64 items then delete middle 2.1792 us/op 2.1907 us/op 0.99
OrderedSet add up to 64 items then delete middle 4.8402 us/op 5.3664 us/op 0.90
Set add up to 128 items then delete first 4.2110 us/op 4.4052 us/op 0.96
OrderedSet add up to 128 items then delete first 6.2347 us/op 9.9744 us/op 0.63
Set add up to 128 items then delete last 4.1843 us/op 6.0877 us/op 0.69
OrderedSet add up to 128 items then delete last 6.4806 us/op 10.112 us/op 0.64
Set add up to 128 items then delete middle 4.2781 us/op 6.0076 us/op 0.71
OrderedSet add up to 128 items then delete middle 12.701 us/op 15.798 us/op 0.80
Set add up to 256 items then delete first 9.1770 us/op 12.734 us/op 0.72
OrderedSet add up to 256 items then delete first 13.012 us/op 20.890 us/op 0.62
Set add up to 256 items then delete last 12.439 us/op 11.087 us/op 1.12
OrderedSet add up to 256 items then delete last 20.160 us/op 20.084 us/op 1.00
Set add up to 256 items then delete middle 11.738 us/op 13.223 us/op 0.89
OrderedSet add up to 256 items then delete middle 42.906 us/op 43.320 us/op 0.99
transfer serialized Status (84 B) 1.6480 us/op 1.7650 us/op 0.93
copy serialized Status (84 B) 1.4400 us/op 1.5690 us/op 0.92
transfer serialized SignedVoluntaryExit (112 B) 1.5460 us/op 1.5430 us/op 1.00
copy serialized SignedVoluntaryExit (112 B) 1.6010 us/op 1.6630 us/op 0.96
transfer serialized ProposerSlashing (416 B) 2.1050 us/op 2.6430 us/op 0.80
copy serialized ProposerSlashing (416 B) 2.0610 us/op 2.5720 us/op 0.80
transfer serialized Attestation (485 B) 2.2900 us/op 2.9250 us/op 0.78
copy serialized Attestation (485 B) 2.3030 us/op 3.0340 us/op 0.76
transfer serialized AttesterSlashing (33232 B) 1.9230 us/op 3.0370 us/op 0.63
copy serialized AttesterSlashing (33232 B) 5.8260 us/op 8.2400 us/op 0.71
transfer serialized Small SignedBeaconBlock (128000 B) 2.4510 us/op 3.9470 us/op 0.62
copy serialized Small SignedBeaconBlock (128000 B) 36.642 us/op 14.128 us/op 2.59
transfer serialized Avg SignedBeaconBlock (200000 B) 5.1900 us/op 4.0120 us/op 1.29
copy serialized Avg SignedBeaconBlock (200000 B) 59.347 us/op 20.008 us/op 2.97
transfer serialized BlobsSidecar (524380 B) 5.9300 us/op 3.4770 us/op 1.71
copy serialized BlobsSidecar (524380 B) 170.30 us/op 166.00 us/op 1.03
transfer serialized Big SignedBeaconBlock (1000000 B) 6.2200 us/op 3.5850 us/op 1.74
copy serialized Big SignedBeaconBlock (1000000 B) 366.44 us/op 146.36 us/op 2.50
pass gossip attestations to forkchoice per slot 2.9644 ms/op 2.7218 ms/op 1.09
forkChoice updateHead vc 100000 bc 64 eq 0 441.61 us/op 468.73 us/op 0.94
forkChoice updateHead vc 600000 bc 64 eq 0 2.4088 ms/op 2.2922 ms/op 1.05
forkChoice updateHead vc 1000000 bc 64 eq 0 4.4367 ms/op 4.3332 ms/op 1.02
forkChoice updateHead vc 600000 bc 320 eq 0 2.3047 ms/op 2.5071 ms/op 0.92
forkChoice updateHead vc 600000 bc 1200 eq 0 2.4327 ms/op 2.2865 ms/op 1.06
forkChoice updateHead vc 600000 bc 7200 eq 0 2.6900 ms/op 2.7771 ms/op 0.97
forkChoice updateHead vc 600000 bc 64 eq 1000 9.4278 ms/op 9.7072 ms/op 0.97
forkChoice updateHead vc 600000 bc 64 eq 10000 9.2693 ms/op 9.5595 ms/op 0.97
forkChoice updateHead vc 600000 bc 64 eq 300000 11.819 ms/op 11.877 ms/op 1.00
computeDeltas 500000 validators 300 proto nodes 3.3790 ms/op 3.3994 ms/op 0.99
computeDeltas 500000 validators 1200 proto nodes 3.3722 ms/op 3.3896 ms/op 0.99
computeDeltas 500000 validators 7200 proto nodes 3.4169 ms/op 3.4444 ms/op 0.99
computeDeltas 750000 validators 300 proto nodes 5.1124 ms/op 5.3366 ms/op 0.96
computeDeltas 750000 validators 1200 proto nodes 5.3290 ms/op 5.2180 ms/op 1.02
computeDeltas 750000 validators 7200 proto nodes 5.2670 ms/op 5.6602 ms/op 0.93
computeDeltas 1400000 validators 300 proto nodes 9.9825 ms/op 9.5372 ms/op 1.05
computeDeltas 1400000 validators 1200 proto nodes 10.435 ms/op 9.9258 ms/op 1.05
computeDeltas 1400000 validators 7200 proto nodes 10.598 ms/op 9.1712 ms/op 1.16
computeDeltas 2100000 validators 300 proto nodes 15.458 ms/op 14.767 ms/op 1.05
computeDeltas 2100000 validators 1200 proto nodes 15.208 ms/op 14.965 ms/op 1.02
computeDeltas 2100000 validators 7200 proto nodes 15.054 ms/op 17.059 ms/op 0.88
altair processAttestation - 250000 vs - 7PWei normalcase 2.4251 ms/op 3.1098 ms/op 0.78
altair processAttestation - 250000 vs - 7PWei worstcase 2.7492 ms/op 3.8379 ms/op 0.72
altair processAttestation - setStatus - 1/6 committees join 72.838 us/op 85.747 us/op 0.85
altair processAttestation - setStatus - 1/3 committees join 147.40 us/op 152.47 us/op 0.97
altair processAttestation - setStatus - 1/2 committees join 213.27 us/op 212.35 us/op 1.00
altair processAttestation - setStatus - 2/3 committees join 296.88 us/op 292.64 us/op 1.01
altair processAttestation - setStatus - 4/5 committees join 416.75 us/op 420.42 us/op 0.99
altair processAttestation - setStatus - 100% committees join 535.55 us/op 517.37 us/op 1.04
altair processBlock - 250000 vs - 7PWei normalcase 4.3651 ms/op 4.3232 ms/op 1.01
altair processBlock - 250000 vs - 7PWei normalcase hashState 26.653 ms/op 28.498 ms/op 0.94
altair processBlock - 250000 vs - 7PWei worstcase 42.911 ms/op 35.268 ms/op 1.22
altair processBlock - 250000 vs - 7PWei worstcase hashState 76.524 ms/op 75.456 ms/op 1.01
phase0 processBlock - 250000 vs - 7PWei normalcase 2.6374 ms/op 1.9614 ms/op 1.34
phase0 processBlock - 250000 vs - 7PWei worstcase 26.380 ms/op 24.352 ms/op 1.08
altair processEth1Data - 250000 vs - 7PWei normalcase 479.30 us/op 274.40 us/op 1.75
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 6.3780 us/op 6.2800 us/op 1.02
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 34.544 us/op 34.979 us/op 0.99
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 8.2350 us/op 10.913 us/op 0.75
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 6.3480 us/op 6.2330 us/op 1.02
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 129.43 us/op 121.67 us/op 1.06
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.4777 ms/op 906.11 us/op 1.63
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.1682 ms/op 1.3046 ms/op 0.90
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.1648 ms/op 1.2025 ms/op 0.97
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.1118 ms/op 3.1450 ms/op 0.99
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.2338 ms/op 1.3145 ms/op 0.94
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.0536 ms/op 2.9156 ms/op 1.05
Tree 40 250000 create 187.35 ms/op 188.93 ms/op 0.99
Tree 40 250000 get(125000) 116.79 ns/op 120.44 ns/op 0.97
Tree 40 250000 set(125000) 575.64 ns/op 564.04 ns/op 1.02
Tree 40 250000 toArray() 16.138 ms/op 11.122 ms/op 1.45
Tree 40 250000 iterate all - toArray() + loop 9.7398 ms/op 18.050 ms/op 0.54
Tree 40 250000 iterate all - get(i) 40.107 ms/op 50.179 ms/op 0.80
Array 250000 create 2.2231 ms/op 3.3149 ms/op 0.67
Array 250000 clone - spread 1.1003 ms/op 1.1508 ms/op 0.96
Array 250000 get(125000) 0.58200 ns/op 0.59900 ns/op 0.97
Array 250000 set(125000) 0.58600 ns/op 0.61700 ns/op 0.95
Array 250000 iterate all - loop 76.599 us/op 75.920 us/op 1.01
phase0 afterProcessEpoch - 250000 vs - 7PWei 41.423 ms/op 44.913 ms/op 0.92
Array.fill - length 1000000 2.3766 ms/op 2.5217 ms/op 0.94
Array push - length 1000000 14.587 ms/op 16.839 ms/op 0.87
Array.get 0.26880 ns/op 0.28022 ns/op 0.96
Uint8Array.get 0.33815 ns/op 0.35369 ns/op 0.96
phase0 beforeProcessEpoch - 250000 vs - 7PWei 19.857 ms/op 16.617 ms/op 1.19
altair processEpoch - mainnet_e81889 268.60 ms/op 273.52 ms/op 0.98
mainnet_e81889 - altair beforeProcessEpoch 18.993 ms/op 18.713 ms/op 1.01
mainnet_e81889 - altair processJustificationAndFinalization 11.182 us/op 14.820 us/op 0.75
mainnet_e81889 - altair processInactivityUpdates 4.2201 ms/op 4.9569 ms/op 0.85
mainnet_e81889 - altair processRewardsAndPenalties 53.474 ms/op 40.321 ms/op 1.33
mainnet_e81889 - altair processRegistryUpdates 1.8640 us/op 2.9580 us/op 0.63
mainnet_e81889 - altair processSlashings 865.00 ns/op 884.00 ns/op 0.98
mainnet_e81889 - altair processEth1DataReset 722.00 ns/op 716.00 ns/op 1.01
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.5930 ms/op 1.0724 ms/op 1.49
mainnet_e81889 - altair processSlashingsReset 2.7390 us/op 3.3490 us/op 0.82
mainnet_e81889 - altair processRandaoMixesReset 3.0900 us/op 7.7960 us/op 0.40
mainnet_e81889 - altair processHistoricalRootsUpdate 1.0090 us/op 1.1440 us/op 0.88
mainnet_e81889 - altair processParticipationFlagUpdates 1.8820 us/op 3.7810 us/op 0.50
mainnet_e81889 - altair processSyncCommitteeUpdates 767.00 ns/op 1.1250 us/op 0.68
mainnet_e81889 - altair afterProcessEpoch 43.146 ms/op 44.024 ms/op 0.98
capella processEpoch - mainnet_e217614 918.38 ms/op 958.01 ms/op 0.96
mainnet_e217614 - capella beforeProcessEpoch 68.200 ms/op 74.014 ms/op 0.92
mainnet_e217614 - capella processJustificationAndFinalization 10.614 us/op 15.128 us/op 0.70
mainnet_e217614 - capella processInactivityUpdates 12.793 ms/op 12.370 ms/op 1.03
mainnet_e217614 - capella processRewardsAndPenalties 253.18 ms/op 223.29 ms/op 1.13
mainnet_e217614 - capella processRegistryUpdates 12.134 us/op 16.203 us/op 0.75
mainnet_e217614 - capella processSlashings 701.00 ns/op 718.00 ns/op 0.98
mainnet_e217614 - capella processEth1DataReset 679.00 ns/op 689.00 ns/op 0.99
mainnet_e217614 - capella processEffectiveBalanceUpdates 13.256 ms/op 17.412 ms/op 0.76
mainnet_e217614 - capella processSlashingsReset 3.3910 us/op 4.2710 us/op 0.79
mainnet_e217614 - capella processRandaoMixesReset 3.7560 us/op 3.5540 us/op 1.06
mainnet_e217614 - capella processHistoricalRootsUpdate 781.00 ns/op 783.00 ns/op 1.00
mainnet_e217614 - capella processParticipationFlagUpdates 1.9330 us/op 4.9300 us/op 0.39
mainnet_e217614 - capella afterProcessEpoch 104.16 ms/op 101.92 ms/op 1.02
phase0 processEpoch - mainnet_e58758 359.01 ms/op 318.46 ms/op 1.13
mainnet_e58758 - phase0 beforeProcessEpoch 78.846 ms/op 75.945 ms/op 1.04
mainnet_e58758 - phase0 processJustificationAndFinalization 10.348 us/op 14.346 us/op 0.72
mainnet_e58758 - phase0 processRewardsAndPenalties 30.180 ms/op 34.372 ms/op 0.88
mainnet_e58758 - phase0 processRegistryUpdates 6.3150 us/op 9.7730 us/op 0.65
mainnet_e58758 - phase0 processSlashings 738.00 ns/op 875.00 ns/op 0.84
mainnet_e58758 - phase0 processEth1DataReset 736.00 ns/op 650.00 ns/op 1.13
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.3536 ms/op 895.75 us/op 1.51
mainnet_e58758 - phase0 processSlashingsReset 2.6460 us/op 4.8960 us/op 0.54
mainnet_e58758 - phase0 processRandaoMixesReset 3.1940 us/op 3.8790 us/op 0.82
mainnet_e58758 - phase0 processHistoricalRootsUpdate 743.00 ns/op 679.00 ns/op 1.09
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.1710 us/op 3.7180 us/op 0.85
mainnet_e58758 - phase0 afterProcessEpoch 36.145 ms/op 37.269 ms/op 0.97
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.2395 ms/op 1.5079 ms/op 0.82
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.8027 ms/op 1.8730 ms/op 0.96
altair processInactivityUpdates - 250000 normalcase 16.656 ms/op 15.006 ms/op 1.11
altair processInactivityUpdates - 250000 worstcase 16.738 ms/op 14.820 ms/op 1.13
phase0 processRegistryUpdates - 250000 normalcase 3.4970 us/op 7.4890 us/op 0.47
phase0 processRegistryUpdates - 250000 badcase_full_deposits 312.20 us/op 321.41 us/op 0.97
phase0 processRegistryUpdates - 250000 worstcase 0.5 104.23 ms/op 97.721 ms/op 1.07
altair processRewardsAndPenalties - 250000 normalcase 42.064 ms/op 41.429 ms/op 1.02
altair processRewardsAndPenalties - 250000 worstcase 37.739 ms/op 45.572 ms/op 0.83
phase0 getAttestationDeltas - 250000 normalcase 6.1252 ms/op 7.1016 ms/op 0.86
phase0 getAttestationDeltas - 250000 worstcase 6.0193 ms/op 6.3466 ms/op 0.95
phase0 processSlashings - 250000 worstcase 88.646 us/op 90.863 us/op 0.98
altair processSyncCommitteeUpdates - 250000 96.692 ms/op 103.29 ms/op 0.94
BeaconState.hashTreeRoot - No change 460.00 ns/op 488.00 ns/op 0.94
BeaconState.hashTreeRoot - 1 full validator 135.34 us/op 143.81 us/op 0.94
BeaconState.hashTreeRoot - 32 full validator 1.6095 ms/op 1.4687 ms/op 1.10
BeaconState.hashTreeRoot - 512 full validator 9.4069 ms/op 13.107 ms/op 0.72
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 142.32 us/op 165.70 us/op 0.86
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.0559 ms/op 1.5309 ms/op 1.34
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 20.695 ms/op 18.915 ms/op 1.09
BeaconState.hashTreeRoot - 1 balances 79.676 us/op 79.792 us/op 1.00
BeaconState.hashTreeRoot - 32 balances 823.00 us/op 888.21 us/op 0.93
BeaconState.hashTreeRoot - 512 balances 7.3916 ms/op 6.3621 ms/op 1.16
BeaconState.hashTreeRoot - 250000 balances 131.20 ms/op 148.24 ms/op 0.89
aggregationBits - 2048 els - zipIndexesInBitList 19.962 us/op 25.913 us/op 0.77
byteArrayEquals 32 47.940 ns/op 46.804 ns/op 1.02
Buffer.compare 32 15.942 ns/op 15.091 ns/op 1.06
byteArrayEquals 1024 1.2723 us/op 1.2439 us/op 1.02
Buffer.compare 1024 24.631 ns/op 23.524 ns/op 1.05
byteArrayEquals 16384 20.210 us/op 19.298 us/op 1.05
Buffer.compare 16384 174.32 ns/op 192.31 ns/op 0.91
byteArrayEquals 123687377 152.24 ms/op 150.62 ms/op 1.01
Buffer.compare 123687377 5.9169 ms/op 6.1462 ms/op 0.96
byteArrayEquals 32 - diff last byte 47.750 ns/op 47.054 ns/op 1.01
Buffer.compare 32 - diff last byte 15.346 ns/op 15.556 ns/op 0.99
byteArrayEquals 1024 - diff last byte 1.2562 us/op 1.2546 us/op 1.00
Buffer.compare 1024 - diff last byte 22.419 ns/op 22.589 ns/op 0.99
byteArrayEquals 16384 - diff last byte 19.769 us/op 19.888 us/op 0.99
Buffer.compare 16384 - diff last byte 195.19 ns/op 163.27 ns/op 1.20
byteArrayEquals 123687377 - diff last byte 151.38 ms/op 155.87 ms/op 0.97
Buffer.compare 123687377 - diff last byte 8.9970 ms/op 4.6257 ms/op 1.94
byteArrayEquals 32 - random bytes 5.1410 ns/op 4.9740 ns/op 1.03
Buffer.compare 32 - random bytes 16.216 ns/op 15.934 ns/op 1.02
byteArrayEquals 1024 - random bytes 5.1600 ns/op 4.9510 ns/op 1.04
Buffer.compare 1024 - random bytes 16.033 ns/op 15.749 ns/op 1.02
byteArrayEquals 16384 - random bytes 5.1620 ns/op 4.9790 ns/op 1.04
Buffer.compare 16384 - random bytes 16.238 ns/op 15.836 ns/op 1.03
byteArrayEquals 123687377 - random bytes 8.3700 ns/op 7.9200 ns/op 1.06
Buffer.compare 123687377 - random bytes 19.320 ns/op 19.110 ns/op 1.01
regular array get 100000 times 32.214 us/op 31.365 us/op 1.03
wrappedArray get 100000 times 32.261 us/op 31.841 us/op 1.01
arrayWithProxy get 100000 times 14.635 ms/op 10.864 ms/op 1.35
ssz.Root.equals 49.979 ns/op 46.658 ns/op 1.07
byteArrayEquals 44.703 ns/op 44.304 ns/op 1.01
Buffer.compare 9.4020 ns/op 9.2470 ns/op 1.02
processSlot - 1 slots 19.773 us/op 13.997 us/op 1.41
processSlot - 32 slots 3.7596 ms/op 2.9144 ms/op 1.29
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 47.477 ms/op 39.306 ms/op 1.21
getCommitteeAssignments - req 1 vs - 250000 vc 1.9696 ms/op 1.7513 ms/op 1.12
getCommitteeAssignments - req 100 vs - 250000 vc 3.7041 ms/op 3.4305 ms/op 1.08
getCommitteeAssignments - req 1000 vs - 250000 vc 4.3788 ms/op 3.7524 ms/op 1.17
findModifiedValidators - 10000 modified validators 843.85 ms/op 250.08 ms/op 3.37
findModifiedValidators - 1000 modified validators 224.99 ms/op 190.38 ms/op 1.18
findModifiedValidators - 100 modified validators 168.78 ms/op 162.55 ms/op 1.04
findModifiedValidators - 10 modified validators 147.58 ms/op 215.01 ms/op 0.69
findModifiedValidators - 1 modified validators 153.68 ms/op 205.59 ms/op 0.75
findModifiedValidators - no difference 149.35 ms/op 175.70 ms/op 0.85
compare ViewDUs 4.5254 s/op 3.6231 s/op 1.25
compare each validator Uint8Array 1.4920 s/op 1.5702 s/op 0.95
compare ViewDU to Uint8Array 860.54 ms/op 694.49 ms/op 1.24
migrate state 1000000 validators, 24 modified, 0 new 631.58 ms/op 681.47 ms/op 0.93
migrate state 1000000 validators, 1700 modified, 1000 new 883.03 ms/op 961.27 ms/op 0.92
migrate state 1000000 validators, 3400 modified, 2000 new 964.96 ms/op 1.0132 s/op 0.95
migrate state 1500000 validators, 24 modified, 0 new 639.47 ms/op 699.03 ms/op 0.91
migrate state 1500000 validators, 1700 modified, 1000 new 814.07 ms/op 929.26 ms/op 0.88
migrate state 1500000 validators, 3400 modified, 2000 new 1.0943 s/op 1.1827 s/op 0.93
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 6.9200 ns/op 6.3200 ns/op 1.09
state getBlockRootAtSlot - 250000 vs - 7PWei 546.53 ns/op 404.56 ns/op 1.35
computeProposers - vc 250000 6.0800 ms/op 5.1837 ms/op 1.17
computeEpochShuffling - vc 250000 35.600 ms/op 34.454 ms/op 1.03
getNextSyncCommittee - vc 250000 113.96 ms/op 94.159 ms/op 1.21
computeSigningRoot for AttestationData 16.965 us/op 13.631 us/op 1.24
hash AttestationData serialized data then Buffer.toString(base64) 1.2285 us/op 1.1834 us/op 1.04
toHexString serialized data 820.18 ns/op 731.90 ns/op 1.12
Buffer.toString(base64) 132.84 ns/op 134.44 ns/op 0.99
nodejs block root to RootHex using toHex 116.14 ns/op 110.99 ns/op 1.05
nodejs block root to RootHex using toRootHex 75.335 ns/op 69.620 ns/op 1.08
browser block root to RootHex using the deprecated toHexString 205.00 ns/op 198.61 ns/op 1.03
browser block root to RootHex using toHex 161.53 ns/op 161.34 ns/op 1.00
browser block root to RootHex using toRootHex 146.38 ns/op 148.88 ns/op 0.98

Please sign in to comment.