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!: update target to es2021 #5866

Merged
merged 3 commits into from
Aug 10, 2023
Merged

chore!: update target to es2021 #5866

merged 3 commits into from
Aug 10, 2023

Conversation

wemeetagain
Copy link
Member

Motivation

  • We want to produce up-to-date javascript that doesn't have lots of polyfills

Description

  • update the target to es2021 (es2022 still has poor support according to @nazarhussain )

@wemeetagain wemeetagain requested a review from a team as a code owner August 8, 2023 13:32
@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2023

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: 85a7dd0 Previous: 664820a Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 837.63 us/op 538.36 us/op 1.56
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 110.88 us/op 75.356 us/op 1.47
BLS verify - blst-native 1.4371 ms/op 1.2453 ms/op 1.15
BLS verifyMultipleSignatures 3 - blst-native 2.6242 ms/op 2.5238 ms/op 1.04
BLS verifyMultipleSignatures 8 - blst-native 5.7937 ms/op 5.3875 ms/op 1.08
BLS verifyMultipleSignatures 32 - blst-native 20.342 ms/op 19.666 ms/op 1.03
BLS aggregatePubkeys 32 - blst-native 28.012 us/op 25.852 us/op 1.08
BLS aggregatePubkeys 128 - blst-native 107.36 us/op 101.54 us/op 1.06
getAttestationsForBlock 88.859 ms/op 57.596 ms/op 1.54
isKnown best case - 1 super set check 589.00 ns/op 314.00 ns/op 1.88
isKnown normal case - 2 super set checks 616.00 ns/op 297.00 ns/op 2.07
isKnown worse case - 16 super set checks 628.00 ns/op 317.00 ns/op 1.98
CheckpointStateCache - add get delete 7.9750 us/op 5.0350 us/op 1.58
validate api signedAggregateAndProof - struct 3.8485 ms/op 2.8058 ms/op 1.37
validate gossip signedAggregateAndProof - struct 4.0505 ms/op 2.8122 ms/op 1.44
validate api attestation - struct 1.6296 ms/op 1.3431 ms/op 1.21
validate gossip attestation - struct 1.5511 ms/op 1.3665 ms/op 1.14
pickEth1Vote - no votes 1.4857 ms/op 1.2316 ms/op 1.21
pickEth1Vote - max votes 16.854 ms/op 8.0403 ms/op 2.10
pickEth1Vote - Eth1Data hashTreeRoot value x2048 10.519 ms/op 9.3640 ms/op 1.12
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 17.346 ms/op 15.007 ms/op 1.16
pickEth1Vote - Eth1Data fastSerialize value x2048 871.49 us/op 593.72 us/op 1.47
pickEth1Vote - Eth1Data fastSerialize tree x2048 8.0710 ms/op 7.8127 ms/op 1.03
bytes32 toHexString 905.00 ns/op 503.00 ns/op 1.80
bytes32 Buffer.toString(hex) 432.00 ns/op 291.00 ns/op 1.48
bytes32 Buffer.toString(hex) from Uint8Array 575.00 ns/op 445.00 ns/op 1.29
bytes32 Buffer.toString(hex) + 0x 415.00 ns/op 293.00 ns/op 1.42
Object access 1 prop 0.24700 ns/op 0.16400 ns/op 1.51
Map access 1 prop 0.17100 ns/op 0.14800 ns/op 1.16
Object get x1000 10.810 ns/op 7.5410 ns/op 1.43
Map get x1000 0.96900 ns/op 0.64300 ns/op 1.51
Object set x1000 78.322 ns/op 53.180 ns/op 1.47
Map set x1000 59.322 ns/op 43.503 ns/op 1.36
Return object 10000 times 0.33750 ns/op 0.24770 ns/op 1.36
Throw Error 10000 times 4.5936 us/op 3.9372 us/op 1.17
fastMsgIdFn sha256 / 200 bytes 3.6450 us/op 3.3760 us/op 1.08
fastMsgIdFn h32 xxhash / 200 bytes 388.00 ns/op 297.00 ns/op 1.31
fastMsgIdFn h64 xxhash / 200 bytes 482.00 ns/op 353.00 ns/op 1.37
fastMsgIdFn sha256 / 1000 bytes 12.272 us/op 11.665 us/op 1.05
fastMsgIdFn h32 xxhash / 1000 bytes 512.00 ns/op 436.00 ns/op 1.17
fastMsgIdFn h64 xxhash / 1000 bytes 561.00 ns/op 433.00 ns/op 1.30
fastMsgIdFn sha256 / 10000 bytes 121.16 us/op 104.81 us/op 1.16
fastMsgIdFn h32 xxhash / 10000 bytes 2.1990 us/op 1.9910 us/op 1.10
fastMsgIdFn h64 xxhash / 10000 bytes 1.4850 us/op 1.3820 us/op 1.07
enrSubnets - fastDeserialize 64 bits 1.8480 us/op 1.3610 us/op 1.36
enrSubnets - ssz BitVector 64 bits 678.00 ns/op 492.00 ns/op 1.38
enrSubnets - fastDeserialize 4 bits 291.00 ns/op 228.00 ns/op 1.28
enrSubnets - ssz BitVector 4 bits 717.00 ns/op 550.00 ns/op 1.30
prioritizePeers score -10:0 att 32-0.1 sync 2-0 145.82 us/op 126.22 us/op 1.16
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 180.97 us/op 138.56 us/op 1.31
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 229.23 us/op 223.03 us/op 1.03
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 455.38 us/op 371.82 us/op 1.22
prioritizePeers score 0:0 att 64-1 sync 4-1 481.68 us/op 413.41 us/op 1.17
array of 16000 items push then shift 1.9870 us/op 1.6410 us/op 1.21
LinkedList of 16000 items push then shift 12.528 ns/op 9.7410 ns/op 1.29
array of 16000 items push then pop 85.690 ns/op 65.478 ns/op 1.31
LinkedList of 16000 items push then pop 11.528 ns/op 9.5200 ns/op 1.21
array of 24000 items push then shift 3.0482 us/op 2.5320 us/op 1.20
LinkedList of 24000 items push then shift 13.279 ns/op 10.206 ns/op 1.30
array of 24000 items push then pop 185.60 ns/op 132.05 ns/op 1.41
LinkedList of 24000 items push then pop 12.879 ns/op 9.1160 ns/op 1.41
intersect bitArray bitLen 8 8.4360 ns/op 7.1240 ns/op 1.18
intersect array and set length 8 86.905 ns/op 72.367 ns/op 1.20
intersect bitArray bitLen 128 42.357 ns/op 33.160 ns/op 1.28
intersect array and set length 128 1.0620 us/op 1.0336 us/op 1.03
bitArray.getTrueBitIndexes() bitLen 128 1.7380 us/op 1.8290 us/op 0.95
bitArray.getTrueBitIndexes() bitLen 248 3.0490 us/op 3.0980 us/op 0.98
bitArray.getTrueBitIndexes() bitLen 512 6.5560 us/op 6.4210 us/op 1.02
Buffer.concat 32 items 1.2350 us/op 1.0760 us/op 1.15
Uint8Array.set 32 items 2.5800 us/op 1.8510 us/op 1.39
transfer serialized Status (84 B) 2.1200 us/op 1.9540 us/op 1.08
copy serialized Status (84 B) 1.8770 us/op 1.8480 us/op 1.02
transfer serialized SignedVoluntaryExit (112 B) 2.3610 us/op 2.3500 us/op 1.00
copy serialized SignedVoluntaryExit (112 B) 2.1140 us/op 2.1430 us/op 0.99
transfer serialized ProposerSlashing (416 B) 3.0880 us/op 3.2530 us/op 0.95
copy serialized ProposerSlashing (416 B) 3.2020 us/op 2.7180 us/op 1.18
transfer serialized Attestation (485 B) 3.0730 us/op 3.1800 us/op 0.97
copy serialized Attestation (485 B) 3.1290 us/op 2.9130 us/op 1.07
transfer serialized AttesterSlashing (33232 B) 3.9170 us/op 2.6610 us/op 1.47
copy serialized AttesterSlashing (33232 B) 9.7210 us/op 10.460 us/op 0.93
transfer serialized Small SignedBeaconBlock (128000 B) 3.6480 us/op 3.0000 us/op 1.22
copy serialized Small SignedBeaconBlock (128000 B) 26.218 us/op 34.322 us/op 0.76
transfer serialized Avg SignedBeaconBlock (200000 B) 4.4190 us/op 3.7140 us/op 1.19
copy serialized Avg SignedBeaconBlock (200000 B) 36.154 us/op 49.520 us/op 0.73
transfer serialized BlobsSidecar (524380 B) 4.8980 us/op 3.9470 us/op 1.24
copy serialized BlobsSidecar (524380 B) 121.50 us/op 308.90 us/op 0.39
transfer serialized Big SignedBeaconBlock (1000000 B) 5.0880 us/op 5.0620 us/op 1.01
copy serialized Big SignedBeaconBlock (1000000 B) 250.81 us/op 283.43 us/op 0.88
pass gossip attestations to forkchoice per slot 2.6189 ms/op 2.5814 ms/op 1.01
forkChoice updateHead vc 100000 bc 64 eq 0 2.6845 ms/op 2.3277 ms/op 1.15
forkChoice updateHead vc 600000 bc 64 eq 0 18.322 ms/op 11.734 ms/op 1.56
forkChoice updateHead vc 1000000 bc 64 eq 0 29.436 ms/op 19.728 ms/op 1.49
forkChoice updateHead vc 600000 bc 320 eq 0 21.982 ms/op 17.910 ms/op 1.23
forkChoice updateHead vc 600000 bc 1200 eq 0 112.90 ms/op 92.803 ms/op 1.22
forkChoice updateHead vc 600000 bc 64 eq 1000 33.873 ms/op 19.784 ms/op 1.71
forkChoice updateHead vc 600000 bc 64 eq 10000 32.090 ms/op 21.701 ms/op 1.48
forkChoice updateHead vc 600000 bc 64 eq 300000 96.027 ms/op 42.396 ms/op 2.27
computeDeltas 4.8344 ms/op 3.6158 ms/op 1.34
computeProposerBoostScoreFromBalances 460.95 us/op 407.46 us/op 1.13
altair processAttestation - 250000 vs - 7PWei normalcase 4.5158 ms/op 3.1375 ms/op 1.44
altair processAttestation - 250000 vs - 7PWei worstcase 6.5805 ms/op 4.5934 ms/op 1.43
altair processAttestation - setStatus - 1/6 committees join 214.94 us/op 172.14 us/op 1.25
altair processAttestation - setStatus - 1/3 committees join 383.87 us/op 324.19 us/op 1.18
altair processAttestation - setStatus - 1/2 committees join 497.00 us/op 419.53 us/op 1.18
altair processAttestation - setStatus - 2/3 committees join 787.73 us/op 552.66 us/op 1.43
altair processAttestation - setStatus - 4/5 committees join 1.0967 ms/op 744.61 us/op 1.47
altair processAttestation - setStatus - 100% committees join 1.1611 ms/op 877.79 us/op 1.32
altair processBlock - 250000 vs - 7PWei normalcase 15.937 ms/op 10.454 ms/op 1.52
altair processBlock - 250000 vs - 7PWei normalcase hashState 19.262 ms/op 18.554 ms/op 1.04
altair processBlock - 250000 vs - 7PWei worstcase 43.609 ms/op 40.492 ms/op 1.08
altair processBlock - 250000 vs - 7PWei worstcase hashState 73.504 ms/op 65.163 ms/op 1.13
phase0 processBlock - 250000 vs - 7PWei normalcase 2.9993 ms/op 3.2453 ms/op 0.92
phase0 processBlock - 250000 vs - 7PWei worstcase 33.392 ms/op 32.063 ms/op 1.04
altair processEth1Data - 250000 vs - 7PWei normalcase 638.42 us/op 574.48 us/op 1.11
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 16.851 us/op 17.432 us/op 0.97
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 56.724 us/op 80.922 us/op 0.70
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 23.169 us/op 26.864 us/op 0.86
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 19.222 us/op 14.381 us/op 1.34
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 204.75 us/op 226.38 us/op 0.90
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.2985 ms/op 1.4674 ms/op 0.88
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 2.1787 ms/op 1.6772 ms/op 1.30
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.6457 ms/op 2.3613 ms/op 0.70
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 4.0498 ms/op 4.3978 ms/op 0.92
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 3.1398 ms/op 2.7087 ms/op 1.16
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 8.1175 ms/op 5.2722 ms/op 1.54
Tree 40 250000 create 476.10 ms/op 425.26 ms/op 1.12
Tree 40 250000 get(125000) 211.67 ns/op 218.75 ns/op 0.97
Tree 40 250000 set(125000) 1.0334 us/op 1.0415 us/op 0.99
Tree 40 250000 toArray() 22.530 ms/op 23.505 ms/op 0.96
Tree 40 250000 iterate all - toArray() + loop 21.918 ms/op 24.346 ms/op 0.90
Tree 40 250000 iterate all - get(i) 73.832 ms/op 76.561 ms/op 0.96
MutableVector 250000 create 15.034 ms/op 16.883 ms/op 0.89
MutableVector 250000 get(125000) 7.0030 ns/op 6.9020 ns/op 1.01
MutableVector 250000 set(125000) 323.52 ns/op 255.25 ns/op 1.27
MutableVector 250000 toArray() 4.2981 ms/op 4.0431 ms/op 1.06
MutableVector 250000 iterate all - toArray() + loop 3.8329 ms/op 4.1334 ms/op 0.93
MutableVector 250000 iterate all - get(i) 1.5611 ms/op 1.5601 ms/op 1.00
Array 250000 create 3.3848 ms/op 3.4001 ms/op 1.00
Array 250000 clone - spread 1.1520 ms/op 1.0728 ms/op 1.07
Array 250000 get(125000) 0.60400 ns/op 0.54900 ns/op 1.10
Array 250000 set(125000) 0.68900 ns/op 0.61200 ns/op 1.13
Array 250000 iterate all - loop 90.394 us/op 87.684 us/op 1.03
effectiveBalanceIncrements clone Uint8Array 300000 44.195 us/op 35.926 us/op 1.23
effectiveBalanceIncrements clone MutableVector 300000 272.00 ns/op 286.00 ns/op 0.95
effectiveBalanceIncrements rw all Uint8Array 300000 193.02 us/op 183.47 us/op 1.05
effectiveBalanceIncrements rw all MutableVector 300000 137.18 ms/op 90.310 ms/op 1.52
phase0 afterProcessEpoch - 250000 vs - 7PWei 131.09 ms/op 120.67 ms/op 1.09
phase0 beforeProcessEpoch - 250000 vs - 7PWei 44.005 ms/op 44.930 ms/op 0.98
altair processEpoch - mainnet_e81889 350.91 ms/op 330.67 ms/op 1.06
mainnet_e81889 - altair beforeProcessEpoch 69.165 ms/op 66.133 ms/op 1.05
mainnet_e81889 - altair processJustificationAndFinalization 21.964 us/op 16.275 us/op 1.35
mainnet_e81889 - altair processInactivityUpdates 7.9669 ms/op 5.2784 ms/op 1.51
mainnet_e81889 - altair processRewardsAndPenalties 55.159 ms/op 73.275 ms/op 0.75
mainnet_e81889 - altair processRegistryUpdates 5.0630 us/op 2.6420 us/op 1.92
mainnet_e81889 - altair processSlashings 1.1140 us/op 925.00 ns/op 1.20
mainnet_e81889 - altair processEth1DataReset 1.0350 us/op 591.00 ns/op 1.75
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.9594 ms/op 1.5407 ms/op 1.27
mainnet_e81889 - altair processSlashingsReset 8.3040 us/op 5.0480 us/op 1.65
mainnet_e81889 - altair processRandaoMixesReset 11.688 us/op 5.0980 us/op 2.29
mainnet_e81889 - altair processHistoricalRootsUpdate 2.4030 us/op 878.00 ns/op 2.74
mainnet_e81889 - altair processParticipationFlagUpdates 5.4080 us/op 2.6680 us/op 2.03
mainnet_e81889 - altair processSyncCommitteeUpdates 1.5640 us/op 654.00 ns/op 2.39
mainnet_e81889 - altair afterProcessEpoch 151.82 ms/op 146.78 ms/op 1.03
capella processEpoch - mainnet_e217614 1.0974 s/op 1.1904 s/op 0.92
mainnet_e217614 - capella beforeProcessEpoch 262.72 ms/op 299.15 ms/op 0.88
mainnet_e217614 - capella processJustificationAndFinalization 20.330 us/op 19.386 us/op 1.05
mainnet_e217614 - capella processInactivityUpdates 17.920 ms/op 23.865 ms/op 0.75
mainnet_e217614 - capella processRewardsAndPenalties 313.29 ms/op 327.07 ms/op 0.96
mainnet_e217614 - capella processRegistryUpdates 21.828 us/op 35.613 us/op 0.61
mainnet_e217614 - capella processSlashings 809.00 ns/op 1.0210 us/op 0.79
mainnet_e217614 - capella processEth1DataReset 938.00 ns/op 705.00 ns/op 1.33
mainnet_e217614 - capella processEffectiveBalanceUpdates 4.5405 ms/op 4.3704 ms/op 1.04
mainnet_e217614 - capella processSlashingsReset 3.7480 us/op 4.2670 us/op 0.88
mainnet_e217614 - capella processRandaoMixesReset 4.6010 us/op 7.0730 us/op 0.65
mainnet_e217614 - capella processHistoricalRootsUpdate 707.00 ns/op 852.00 ns/op 0.83
mainnet_e217614 - capella processParticipationFlagUpdates 4.7660 us/op 2.2280 us/op 2.14
mainnet_e217614 - capella afterProcessEpoch 330.55 ms/op 325.38 ms/op 1.02
phase0 processEpoch - mainnet_e58758 358.83 ms/op 394.79 ms/op 0.91
mainnet_e58758 - phase0 beforeProcessEpoch 150.21 ms/op 131.38 ms/op 1.14
mainnet_e58758 - phase0 processJustificationAndFinalization 16.145 us/op 17.402 us/op 0.93
mainnet_e58758 - phase0 processRewardsAndPenalties 66.664 ms/op 60.867 ms/op 1.10
mainnet_e58758 - phase0 processRegistryUpdates 12.068 us/op 10.725 us/op 1.13
mainnet_e58758 - phase0 processSlashings 543.00 ns/op 586.00 ns/op 0.93
mainnet_e58758 - phase0 processEth1DataReset 467.00 ns/op 453.00 ns/op 1.03
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.5388 ms/op 2.0083 ms/op 0.77
mainnet_e58758 - phase0 processSlashingsReset 2.1260 us/op 2.3180 us/op 0.92
mainnet_e58758 - phase0 processRandaoMixesReset 3.6940 us/op 3.7540 us/op 0.98
mainnet_e58758 - phase0 processHistoricalRootsUpdate 456.00 ns/op 424.00 ns/op 1.08
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.7910 us/op 4.5850 us/op 0.83
mainnet_e58758 - phase0 afterProcessEpoch 96.836 ms/op 102.55 ms/op 0.94
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.2372 ms/op 1.5509 ms/op 0.80
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.4340 ms/op 1.7861 ms/op 0.80
altair processInactivityUpdates - 250000 normalcase 24.442 ms/op 21.680 ms/op 1.13
altair processInactivityUpdates - 250000 worstcase 23.528 ms/op 22.244 ms/op 1.06
phase0 processRegistryUpdates - 250000 normalcase 10.993 us/op 9.5350 us/op 1.15
phase0 processRegistryUpdates - 250000 badcase_full_deposits 403.42 us/op 445.77 us/op 0.90
phase0 processRegistryUpdates - 250000 worstcase 0.5 131.26 ms/op 135.93 ms/op 0.97
altair processRewardsAndPenalties - 250000 normalcase 74.538 ms/op 65.859 ms/op 1.13
altair processRewardsAndPenalties - 250000 worstcase 71.821 ms/op 68.807 ms/op 1.04
phase0 getAttestationDeltas - 250000 normalcase 8.0253 ms/op 7.8307 ms/op 1.02
phase0 getAttestationDeltas - 250000 worstcase 8.1247 ms/op 8.5827 ms/op 0.95
phase0 processSlashings - 250000 worstcase 2.1718 ms/op 2.5368 ms/op 0.86
altair processSyncCommitteeUpdates - 250000 144.30 ms/op 167.57 ms/op 0.86
BeaconState.hashTreeRoot - No change 253.00 ns/op 282.00 ns/op 0.90
BeaconState.hashTreeRoot - 1 full validator 51.677 us/op 58.077 us/op 0.89
BeaconState.hashTreeRoot - 32 full validator 516.14 us/op 575.15 us/op 0.90
BeaconState.hashTreeRoot - 512 full validator 5.0409 ms/op 6.0629 ms/op 0.83
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 65.310 us/op 74.748 us/op 0.87
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 889.14 us/op 984.48 us/op 0.90
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 11.954 ms/op 13.350 ms/op 0.90
BeaconState.hashTreeRoot - 1 balances 50.923 us/op 51.132 us/op 1.00
BeaconState.hashTreeRoot - 32 balances 479.51 us/op 483.35 us/op 0.99
BeaconState.hashTreeRoot - 512 balances 4.5601 ms/op 4.9445 ms/op 0.92
BeaconState.hashTreeRoot - 250000 balances 71.444 ms/op 79.462 ms/op 0.90
aggregationBits - 2048 els - zipIndexesInBitList 16.837 us/op 23.433 us/op 0.72
regular array get 100000 times 44.278 us/op 46.124 us/op 0.96
wrappedArray get 100000 times 44.850 us/op 37.734 us/op 1.19
arrayWithProxy get 100000 times 14.526 ms/op 15.209 ms/op 0.96
ssz.Root.equals 216.00 ns/op 281.00 ns/op 0.77
byteArrayEquals 207.00 ns/op 295.00 ns/op 0.70
shuffle list - 16384 els 6.9866 ms/op 7.4069 ms/op 0.94
shuffle list - 250000 els 104.18 ms/op 108.94 ms/op 0.96
processSlot - 1 slots 9.1410 us/op 10.436 us/op 0.88
processSlot - 32 slots 1.3504 ms/op 1.6844 ms/op 0.80
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 55.756 ms/op 53.168 ms/op 1.05
getCommitteeAssignments - req 1 vs - 250000 vc 2.7958 ms/op 2.6608 ms/op 1.05
getCommitteeAssignments - req 100 vs - 250000 vc 3.9357 ms/op 3.8550 ms/op 1.02
getCommitteeAssignments - req 1000 vs - 250000 vc 4.1776 ms/op 4.2540 ms/op 0.98
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 5.1700 ns/op 5.5100 ns/op 0.94
state getBlockRootAtSlot - 250000 vs - 7PWei 576.91 ns/op 697.68 ns/op 0.83
computeProposers - vc 250000 9.4655 ms/op 9.7738 ms/op 0.97
computeEpochShuffling - vc 250000 109.17 ms/op 110.29 ms/op 0.99
getNextSyncCommittee - vc 250000 157.80 ms/op 163.91 ms/op 0.96
computeSigningRoot for AttestationData 13.906 us/op 14.543 us/op 0.96
hash AttestationData serialized data then Buffer.toString(base64) 2.4668 us/op 2.4617 us/op 1.00
toHexString serialized data 1.6576 us/op 1.2478 us/op 1.33
Buffer.toString(base64) 286.66 ns/op 257.69 ns/op 1.11

by benchmarkbot/action

@nazarhussain
Copy link
Contributor

@wemeetagain
Copy link
Member Author

FYI the "red" in the attached image only shows polyfill/transpilation support rather than native browser/engine support.
All ES2021 (and below) features we're using are supported in all major browsers and engines.

@nflaig
Copy link
Member

nflaig commented Aug 9, 2023

We have ES version badges in all README files (README.md and packages/*/README.md), might wanna update those

![ES Version](https://img.shields.io/badge/ES-2020-yellow)

@wemeetagain wemeetagain merged commit 042adb1 into unstable Aug 10, 2023
11 checks passed
@wemeetagain wemeetagain deleted the cayman/target-es2021 branch August 10, 2023 15: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.

3 participants