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: handle native fetch timeout error #5878

Merged
merged 4 commits into from
Aug 14, 2023

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Aug 12, 2023

Motivation

Follow up to #5811, I noticed that native fetch has different error when using AbortSignal.timeout(delay) (see example). We are not using that pattern right now but error handling should consider that. Potential refactoring in other classes could be done to use this feature.

Description

Handle native fetch timeout error

@nflaig nflaig requested a review from a team as a code owner August 12, 2023 21:11
@github-actions
Copy link
Contributor

github-actions bot commented Aug 12, 2023

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 5518e9e Previous: f1a2291 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 455.90 us/op 800.48 us/op 0.57
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 77.135 us/op 78.277 us/op 0.99
BLS verify - blst-native 1.2149 ms/op 1.1911 ms/op 1.02
BLS verifyMultipleSignatures 3 - blst-native 2.4722 ms/op 2.4246 ms/op 1.02
BLS verifyMultipleSignatures 8 - blst-native 5.3153 ms/op 5.1997 ms/op 1.02
BLS verifyMultipleSignatures 32 - blst-native 18.885 ms/op 18.827 ms/op 1.00
BLS aggregatePubkeys 32 - blst-native 25.047 us/op 25.238 us/op 0.99
BLS aggregatePubkeys 128 - blst-native 104.06 us/op 97.752 us/op 1.06
getAttestationsForBlock 65.894 ms/op 48.794 ms/op 1.35
isKnown best case - 1 super set check 435.00 ns/op 266.00 ns/op 1.64
isKnown normal case - 2 super set checks 431.00 ns/op 256.00 ns/op 1.68
isKnown worse case - 16 super set checks 451.00 ns/op 254.00 ns/op 1.78
CheckpointStateCache - add get delete 5.9190 us/op 4.9150 us/op 1.20
validate api signedAggregateAndProof - struct 2.8621 ms/op 2.7077 ms/op 1.06
validate gossip signedAggregateAndProof - struct 2.8419 ms/op 2.7311 ms/op 1.04
validate api attestation - struct 1.3479 ms/op 1.3026 ms/op 1.03
validate gossip attestation - struct 1.3886 ms/op 1.3247 ms/op 1.05
pickEth1Vote - no votes 1.2603 ms/op 1.1409 ms/op 1.10
pickEth1Vote - max votes 12.058 ms/op 8.9189 ms/op 1.35
pickEth1Vote - Eth1Data hashTreeRoot value x2048 9.7129 ms/op 8.6282 ms/op 1.13
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 17.315 ms/op 13.779 ms/op 1.26
pickEth1Vote - Eth1Data fastSerialize value x2048 593.02 us/op 560.69 us/op 1.06
pickEth1Vote - Eth1Data fastSerialize tree x2048 6.5289 ms/op 6.9808 ms/op 0.94
bytes32 toHexString 727.00 ns/op 459.00 ns/op 1.58
bytes32 Buffer.toString(hex) 304.00 ns/op 270.00 ns/op 1.13
bytes32 Buffer.toString(hex) from Uint8Array 469.00 ns/op 421.00 ns/op 1.11
bytes32 Buffer.toString(hex) + 0x 293.00 ns/op 280.00 ns/op 1.05
Object access 1 prop 0.17700 ns/op 0.15600 ns/op 1.13
Map access 1 prop 0.14100 ns/op 0.14600 ns/op 0.97
Object get x1000 7.2150 ns/op 7.2420 ns/op 1.00
Map get x1000 0.72300 ns/op 0.61700 ns/op 1.17
Object set x1000 54.375 ns/op 48.374 ns/op 1.12
Map set x1000 38.570 ns/op 38.423 ns/op 1.00
Return object 10000 times 0.22890 ns/op 0.23390 ns/op 0.98
Throw Error 10000 times 3.8228 us/op 3.8049 us/op 1.00
fastMsgIdFn sha256 / 200 bytes 3.3000 us/op 3.2460 us/op 1.02
fastMsgIdFn h32 xxhash / 200 bytes 290.00 ns/op 267.00 ns/op 1.09
fastMsgIdFn h64 xxhash / 200 bytes 357.00 ns/op 323.00 ns/op 1.11
fastMsgIdFn sha256 / 1000 bytes 11.469 us/op 10.747 us/op 1.07
fastMsgIdFn h32 xxhash / 1000 bytes 425.00 ns/op 404.00 ns/op 1.05
fastMsgIdFn h64 xxhash / 1000 bytes 423.00 ns/op 396.00 ns/op 1.07
fastMsgIdFn sha256 / 10000 bytes 103.61 us/op 97.311 us/op 1.06
fastMsgIdFn h32 xxhash / 10000 bytes 1.9390 us/op 1.8000 us/op 1.08
fastMsgIdFn h64 xxhash / 10000 bytes 1.3000 us/op 1.2530 us/op 1.04
enrSubnets - fastDeserialize 64 bits 1.1990 us/op 1.1430 us/op 1.05
enrSubnets - ssz BitVector 64 bits 427.00 ns/op 408.00 ns/op 1.05
enrSubnets - fastDeserialize 4 bits 157.00 ns/op 169.00 ns/op 0.93
enrSubnets - ssz BitVector 4 bits 414.00 ns/op 417.00 ns/op 0.99
prioritizePeers score -10:0 att 32-0.1 sync 2-0 104.64 us/op 99.513 us/op 1.05
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 126.60 us/op 126.13 us/op 1.00
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 164.81 us/op 162.59 us/op 1.01
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 301.18 us/op 275.43 us/op 1.09
prioritizePeers score 0:0 att 64-1 sync 4-1 357.51 us/op 327.15 us/op 1.09
array of 16000 items push then shift 1.5985 us/op 1.5760 us/op 1.01
LinkedList of 16000 items push then shift 8.8010 ns/op 8.7750 ns/op 1.00
array of 16000 items push then pop 60.087 ns/op 61.292 ns/op 0.98
LinkedList of 16000 items push then pop 8.6390 ns/op 8.5680 ns/op 1.01
array of 24000 items push then shift 2.4080 us/op 2.2877 us/op 1.05
LinkedList of 24000 items push then shift 8.7350 ns/op 8.4130 ns/op 1.04
array of 24000 items push then pop 101.72 ns/op 93.906 ns/op 1.08
LinkedList of 24000 items push then pop 8.5110 ns/op 8.4490 ns/op 1.01
intersect bitArray bitLen 8 6.7250 ns/op 6.6850 ns/op 1.01
intersect array and set length 8 56.283 ns/op 52.729 ns/op 1.07
intersect bitArray bitLen 128 31.966 ns/op 31.369 ns/op 1.02
intersect array and set length 128 755.05 ns/op 737.63 ns/op 1.02
bitArray.getTrueBitIndexes() bitLen 128 1.4780 us/op 1.3350 us/op 1.11
bitArray.getTrueBitIndexes() bitLen 248 2.4830 us/op 2.3270 us/op 1.07
bitArray.getTrueBitIndexes() bitLen 512 4.7810 us/op 4.4700 us/op 1.07
Buffer.concat 32 items 1.0790 us/op 906.00 ns/op 1.19
Uint8Array.set 32 items 2.1640 us/op 1.7280 us/op 1.25
transfer serialized Status (84 B) 1.9250 us/op 1.8020 us/op 1.07
copy serialized Status (84 B) 1.6200 us/op 1.4990 us/op 1.08
transfer serialized SignedVoluntaryExit (112 B) 1.9580 us/op 1.9630 us/op 1.00
copy serialized SignedVoluntaryExit (112 B) 1.6530 us/op 1.6040 us/op 1.03
transfer serialized ProposerSlashing (416 B) 2.3000 us/op 2.4240 us/op 0.95
copy serialized ProposerSlashing (416 B) 2.0930 us/op 2.2020 us/op 0.95
transfer serialized Attestation (485 B) 2.3440 us/op 2.4610 us/op 0.95
copy serialized Attestation (485 B) 2.2280 us/op 2.2360 us/op 1.00
transfer serialized AttesterSlashing (33232 B) 2.9030 us/op 2.5490 us/op 1.14
copy serialized AttesterSlashing (33232 B) 4.7260 us/op 5.0330 us/op 0.94
transfer serialized Small SignedBeaconBlock (128000 B) 2.3390 us/op 2.9210 us/op 0.80
copy serialized Small SignedBeaconBlock (128000 B) 11.574 us/op 11.606 us/op 1.00
transfer serialized Avg SignedBeaconBlock (200000 B) 2.7190 us/op 3.1430 us/op 0.87
copy serialized Avg SignedBeaconBlock (200000 B) 16.757 us/op 16.439 us/op 1.02
transfer serialized BlobsSidecar (524380 B) 2.6690 us/op 2.9860 us/op 0.89
copy serialized BlobsSidecar (524380 B) 80.069 us/op 137.68 us/op 0.58
transfer serialized Big SignedBeaconBlock (1000000 B) 2.6820 us/op 3.0000 us/op 0.89
copy serialized Big SignedBeaconBlock (1000000 B) 221.80 us/op 147.10 us/op 1.51
pass gossip attestations to forkchoice per slot 3.0957 ms/op 2.8982 ms/op 1.07
forkChoice updateHead vc 100000 bc 64 eq 0 1.7277 ms/op 1.7244 ms/op 1.00
forkChoice updateHead vc 600000 bc 64 eq 0 13.783 ms/op 13.697 ms/op 1.01
forkChoice updateHead vc 1000000 bc 64 eq 0 22.872 ms/op 23.900 ms/op 0.96
forkChoice updateHead vc 600000 bc 320 eq 0 11.368 ms/op 13.659 ms/op 0.83
forkChoice updateHead vc 600000 bc 1200 eq 0 14.010 ms/op 13.665 ms/op 1.03
forkChoice updateHead vc 600000 bc 7200 eq 0 11.726 ms/op 11.849 ms/op 0.99
forkChoice updateHead vc 600000 bc 64 eq 1000 22.825 ms/op 22.240 ms/op 1.03
forkChoice updateHead vc 600000 bc 64 eq 10000 24.087 ms/op 23.415 ms/op 1.03
forkChoice updateHead vc 600000 bc 64 eq 300000 29.348 ms/op 28.505 ms/op 1.03
computeDeltas 500000 validators 300 proto nodes 18.763 ms/op 19.671 ms/op 0.95
computeDeltas 500000 validators 1200 proto nodes 18.455 ms/op 19.606 ms/op 0.94
computeDeltas 500000 validators 7200 proto nodes 18.106 ms/op 19.571 ms/op 0.93
computeDeltas 750000 validators 300 proto nodes 27.287 ms/op 29.120 ms/op 0.94
computeDeltas 750000 validators 1200 proto nodes 27.586 ms/op 28.936 ms/op 0.95
computeDeltas 750000 validators 7200 proto nodes 27.457 ms/op 29.290 ms/op 0.94
computeDeltas 1400000 validators 300 proto nodes 50.948 ms/op 54.636 ms/op 0.93
computeDeltas 1400000 validators 1200 proto nodes 50.924 ms/op 55.332 ms/op 0.92
computeDeltas 1400000 validators 7200 proto nodes 51.336 ms/op 56.493 ms/op 0.91
computeDeltas 2100000 validators 300 proto nodes 75.503 ms/op 82.609 ms/op 0.91
computeDeltas 2100000 validators 1200 proto nodes 75.988 ms/op 84.120 ms/op 0.90
computeDeltas 2100000 validators 7200 proto nodes 75.007 ms/op 83.734 ms/op 0.90
computeProposerBoostScoreFromBalances 500000 validators 3.1828 ms/op 3.1429 ms/op 1.01
computeProposerBoostScoreFromBalances 750000 validators 3.1765 ms/op 3.2086 ms/op 0.99
computeProposerBoostScoreFromBalances 1400000 validators 3.1790 ms/op 3.2134 ms/op 0.99
computeProposerBoostScoreFromBalances 2100000 validators 3.1446 ms/op 3.1765 ms/op 0.99
altair processAttestation - 250000 vs - 7PWei normalcase 2.2310 ms/op 2.6516 ms/op 0.84
altair processAttestation - 250000 vs - 7PWei worstcase 3.2429 ms/op 3.5965 ms/op 0.90
altair processAttestation - setStatus - 1/6 committees join 172.93 us/op 182.03 us/op 0.95
altair processAttestation - setStatus - 1/3 committees join 328.10 us/op 349.38 us/op 0.94
altair processAttestation - setStatus - 1/2 committees join 458.18 us/op 467.74 us/op 0.98
altair processAttestation - setStatus - 2/3 committees join 574.32 us/op 585.92 us/op 0.98
altair processAttestation - setStatus - 4/5 committees join 744.22 us/op 797.79 us/op 0.93
altair processAttestation - setStatus - 100% committees join 892.58 us/op 926.82 us/op 0.96
altair processBlock - 250000 vs - 7PWei normalcase 10.134 ms/op 9.7150 ms/op 1.04
altair processBlock - 250000 vs - 7PWei normalcase hashState 15.900 ms/op 16.836 ms/op 0.94
altair processBlock - 250000 vs - 7PWei worstcase 38.740 ms/op 39.024 ms/op 0.99
altair processBlock - 250000 vs - 7PWei worstcase hashState 55.095 ms/op 60.667 ms/op 0.91
phase0 processBlock - 250000 vs - 7PWei normalcase 2.5960 ms/op 2.5621 ms/op 1.01
phase0 processBlock - 250000 vs - 7PWei worstcase 30.526 ms/op 32.899 ms/op 0.93
altair processEth1Data - 250000 vs - 7PWei normalcase 469.15 us/op 466.25 us/op 1.01
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 12.046 us/op 14.640 us/op 0.82
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 56.346 us/op 46.561 us/op 1.21
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 15.477 us/op 22.123 us/op 0.70
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 16.611 us/op 11.401 us/op 1.46
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 229.41 us/op 185.91 us/op 1.23
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.0209 ms/op 1.0250 ms/op 1.00
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 3.0842 ms/op 1.5121 ms/op 2.04
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 3.0228 ms/op 1.6905 ms/op 1.79
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.6053 ms/op 3.6325 ms/op 0.99
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.3015 ms/op 2.6584 ms/op 0.87
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 5.1187 ms/op 5.6502 ms/op 0.91
Tree 40 250000 create 332.63 ms/op 356.23 ms/op 0.93
Tree 40 250000 get(125000) 186.12 ns/op 207.62 ns/op 0.90
Tree 40 250000 set(125000) 807.70 ns/op 845.63 ns/op 0.96
Tree 40 250000 toArray() 16.929 ms/op 18.481 ms/op 0.92
Tree 40 250000 iterate all - toArray() + loop 16.228 ms/op 21.545 ms/op 0.75
Tree 40 250000 iterate all - get(i) 62.932 ms/op 71.603 ms/op 0.88
MutableVector 250000 create 14.645 ms/op 13.334 ms/op 1.10
MutableVector 250000 get(125000) 6.4680 ns/op 6.4850 ns/op 1.00
MutableVector 250000 set(125000) 249.68 ns/op 286.06 ns/op 0.87
MutableVector 250000 toArray() 3.3271 ms/op 4.1336 ms/op 0.80
MutableVector 250000 iterate all - toArray() + loop 3.0324 ms/op 3.9248 ms/op 0.77
MutableVector 250000 iterate all - get(i) 1.4812 ms/op 1.5340 ms/op 0.97
Array 250000 create 2.2485 ms/op 3.9254 ms/op 0.57
Array 250000 clone - spread 966.64 us/op 1.2689 ms/op 0.76
Array 250000 get(125000) 0.47600 ns/op 0.59400 ns/op 0.80
Array 250000 set(125000) 0.54900 ns/op 0.69900 ns/op 0.79
Array 250000 iterate all - loop 79.399 us/op 102.20 us/op 0.78
effectiveBalanceIncrements clone Uint8Array 300000 20.538 us/op 27.604 us/op 0.74
effectiveBalanceIncrements clone MutableVector 300000 258.00 ns/op 332.00 ns/op 0.78
effectiveBalanceIncrements rw all Uint8Array 300000 171.52 us/op 172.88 us/op 0.99
effectiveBalanceIncrements rw all MutableVector 300000 74.419 ms/op 85.275 ms/op 0.87
phase0 afterProcessEpoch - 250000 vs - 7PWei 106.32 ms/op 122.28 ms/op 0.87
phase0 beforeProcessEpoch - 250000 vs - 7PWei 39.740 ms/op 33.870 ms/op 1.17
altair processEpoch - mainnet_e81889 361.12 ms/op 318.05 ms/op 1.14
mainnet_e81889 - altair beforeProcessEpoch 61.982 ms/op 64.574 ms/op 0.96
mainnet_e81889 - altair processJustificationAndFinalization 14.041 us/op 14.527 us/op 0.97
mainnet_e81889 - altair processInactivityUpdates 5.7075 ms/op 5.5580 ms/op 1.03
mainnet_e81889 - altair processRewardsAndPenalties 90.442 ms/op 63.950 ms/op 1.41
mainnet_e81889 - altair processRegistryUpdates 3.6060 us/op 2.7600 us/op 1.31
mainnet_e81889 - altair processSlashings 959.00 ns/op 427.00 ns/op 2.25
mainnet_e81889 - altair processEth1DataReset 855.00 ns/op 434.00 ns/op 1.97
mainnet_e81889 - altair processEffectiveBalanceUpdates 2.3743 ms/op 1.2355 ms/op 1.92
mainnet_e81889 - altair processSlashingsReset 4.6690 us/op 3.4540 us/op 1.35
mainnet_e81889 - altair processRandaoMixesReset 6.7520 us/op 4.9920 us/op 1.35
mainnet_e81889 - altair processHistoricalRootsUpdate 1.2180 us/op 551.00 ns/op 2.21
mainnet_e81889 - altair processParticipationFlagUpdates 2.4200 us/op 1.8200 us/op 1.33
mainnet_e81889 - altair processSyncCommitteeUpdates 963.00 ns/op 577.00 ns/op 1.67
mainnet_e81889 - altair afterProcessEpoch 122.64 ms/op 124.67 ms/op 0.98
capella processEpoch - mainnet_e217614 1.0638 s/op 998.07 ms/op 1.07
mainnet_e217614 - capella beforeProcessEpoch 235.79 ms/op 218.37 ms/op 1.08
mainnet_e217614 - capella processJustificationAndFinalization 19.730 us/op 13.149 us/op 1.50
mainnet_e217614 - capella processInactivityUpdates 16.927 ms/op 19.521 ms/op 0.87
mainnet_e217614 - capella processRewardsAndPenalties 338.14 ms/op 275.58 ms/op 1.23
mainnet_e217614 - capella processRegistryUpdates 27.978 us/op 19.630 us/op 1.43
mainnet_e217614 - capella processSlashings 879.00 ns/op 511.00 ns/op 1.72
mainnet_e217614 - capella processEth1DataReset 820.00 ns/op 380.00 ns/op 2.16
mainnet_e217614 - capella processEffectiveBalanceUpdates 3.9444 ms/op 3.9433 ms/op 1.00
mainnet_e217614 - capella processSlashingsReset 3.9360 us/op 2.2140 us/op 1.78
mainnet_e217614 - capella processRandaoMixesReset 6.8660 us/op 4.2000 us/op 1.63
mainnet_e217614 - capella processHistoricalRootsUpdate 1.0700 us/op 437.00 ns/op 2.45
mainnet_e217614 - capella processParticipationFlagUpdates 3.5810 us/op 2.0970 us/op 1.71
mainnet_e217614 - capella afterProcessEpoch 295.35 ms/op 305.84 ms/op 0.97
phase0 processEpoch - mainnet_e58758 369.66 ms/op 325.65 ms/op 1.14
mainnet_e58758 - phase0 beforeProcessEpoch 148.74 ms/op 114.89 ms/op 1.29
mainnet_e58758 - phase0 processJustificationAndFinalization 24.885 us/op 14.759 us/op 1.69
mainnet_e58758 - phase0 processRewardsAndPenalties 72.752 ms/op 54.846 ms/op 1.33
mainnet_e58758 - phase0 processRegistryUpdates 15.088 us/op 10.241 us/op 1.47
mainnet_e58758 - phase0 processSlashings 783.00 ns/op 505.00 ns/op 1.55
mainnet_e58758 - phase0 processEth1DataReset 763.00 ns/op 430.00 ns/op 1.77
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.9576 ms/op 959.14 us/op 2.04
mainnet_e58758 - phase0 processSlashingsReset 3.3540 us/op 2.4550 us/op 1.37
mainnet_e58758 - phase0 processRandaoMixesReset 6.3570 us/op 4.0480 us/op 1.57
mainnet_e58758 - phase0 processHistoricalRootsUpdate 778.00 ns/op 652.00 ns/op 1.19
mainnet_e58758 - phase0 processParticipationRecordUpdates 7.2800 us/op 4.4450 us/op 1.64
mainnet_e58758 - phase0 afterProcessEpoch 100.27 ms/op 99.280 ms/op 1.01
phase0 processEffectiveBalanceUpdates - 250000 normalcase 2.3479 ms/op 1.2686 ms/op 1.85
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.4565 ms/op 1.4727 ms/op 0.99
altair processInactivityUpdates - 250000 normalcase 24.962 ms/op 25.386 ms/op 0.98
altair processInactivityUpdates - 250000 worstcase 27.747 ms/op 24.110 ms/op 1.15
phase0 processRegistryUpdates - 250000 normalcase 13.022 us/op 7.5990 us/op 1.71
phase0 processRegistryUpdates - 250000 badcase_full_deposits 608.29 us/op 300.66 us/op 2.02
phase0 processRegistryUpdates - 250000 worstcase 0.5 133.30 ms/op 116.20 ms/op 1.15
altair processRewardsAndPenalties - 250000 normalcase 78.630 ms/op 67.266 ms/op 1.17
altair processRewardsAndPenalties - 250000 worstcase 77.635 ms/op 68.313 ms/op 1.14
phase0 getAttestationDeltas - 250000 normalcase 7.7175 ms/op 7.5821 ms/op 1.02
phase0 getAttestationDeltas - 250000 worstcase 7.4249 ms/op 7.5054 ms/op 0.99
phase0 processSlashings - 250000 worstcase 2.1955 ms/op 2.3143 ms/op 0.95
altair processSyncCommitteeUpdates - 250000 149.93 ms/op 143.70 ms/op 1.04
BeaconState.hashTreeRoot - No change 247.00 ns/op 247.00 ns/op 1.00
BeaconState.hashTreeRoot - 1 full validator 52.077 us/op 49.403 us/op 1.05
BeaconState.hashTreeRoot - 32 full validator 602.38 us/op 527.64 us/op 1.14
BeaconState.hashTreeRoot - 512 full validator 6.0280 ms/op 5.4623 ms/op 1.10
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 63.347 us/op 63.529 us/op 1.00
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 891.78 us/op 820.33 us/op 1.09
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 12.027 ms/op 11.675 ms/op 1.03
BeaconState.hashTreeRoot - 1 balances 53.905 us/op 49.812 us/op 1.08
BeaconState.hashTreeRoot - 32 balances 515.77 us/op 442.14 us/op 1.17
BeaconState.hashTreeRoot - 512 balances 4.7606 ms/op 4.0838 ms/op 1.17
BeaconState.hashTreeRoot - 250000 balances 77.151 ms/op 74.141 ms/op 1.04
aggregationBits - 2048 els - zipIndexesInBitList 13.496 us/op 13.974 us/op 0.97
regular array get 100000 times 39.218 us/op 39.822 us/op 0.98
wrappedArray get 100000 times 30.786 us/op 32.185 us/op 0.96
arrayWithProxy get 100000 times 13.410 ms/op 13.492 ms/op 0.99
ssz.Root.equals 188.00 ns/op 194.00 ns/op 0.97
byteArrayEquals 180.00 ns/op 190.00 ns/op 0.95
shuffle list - 16384 els 6.7410 ms/op 6.7810 ms/op 0.99
shuffle list - 250000 els 99.109 ms/op 99.403 ms/op 1.00
processSlot - 1 slots 8.1530 us/op 7.9730 us/op 1.02
processSlot - 32 slots 1.2960 ms/op 1.2777 ms/op 1.01
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 62.418 ms/op 54.247 ms/op 1.15
getCommitteeAssignments - req 1 vs - 250000 vc 2.4499 ms/op 2.4635 ms/op 0.99
getCommitteeAssignments - req 100 vs - 250000 vc 3.6022 ms/op 3.6459 ms/op 0.99
getCommitteeAssignments - req 1000 vs - 250000 vc 3.9422 ms/op 3.9528 ms/op 1.00
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.4900 ns/op 4.4200 ns/op 1.02
state getBlockRootAtSlot - 250000 vs - 7PWei 694.54 ns/op 894.34 ns/op 0.78
computeProposers - vc 250000 8.8206 ms/op 8.8300 ms/op 1.00
computeEpochShuffling - vc 250000 106.42 ms/op 101.85 ms/op 1.04
getNextSyncCommittee - vc 250000 145.69 ms/op 146.79 ms/op 0.99
computeSigningRoot for AttestationData 12.724 us/op 13.220 us/op 0.96
hash AttestationData serialized data then Buffer.toString(base64) 2.3003 us/op 2.2515 us/op 1.02
toHexString serialized data 1.0429 us/op 1.0307 us/op 1.01
Buffer.toString(base64) 217.41 ns/op 221.51 ns/op 0.98

by benchmarkbot/action

@wemeetagain wemeetagain merged commit ca9535b into unstable Aug 14, 2023
12 checks passed
@wemeetagain wemeetagain deleted the nflaig/fetch-timeout-error branch August 14, 2023 13:41
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