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: the browser logger and improve tests for logger package #5883

Merged
merged 3 commits into from
Aug 14, 2023

Conversation

nazarhussain
Copy link
Contributor

Motivation

Make the logger perform consistently in different environments.

Description

  • Fix the browser logger which was not working in browser
  • Improve the unit tests for logger package

Steps to test or reproduce

  • Run all tests.

@nazarhussain nazarhussain self-assigned this Aug 14, 2023
@nazarhussain nazarhussain marked this pull request as ready for review August 14, 2023 10:25
@nazarhussain nazarhussain requested a review from a team as a code owner August 14, 2023 10:25
@github-actions
Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 4bda6b6 Previous: 5edda2b Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 685.73 us/op 735.19 us/op 0.93
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 74.502 us/op 71.460 us/op 1.04
BLS verify - blst-native 1.1592 ms/op 1.1440 ms/op 1.01
BLS verifyMultipleSignatures 3 - blst-native 2.3506 ms/op 2.3955 ms/op 0.98
BLS verifyMultipleSignatures 8 - blst-native 5.0396 ms/op 5.1692 ms/op 0.97
BLS verifyMultipleSignatures 32 - blst-native 18.156 ms/op 18.581 ms/op 0.98
BLS aggregatePubkeys 32 - blst-native 24.035 us/op 24.733 us/op 0.97
BLS aggregatePubkeys 128 - blst-native 94.391 us/op 96.560 us/op 0.98
getAttestationsForBlock 48.269 ms/op 48.244 ms/op 1.00
isKnown best case - 1 super set check 256.00 ns/op 256.00 ns/op 1.00
isKnown normal case - 2 super set checks 249.00 ns/op 253.00 ns/op 0.98
isKnown worse case - 16 super set checks 260.00 ns/op 251.00 ns/op 1.04
CheckpointStateCache - add get delete 4.8290 us/op 4.7950 us/op 1.01
validate api signedAggregateAndProof - struct 2.6679 ms/op 2.5982 ms/op 1.03
validate gossip signedAggregateAndProof - struct 2.6688 ms/op 2.6788 ms/op 1.00
validate api attestation - struct 1.3876 ms/op 1.2774 ms/op 1.09
validate gossip attestation - struct 1.3191 ms/op 1.3023 ms/op 1.01
pickEth1Vote - no votes 1.1540 ms/op 1.1145 ms/op 1.04
pickEth1Vote - max votes 9.0612 ms/op 8.7483 ms/op 1.04
pickEth1Vote - Eth1Data hashTreeRoot value x2048 8.3542 ms/op 8.1004 ms/op 1.03
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 13.802 ms/op 13.214 ms/op 1.04
pickEth1Vote - Eth1Data fastSerialize value x2048 569.12 us/op 579.37 us/op 0.98
pickEth1Vote - Eth1Data fastSerialize tree x2048 6.2818 ms/op 6.9924 ms/op 0.90
bytes32 toHexString 464.00 ns/op 466.00 ns/op 1.00
bytes32 Buffer.toString(hex) 277.00 ns/op 275.00 ns/op 1.01
bytes32 Buffer.toString(hex) from Uint8Array 406.00 ns/op 418.00 ns/op 0.97
bytes32 Buffer.toString(hex) + 0x 273.00 ns/op 283.00 ns/op 0.96
Object access 1 prop 0.15300 ns/op 0.14700 ns/op 1.04
Map access 1 prop 0.14200 ns/op 0.13800 ns/op 1.03
Object get x1000 6.7630 ns/op 7.4080 ns/op 0.91
Map get x1000 0.57600 ns/op 0.58300 ns/op 0.99
Object set x1000 46.685 ns/op 46.942 ns/op 0.99
Map set x1000 36.602 ns/op 37.294 ns/op 0.98
Return object 10000 times 0.22260 ns/op 0.22570 ns/op 0.99
Throw Error 10000 times 3.7554 us/op 3.7347 us/op 1.01
fastMsgIdFn sha256 / 200 bytes 3.0840 us/op 3.1230 us/op 0.99
fastMsgIdFn h32 xxhash / 200 bytes 249.00 ns/op 265.00 ns/op 0.94
fastMsgIdFn h64 xxhash / 200 bytes 318.00 ns/op 324.00 ns/op 0.98
fastMsgIdFn sha256 / 1000 bytes 10.757 us/op 10.907 us/op 0.99
fastMsgIdFn h32 xxhash / 1000 bytes 372.00 ns/op 396.00 ns/op 0.94
fastMsgIdFn h64 xxhash / 1000 bytes 388.00 ns/op 393.00 ns/op 0.99
fastMsgIdFn sha256 / 10000 bytes 98.617 us/op 99.323 us/op 0.99
fastMsgIdFn h32 xxhash / 10000 bytes 1.7740 us/op 1.8320 us/op 0.97
fastMsgIdFn h64 xxhash / 10000 bytes 1.2170 us/op 1.2760 us/op 0.95
enrSubnets - fastDeserialize 64 bits 1.1630 us/op 1.1620 us/op 1.00
enrSubnets - ssz BitVector 64 bits 399.00 ns/op 400.00 ns/op 1.00
enrSubnets - fastDeserialize 4 bits 153.00 ns/op 156.00 ns/op 0.98
enrSubnets - ssz BitVector 4 bits 400.00 ns/op 407.00 ns/op 0.98
prioritizePeers score -10:0 att 32-0.1 sync 2-0 95.778 us/op 97.145 us/op 0.99
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 116.99 us/op 120.88 us/op 0.97
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 152.77 us/op 160.01 us/op 0.95
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 273.11 us/op 277.92 us/op 0.98
prioritizePeers score 0:0 att 64-1 sync 4-1 320.57 us/op 327.34 us/op 0.98
array of 16000 items push then shift 1.4967 us/op 1.5362 us/op 0.97
LinkedList of 16000 items push then shift 8.5020 ns/op 8.5770 ns/op 0.99
array of 16000 items push then pop 45.002 ns/op 60.374 ns/op 0.75
LinkedList of 16000 items push then pop 8.3060 ns/op 8.3980 ns/op 0.99
array of 24000 items push then shift 2.3800 us/op 2.3242 us/op 1.02
LinkedList of 24000 items push then shift 8.7860 ns/op 8.5850 ns/op 1.02
array of 24000 items push then pop 91.262 ns/op 94.596 ns/op 0.96
LinkedList of 24000 items push then pop 8.4580 ns/op 8.3960 ns/op 1.01
intersect bitArray bitLen 8 6.7860 ns/op 6.6010 ns/op 1.03
intersect array and set length 8 56.574 ns/op 55.821 ns/op 1.01
intersect bitArray bitLen 128 31.334 ns/op 30.916 ns/op 1.01
intersect array and set length 128 763.00 ns/op 749.10 ns/op 1.02
bitArray.getTrueBitIndexes() bitLen 128 1.4570 us/op 1.3500 us/op 1.08
bitArray.getTrueBitIndexes() bitLen 248 2.4700 us/op 2.3770 us/op 1.04
bitArray.getTrueBitIndexes() bitLen 512 4.7110 us/op 4.5270 us/op 1.04
Buffer.concat 32 items 1.0190 us/op 1.0170 us/op 1.00
Uint8Array.set 32 items 1.6890 us/op 1.8960 us/op 0.89
Set add up to 64 items then delete first 4.0725 us/op 4.1132 us/op 0.99
OrderedSet add up to 64 items then delete first 5.1236 us/op 5.1632 us/op 0.99
Set add up to 64 items then delete last 4.3679 us/op 4.4063 us/op 0.99
OrderedSet add up to 64 items then delete last 5.2982 us/op 5.2550 us/op 1.01
Set add up to 64 items then delete middle 4.2638 us/op 4.2180 us/op 1.01
OrderedSet add up to 64 items then delete middle 6.5023 us/op 6.4912 us/op 1.00
Set add up to 128 items then delete first 8.6565 us/op 8.8389 us/op 0.98
OrderedSet add up to 128 items then delete first 11.367 us/op 11.690 us/op 0.97
Set add up to 128 items then delete last 8.5004 us/op 8.6862 us/op 0.98
OrderedSet add up to 128 items then delete last 10.865 us/op 10.945 us/op 0.99
Set add up to 128 items then delete middle 8.4410 us/op 8.6418 us/op 0.98
OrderedSet add up to 128 items then delete middle 15.861 us/op 16.106 us/op 0.98
Set add up to 256 items then delete first 17.609 us/op 18.168 us/op 0.97
OrderedSet add up to 256 items then delete first 23.495 us/op 23.907 us/op 0.98
Set add up to 256 items then delete last 17.019 us/op 17.334 us/op 0.98
OrderedSet add up to 256 items then delete last 21.749 us/op 22.047 us/op 0.99
Set add up to 256 items then delete middle 16.797 us/op 17.279 us/op 0.97
OrderedSet add up to 256 items then delete middle 42.363 us/op 42.956 us/op 0.99
transfer serialized Status (84 B) 1.7190 us/op 1.7280 us/op 0.99
copy serialized Status (84 B) 1.6610 us/op 1.4610 us/op 1.14
transfer serialized SignedVoluntaryExit (112 B) 2.2240 us/op 1.7930 us/op 1.24
copy serialized SignedVoluntaryExit (112 B) 1.8450 us/op 1.4650 us/op 1.26
transfer serialized ProposerSlashing (416 B) 3.1750 us/op 3.0580 us/op 1.04
copy serialized ProposerSlashing (416 B) 2.9530 us/op 2.9730 us/op 0.99
transfer serialized Attestation (485 B) 3.2380 us/op 3.2050 us/op 1.01
copy serialized Attestation (485 B) 3.0030 us/op 3.0140 us/op 1.00
transfer serialized AttesterSlashing (33232 B) 3.0470 us/op 2.9610 us/op 1.03
copy serialized AttesterSlashing (33232 B) 5.9970 us/op 5.6530 us/op 1.06
transfer serialized Small SignedBeaconBlock (128000 B) 3.1840 us/op 3.0770 us/op 1.03
copy serialized Small SignedBeaconBlock (128000 B) 41.956 us/op 12.179 us/op 3.44
transfer serialized Avg SignedBeaconBlock (200000 B) 3.5660 us/op 3.3220 us/op 1.07
copy serialized Avg SignedBeaconBlock (200000 B) 18.908 us/op 17.219 us/op 1.10
transfer serialized BlobsSidecar (524380 B) 3.2670 us/op 3.1260 us/op 1.05
copy serialized BlobsSidecar (524380 B) 77.558 us/op 75.532 us/op 1.03
transfer serialized Big SignedBeaconBlock (1000000 B) 3.4840 us/op 3.1710 us/op 1.10
copy serialized Big SignedBeaconBlock (1000000 B) 154.96 us/op 142.79 us/op 1.09
pass gossip attestations to forkchoice per slot 3.1032 ms/op 3.0958 ms/op 1.00
forkChoice updateHead vc 100000 bc 64 eq 0 1.6805 ms/op 1.7063 ms/op 0.98
forkChoice updateHead vc 600000 bc 64 eq 0 13.542 ms/op 13.622 ms/op 0.99
forkChoice updateHead vc 1000000 bc 64 eq 0 22.357 ms/op 22.554 ms/op 0.99
forkChoice updateHead vc 600000 bc 320 eq 0 12.109 ms/op 15.503 ms/op 0.78
forkChoice updateHead vc 600000 bc 1200 eq 0 14.140 ms/op 13.488 ms/op 1.05
forkChoice updateHead vc 600000 bc 7200 eq 0 11.752 ms/op 11.209 ms/op 1.05
forkChoice updateHead vc 600000 bc 64 eq 1000 22.290 ms/op 21.711 ms/op 1.03
forkChoice updateHead vc 600000 bc 64 eq 10000 23.664 ms/op 22.898 ms/op 1.03
forkChoice updateHead vc 600000 bc 64 eq 300000 28.488 ms/op 27.510 ms/op 1.04
computeDeltas 500000 validators 300 proto nodes 19.637 ms/op 17.870 ms/op 1.10
computeDeltas 500000 validators 1200 proto nodes 19.519 ms/op 17.915 ms/op 1.09
computeDeltas 500000 validators 7200 proto nodes 19.948 ms/op 18.138 ms/op 1.10
computeDeltas 750000 validators 300 proto nodes 29.562 ms/op 26.790 ms/op 1.10
computeDeltas 750000 validators 1200 proto nodes 29.953 ms/op 27.327 ms/op 1.10
computeDeltas 750000 validators 7200 proto nodes 30.365 ms/op 27.315 ms/op 1.11
computeDeltas 1400000 validators 300 proto nodes 55.628 ms/op 50.790 ms/op 1.10
computeDeltas 1400000 validators 1200 proto nodes 56.728 ms/op 52.078 ms/op 1.09
computeDeltas 1400000 validators 7200 proto nodes 57.113 ms/op 51.756 ms/op 1.10
computeDeltas 2100000 validators 300 proto nodes 85.706 ms/op 75.490 ms/op 1.14
computeDeltas 2100000 validators 1200 proto nodes 84.514 ms/op 75.901 ms/op 1.11
computeDeltas 2100000 validators 7200 proto nodes 85.412 ms/op 76.236 ms/op 1.12
computeProposerBoostScoreFromBalances 500000 validators 3.2338 ms/op 3.2040 ms/op 1.01
computeProposerBoostScoreFromBalances 750000 validators 3.2029 ms/op 3.1797 ms/op 1.01
computeProposerBoostScoreFromBalances 1400000 validators 3.1767 ms/op 3.2543 ms/op 0.98
computeProposerBoostScoreFromBalances 2100000 validators 3.1262 ms/op 3.2377 ms/op 0.97
altair processAttestation - 250000 vs - 7PWei normalcase 2.0714 ms/op 2.5460 ms/op 0.81
altair processAttestation - 250000 vs - 7PWei worstcase 3.1398 ms/op 3.3044 ms/op 0.95
altair processAttestation - setStatus - 1/6 committees join 139.40 us/op 178.07 us/op 0.78
altair processAttestation - setStatus - 1/3 committees join 279.09 us/op 342.33 us/op 0.82
altair processAttestation - setStatus - 1/2 committees join 374.56 us/op 468.12 us/op 0.80
altair processAttestation - setStatus - 2/3 committees join 470.86 us/op 592.34 us/op 0.79
altair processAttestation - setStatus - 4/5 committees join 658.40 us/op 817.96 us/op 0.80
altair processAttestation - setStatus - 100% committees join 781.57 us/op 939.12 us/op 0.83
altair processBlock - 250000 vs - 7PWei normalcase 10.142 ms/op 10.336 ms/op 0.98
altair processBlock - 250000 vs - 7PWei normalcase hashState 16.355 ms/op 16.791 ms/op 0.97
altair processBlock - 250000 vs - 7PWei worstcase 40.379 ms/op 37.703 ms/op 1.07
altair processBlock - 250000 vs - 7PWei worstcase hashState 58.524 ms/op 59.398 ms/op 0.99
phase0 processBlock - 250000 vs - 7PWei normalcase 2.3167 ms/op 2.3974 ms/op 0.97
phase0 processBlock - 250000 vs - 7PWei worstcase 29.239 ms/op 30.800 ms/op 0.95
altair processEth1Data - 250000 vs - 7PWei normalcase 474.11 us/op 450.07 us/op 1.05
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 9.3720 us/op 13.350 us/op 0.70
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 39.481 us/op 73.451 us/op 0.54
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 17.152 us/op 10.869 us/op 1.58
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 12.772 us/op 7.0860 us/op 1.80
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 193.01 us/op 125.41 us/op 1.54
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.2692 ms/op 1.0298 ms/op 1.23
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.5610 ms/op 1.4520 ms/op 1.08
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.4550 ms/op 1.4521 ms/op 1.00
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.1321 ms/op 2.9338 ms/op 1.07
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.3266 ms/op 2.3525 ms/op 0.99
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 5.3051 ms/op 4.4627 ms/op 1.19
Tree 40 250000 create 320.38 ms/op 299.03 ms/op 1.07
Tree 40 250000 get(125000) 202.99 ns/op 183.81 ns/op 1.10
Tree 40 250000 set(125000) 952.17 ns/op 826.49 ns/op 1.15
Tree 40 250000 toArray() 17.739 ms/op 19.180 ms/op 0.92
Tree 40 250000 iterate all - toArray() + loop 19.261 ms/op 19.276 ms/op 1.00
Tree 40 250000 iterate all - get(i) 67.163 ms/op 65.601 ms/op 1.02
MutableVector 250000 create 12.968 ms/op 12.651 ms/op 1.03
MutableVector 250000 get(125000) 6.4260 ns/op 6.3180 ns/op 1.02
MutableVector 250000 set(125000) 244.06 ns/op 260.17 ns/op 0.94
MutableVector 250000 toArray() 3.1201 ms/op 3.3311 ms/op 0.94
MutableVector 250000 iterate all - toArray() + loop 3.2572 ms/op 3.8869 ms/op 0.84
MutableVector 250000 iterate all - get(i) 1.5459 ms/op 1.5388 ms/op 1.00
Array 250000 create 3.2256 ms/op 3.0386 ms/op 1.06
Array 250000 clone - spread 1.0397 ms/op 992.18 us/op 1.05
Array 250000 get(125000) 0.52200 ns/op 0.48600 ns/op 1.07
Array 250000 set(125000) 0.59800 ns/op 0.55700 ns/op 1.07
Array 250000 iterate all - loop 82.533 us/op 81.280 us/op 1.02
effectiveBalanceIncrements clone Uint8Array 300000 25.096 us/op 20.996 us/op 1.20
effectiveBalanceIncrements clone MutableVector 300000 290.00 ns/op 258.00 ns/op 1.12
effectiveBalanceIncrements rw all Uint8Array 300000 180.78 us/op 176.38 us/op 1.02
effectiveBalanceIncrements rw all MutableVector 300000 79.286 ms/op 74.986 ms/op 1.06
phase0 afterProcessEpoch - 250000 vs - 7PWei 114.72 ms/op 115.03 ms/op 1.00
phase0 beforeProcessEpoch - 250000 vs - 7PWei 40.107 ms/op 38.328 ms/op 1.05
altair processEpoch - mainnet_e81889 313.81 ms/op 348.33 ms/op 0.90
mainnet_e81889 - altair beforeProcessEpoch 50.923 ms/op 68.619 ms/op 0.74
mainnet_e81889 - altair processJustificationAndFinalization 14.412 us/op 22.172 us/op 0.65
mainnet_e81889 - altair processInactivityUpdates 6.1498 ms/op 6.6194 ms/op 0.93
mainnet_e81889 - altair processRewardsAndPenalties 67.730 ms/op 67.342 ms/op 1.01
mainnet_e81889 - altair processRegistryUpdates 2.5430 us/op 3.1610 us/op 0.80
mainnet_e81889 - altair processSlashings 494.00 ns/op 455.00 ns/op 1.09
mainnet_e81889 - altair processEth1DataReset 734.00 ns/op 575.00 ns/op 1.28
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.3738 ms/op 1.2578 ms/op 1.09
mainnet_e81889 - altair processSlashingsReset 5.2540 us/op 4.8830 us/op 1.08
mainnet_e81889 - altair processRandaoMixesReset 10.535 us/op 12.777 us/op 0.82
mainnet_e81889 - altair processHistoricalRootsUpdate 1.0010 us/op 2.4390 us/op 0.41
mainnet_e81889 - altair processParticipationFlagUpdates 4.0920 us/op 2.1030 us/op 1.95
mainnet_e81889 - altair processSyncCommitteeUpdates 893.00 ns/op 932.00 ns/op 0.96
mainnet_e81889 - altair afterProcessEpoch 128.19 ms/op 137.77 ms/op 0.93
capella processEpoch - mainnet_e217614 1.0894 s/op 1.1095 s/op 0.98
mainnet_e217614 - capella beforeProcessEpoch 260.66 ms/op 246.68 ms/op 1.06
mainnet_e217614 - capella processJustificationAndFinalization 14.125 us/op 13.032 us/op 1.08
mainnet_e217614 - capella processInactivityUpdates 16.553 ms/op 18.997 ms/op 0.87
mainnet_e217614 - capella processRewardsAndPenalties 285.09 ms/op 277.27 ms/op 1.03
mainnet_e217614 - capella processRegistryUpdates 21.676 us/op 19.536 us/op 1.11
mainnet_e217614 - capella processSlashings 453.00 ns/op 507.00 ns/op 0.89
mainnet_e217614 - capella processEth1DataReset 327.00 ns/op 418.00 ns/op 0.78
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.1251 ms/op 4.1033 ms/op 1.01
mainnet_e217614 - capella processSlashingsReset 2.1190 us/op 2.3770 us/op 0.89
mainnet_e217614 - capella processRandaoMixesReset 3.9080 us/op 4.1850 us/op 0.93
mainnet_e217614 - capella processHistoricalRootsUpdate 584.00 ns/op 799.00 ns/op 0.73
mainnet_e217614 - capella processParticipationFlagUpdates 1.6360 us/op 1.5390 us/op 1.06
mainnet_e217614 - capella afterProcessEpoch 294.67 ms/op 299.06 ms/op 0.99
phase0 processEpoch - mainnet_e58758 325.34 ms/op 315.02 ms/op 1.03
mainnet_e58758 - phase0 beforeProcessEpoch 98.242 ms/op 105.63 ms/op 0.93
mainnet_e58758 - phase0 processJustificationAndFinalization 13.747 us/op 14.293 us/op 0.96
mainnet_e58758 - phase0 processRewardsAndPenalties 52.071 ms/op 50.008 ms/op 1.04
mainnet_e58758 - phase0 processRegistryUpdates 11.705 us/op 10.242 us/op 1.14
mainnet_e58758 - phase0 processSlashings 502.00 ns/op 504.00 ns/op 1.00
mainnet_e58758 - phase0 processEth1DataReset 405.00 ns/op 407.00 ns/op 1.00
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.0198 ms/op 971.46 us/op 1.05
mainnet_e58758 - phase0 processSlashingsReset 2.1760 us/op 2.3360 us/op 0.93
mainnet_e58758 - phase0 processRandaoMixesReset 3.7630 us/op 3.7410 us/op 1.01
mainnet_e58758 - phase0 processHistoricalRootsUpdate 804.00 ns/op 647.00 ns/op 1.24
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.2660 us/op 4.5160 us/op 0.72
mainnet_e58758 - phase0 afterProcessEpoch 99.435 ms/op 103.70 ms/op 0.96
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.2604 ms/op 1.3045 ms/op 0.97
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.9408 ms/op 1.4481 ms/op 1.34
altair processInactivityUpdates - 250000 normalcase 24.705 ms/op 20.346 ms/op 1.21
altair processInactivityUpdates - 250000 worstcase 24.671 ms/op 20.520 ms/op 1.20
phase0 processRegistryUpdates - 250000 normalcase 10.442 us/op 8.9440 us/op 1.17
phase0 processRegistryUpdates - 250000 badcase_full_deposits 306.22 us/op 318.61 us/op 0.96
phase0 processRegistryUpdates - 250000 worstcase 0.5 130.70 ms/op 120.96 ms/op 1.08
altair processRewardsAndPenalties - 250000 normalcase 74.059 ms/op 51.267 ms/op 1.44
altair processRewardsAndPenalties - 250000 worstcase 71.148 ms/op 49.580 ms/op 1.44
phase0 getAttestationDeltas - 250000 normalcase 7.3426 ms/op 8.0654 ms/op 0.91
phase0 getAttestationDeltas - 250000 worstcase 7.6745 ms/op 7.9362 ms/op 0.97
phase0 processSlashings - 250000 worstcase 2.3235 ms/op 2.3179 ms/op 1.00
altair processSyncCommitteeUpdates - 250000 150.09 ms/op 154.63 ms/op 0.97
BeaconState.hashTreeRoot - No change 251.00 ns/op 252.00 ns/op 1.00
BeaconState.hashTreeRoot - 1 full validator 50.028 us/op 52.098 us/op 0.96
BeaconState.hashTreeRoot - 32 full validator 502.10 us/op 543.29 us/op 0.92
BeaconState.hashTreeRoot - 512 full validator 5.4812 ms/op 5.5432 ms/op 0.99
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 67.887 us/op 62.378 us/op 1.09
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 872.84 us/op 951.84 us/op 0.92
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 10.857 ms/op 12.231 ms/op 0.89
BeaconState.hashTreeRoot - 1 balances 52.423 us/op 50.889 us/op 1.03
BeaconState.hashTreeRoot - 32 balances 439.92 us/op 474.02 us/op 0.93
BeaconState.hashTreeRoot - 512 balances 4.4199 ms/op 4.8391 ms/op 0.91
BeaconState.hashTreeRoot - 250000 balances 72.286 ms/op 76.915 ms/op 0.94
aggregationBits - 2048 els - zipIndexesInBitList 14.670 us/op 16.662 us/op 0.88
regular array get 100000 times 32.041 us/op 33.452 us/op 0.96
wrappedArray get 100000 times 31.996 us/op 44.353 us/op 0.72
arrayWithProxy get 100000 times 14.950 ms/op 14.806 ms/op 1.01
ssz.Root.equals 190.00 ns/op 225.00 ns/op 0.84
byteArrayEquals 191.00 ns/op 233.00 ns/op 0.82
shuffle list - 16384 els 6.8438 ms/op 7.1646 ms/op 0.96
shuffle list - 250000 els 100.54 ms/op 105.07 ms/op 0.96
processSlot - 1 slots 8.1190 us/op 9.0030 us/op 0.90
processSlot - 32 slots 1.3035 ms/op 1.4613 ms/op 0.89
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 57.243 ms/op 49.392 ms/op 1.16
getCommitteeAssignments - req 1 vs - 250000 vc 2.4381 ms/op 2.4839 ms/op 0.98
getCommitteeAssignments - req 100 vs - 250000 vc 3.6660 ms/op 3.6777 ms/op 1.00
getCommitteeAssignments - req 1000 vs - 250000 vc 4.0101 ms/op 3.9689 ms/op 1.01
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 5.2400 ns/op 4.4400 ns/op 1.18
state getBlockRootAtSlot - 250000 vs - 7PWei 664.33 ns/op 499.39 ns/op 1.33
computeProposers - vc 250000 8.5873 ms/op 10.113 ms/op 0.85
computeEpochShuffling - vc 250000 102.88 ms/op 104.35 ms/op 0.99
getNextSyncCommittee - vc 250000 146.13 ms/op 161.95 ms/op 0.90
computeSigningRoot for AttestationData 12.609 us/op 14.357 us/op 0.88
hash AttestationData serialized data then Buffer.toString(base64) 2.2037 us/op 2.3708 us/op 0.93
toHexString serialized data 1.0086 us/op 1.2120 us/op 0.83
Buffer.toString(base64) 209.79 ns/op 245.12 ns/op 0.86

by benchmarkbot/action

@wemeetagain wemeetagain merged commit 4967d38 into unstable Aug 14, 2023
11 checks passed
@wemeetagain wemeetagain deleted the nh/fix-browser-logger branch August 14, 2023 14:35
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