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

deps: upgrade tyepscript to 5.6 #7160

Draft
wants to merge 1 commit into
base: unstable
Choose a base branch
from
Draft

Conversation

nazarhussain
Copy link
Contributor

Motivation

Keep the deps updated.

Description

Use latest features provided by Typescript. See the comments below.

Steps to test or reproduce

  • Run all tests

@nazarhussain nazarhussain requested a review from a team as a code owner October 14, 2024 12:29
@nazarhussain nazarhussain self-assigned this Oct 14, 2024
@@ -225,7 +225,7 @@ export class Eth1DepositDataTracker {

// If remoteFollowBlock is not at or beyond deployBlock, there is no need to
// fetch and track any deposit data yet
if (remoteFollowBlock < this.eth1Provider.deployBlock ?? 0) return true;
if (remoteFollowBlock < (this.eth1Provider.deployBlock ?? 0)) return true;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

package.json Outdated Show resolved Hide resolved
Comment on lines +10 to +11
"${configDir}/node_modules/@types",
"${configDir}/types"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

"${configDir}/node_modules/@types",
"${configDir}/types"
],
"noCheck": false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For building we can skip type checks as we have seperate task for check-types. Saved 30% of build time on my machine.

https://devblogs.microsoft.com/typescript/announcing-typescript-5-6/#the---nocheck-option

@nazarhussain
Copy link
Contributor Author

We need to put this on hold, until vite-plugin-dts supports latest version of TS. It's used to generate the .d.ts files for the bundle js.

@nazarhussain nazarhussain marked this pull request as draft October 14, 2024 13:01
Copy link
Contributor

Performance Report

✔️ no performance regression detected

🚀🚀 Significant benchmark improvement detected

Benchmark suite Current: 5c656e0 Previous: d37bdb0 Ratio
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.6771 ms/op 9.6080 ms/op 0.17
Full benchmark results
Benchmark suite Current: 5c656e0 Previous: d37bdb0 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 2.0125 ms/op 2.7476 ms/op 0.73
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 45.341 us/op 80.185 us/op 0.57
BLS verify - blst 862.74 us/op 1.0552 ms/op 0.82
BLS verifyMultipleSignatures 3 - blst 1.4228 ms/op 1.3518 ms/op 1.05
BLS verifyMultipleSignatures 8 - blst 2.0595 ms/op 1.9605 ms/op 1.05
BLS verifyMultipleSignatures 32 - blst 5.1805 ms/op 6.2975 ms/op 0.82
BLS verifyMultipleSignatures 64 - blst 10.603 ms/op 11.041 ms/op 0.96
BLS verifyMultipleSignatures 128 - blst 16.893 ms/op 18.654 ms/op 0.91
BLS deserializing 10000 signatures 654.45 ms/op 714.52 ms/op 0.92
BLS deserializing 100000 signatures 6.4170 s/op 6.9907 s/op 0.92
BLS verifyMultipleSignatures - same message - 3 - blst 981.08 us/op 1.0918 ms/op 0.90
BLS verifyMultipleSignatures - same message - 8 - blst 1.0690 ms/op 1.0658 ms/op 1.00
BLS verifyMultipleSignatures - same message - 32 - blst 1.6205 ms/op 1.8954 ms/op 0.85
BLS verifyMultipleSignatures - same message - 64 - blst 2.4876 ms/op 2.7597 ms/op 0.90
BLS verifyMultipleSignatures - same message - 128 - blst 4.1325 ms/op 4.2411 ms/op 0.97
BLS aggregatePubkeys 32 - blst 18.269 us/op 19.168 us/op 0.95
BLS aggregatePubkeys 128 - blst 63.448 us/op 68.010 us/op 0.93
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 59.694 ms/op 62.542 ms/op 0.95
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 51.725 ms/op 56.029 ms/op 0.92
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 42.100 ms/op 50.636 ms/op 0.83
getSlashingsAndExits - default max 96.228 us/op 106.45 us/op 0.90
getSlashingsAndExits - 2k 276.54 us/op 323.09 us/op 0.86
proposeBlockBody type=full, size=empty 5.3819 ms/op 6.7640 ms/op 0.80
isKnown best case - 1 super set check 487.00 ns/op 323.00 ns/op 1.51
isKnown normal case - 2 super set checks 478.00 ns/op 316.00 ns/op 1.51
isKnown worse case - 16 super set checks 473.00 ns/op 295.00 ns/op 1.60
InMemoryCheckpointStateCache - add get delete 2.8570 us/op 3.1890 us/op 0.90
updateUnfinalizedPubkeys - updating 10 pubkeys 1.0604 ms/op 1.2347 ms/op 0.86
updateUnfinalizedPubkeys - updating 100 pubkeys 3.9868 ms/op 4.5262 ms/op 0.88
updateUnfinalizedPubkeys - updating 1000 pubkeys 40.763 ms/op 59.492 ms/op 0.69
validate api signedAggregateAndProof - struct 2.0324 ms/op 1.6519 ms/op 1.23
validate gossip signedAggregateAndProof - struct 1.8840 ms/op 1.5385 ms/op 1.22
batch validate gossip attestation - vc 640000 - chunk 32 131.83 us/op 139.66 us/op 0.94
batch validate gossip attestation - vc 640000 - chunk 64 111.91 us/op 120.66 us/op 0.93
batch validate gossip attestation - vc 640000 - chunk 128 110.85 us/op 117.95 us/op 0.94
batch validate gossip attestation - vc 640000 - chunk 256 106.98 us/op 113.67 us/op 0.94
pickEth1Vote - no votes 1.0524 ms/op 1.1652 ms/op 0.90
pickEth1Vote - max votes 8.6255 ms/op 7.8237 ms/op 1.10
pickEth1Vote - Eth1Data hashTreeRoot value x2048 19.331 ms/op 16.307 ms/op 1.19
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 27.374 ms/op 23.186 ms/op 1.18
pickEth1Vote - Eth1Data fastSerialize value x2048 392.13 us/op 496.62 us/op 0.79
pickEth1Vote - Eth1Data fastSerialize tree x2048 2.1664 ms/op 4.2911 ms/op 0.50
bytes32 toHexString 729.00 ns/op 546.00 ns/op 1.34
bytes32 Buffer.toString(hex) 480.00 ns/op 275.00 ns/op 1.75
bytes32 Buffer.toString(hex) from Uint8Array 681.00 ns/op 448.00 ns/op 1.52
bytes32 Buffer.toString(hex) + 0x 495.00 ns/op 272.00 ns/op 1.82
Object access 1 prop 0.38100 ns/op 0.15100 ns/op 2.52
Map access 1 prop 0.34400 ns/op 0.14100 ns/op 2.44
Object get x1000 5.2430 ns/op 5.9910 ns/op 0.88
Map get x1000 5.8980 ns/op 6.4530 ns/op 0.91
Object set x1000 25.540 ns/op 35.462 ns/op 0.72
Map set x1000 20.779 ns/op 25.028 ns/op 0.83
Return object 10000 times 0.30530 ns/op 0.30060 ns/op 1.02
Throw Error 10000 times 2.8373 us/op 3.4073 us/op 0.83
toHex 124.11 ns/op 171.69 ns/op 0.72
Buffer.from 119.45 ns/op 156.86 ns/op 0.76
shared Buffer 81.344 ns/op 96.247 ns/op 0.85
fastMsgIdFn sha256 / 200 bytes 2.0160 us/op 2.4180 us/op 0.83
fastMsgIdFn h32 xxhash / 200 bytes 527.00 ns/op 293.00 ns/op 1.80
fastMsgIdFn h64 xxhash / 200 bytes 469.00 ns/op 275.00 ns/op 1.71
fastMsgIdFn sha256 / 1000 bytes 6.1250 us/op 7.3230 us/op 0.84
fastMsgIdFn h32 xxhash / 1000 bytes 595.00 ns/op 416.00 ns/op 1.43
fastMsgIdFn h64 xxhash / 1000 bytes 534.00 ns/op 356.00 ns/op 1.50
fastMsgIdFn sha256 / 10000 bytes 50.470 us/op 64.942 us/op 0.78
fastMsgIdFn h32 xxhash / 10000 bytes 1.9630 us/op 1.9460 us/op 1.01
fastMsgIdFn h64 xxhash / 10000 bytes 1.3550 us/op 1.2580 us/op 1.08
send data - 1000 256B messages 10.625 ms/op 14.210 ms/op 0.75
send data - 1000 512B messages 14.487 ms/op 18.034 ms/op 0.80
send data - 1000 1024B messages 25.152 ms/op 29.206 ms/op 0.86
send data - 1000 1200B messages 26.160 ms/op 28.542 ms/op 0.92
send data - 1000 2048B messages 31.892 ms/op 35.521 ms/op 0.90
send data - 1000 4096B messages 28.220 ms/op 33.970 ms/op 0.83
send data - 1000 16384B messages 68.305 ms/op 71.594 ms/op 0.95
send data - 1000 65536B messages 252.52 ms/op 246.28 ms/op 1.03
enrSubnets - fastDeserialize 64 bits 1.2380 us/op 1.1390 us/op 1.09
enrSubnets - ssz BitVector 64 bits 548.00 ns/op 378.00 ns/op 1.45
enrSubnets - fastDeserialize 4 bits 337.00 ns/op 194.00 ns/op 1.74
enrSubnets - ssz BitVector 4 bits 584.00 ns/op 413.00 ns/op 1.41
prioritizePeers score -10:0 att 32-0.1 sync 2-0 150.35 us/op 195.59 us/op 0.77
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 143.23 us/op 173.41 us/op 0.83
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 287.22 us/op 347.48 us/op 0.83
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 426.31 us/op 514.41 us/op 0.83
prioritizePeers score 0:0 att 64-1 sync 4-1 723.05 us/op 934.25 us/op 0.77
array of 16000 items push then shift 1.2442 us/op 1.6587 us/op 0.75
LinkedList of 16000 items push then shift 7.3640 ns/op 7.5550 ns/op 0.97
array of 16000 items push then pop 97.857 ns/op 145.47 ns/op 0.67
LinkedList of 16000 items push then pop 6.1250 ns/op 7.4430 ns/op 0.82
array of 24000 items push then shift 1.7900 us/op 2.4685 us/op 0.73
LinkedList of 24000 items push then shift 6.8260 ns/op 7.7110 ns/op 0.89
array of 24000 items push then pop 105.69 ns/op 145.96 ns/op 0.72
LinkedList of 24000 items push then pop 6.0630 ns/op 7.7940 ns/op 0.78
intersect bitArray bitLen 8 5.1920 ns/op 6.6380 ns/op 0.78
intersect array and set length 8 36.412 ns/op 47.909 ns/op 0.76
intersect bitArray bitLen 128 25.274 ns/op 29.394 ns/op 0.86
intersect array and set length 128 534.86 ns/op 687.80 ns/op 0.78
bitArray.getTrueBitIndexes() bitLen 128 2.3470 us/op 2.0120 us/op 1.17
bitArray.getTrueBitIndexes() bitLen 248 3.9780 us/op 3.8600 us/op 1.03
bitArray.getTrueBitIndexes() bitLen 512 6.7070 us/op 8.1200 us/op 0.83
Buffer.concat 32 items 997.00 ns/op 932.00 ns/op 1.07
Uint8Array.set 32 items 1.3660 us/op 1.5410 us/op 0.89
Buffer.copy 1.5170 us/op 1.7400 us/op 0.87
Uint8Array.set - with subarray 2.8120 us/op 2.7380 us/op 1.03
Uint8Array.set - without subarray 1.4750 us/op 1.7480 us/op 0.84
getUint32 - dataview 403.00 ns/op 251.00 ns/op 1.61
getUint32 - manual 337.00 ns/op 162.00 ns/op 2.08
Set add up to 64 items then delete first 1.6680 us/op 2.2052 us/op 0.76
OrderedSet add up to 64 items then delete first 2.7028 us/op 3.2819 us/op 0.82
Set add up to 64 items then delete last 1.9652 us/op 2.5264 us/op 0.78
OrderedSet add up to 64 items then delete last 2.9864 us/op 3.7398 us/op 0.80
Set add up to 64 items then delete middle 2.0321 us/op 2.5254 us/op 0.80
OrderedSet add up to 64 items then delete middle 4.2121 us/op 5.2466 us/op 0.80
Set add up to 128 items then delete first 3.7019 us/op 5.0441 us/op 0.73
OrderedSet add up to 128 items then delete first 5.8273 us/op 7.8456 us/op 0.74
Set add up to 128 items then delete last 3.5698 us/op 4.9242 us/op 0.72
OrderedSet add up to 128 items then delete last 5.8156 us/op 7.3923 us/op 0.79
Set add up to 128 items then delete middle 3.6995 us/op 4.8184 us/op 0.77
OrderedSet add up to 128 items then delete middle 11.063 us/op 13.760 us/op 0.80
Set add up to 256 items then delete first 7.4284 us/op 10.572 us/op 0.70
OrderedSet add up to 256 items then delete first 11.804 us/op 15.613 us/op 0.76
Set add up to 256 items then delete last 7.1101 us/op 9.5145 us/op 0.75
OrderedSet add up to 256 items then delete last 11.044 us/op 14.024 us/op 0.79
Set add up to 256 items then delete middle 7.2719 us/op 9.3054 us/op 0.78
OrderedSet add up to 256 items then delete middle 33.966 us/op 40.017 us/op 0.85
transfer serialized Status (84 B) 1.3710 us/op 1.2670 us/op 1.08
copy serialized Status (84 B) 1.1760 us/op 1.0680 us/op 1.10
transfer serialized SignedVoluntaryExit (112 B) 1.6420 us/op 1.3450 us/op 1.22
copy serialized SignedVoluntaryExit (112 B) 1.4100 us/op 1.1390 us/op 1.24
transfer serialized ProposerSlashing (416 B) 2.5010 us/op 1.5160 us/op 1.65
copy serialized ProposerSlashing (416 B) 2.4840 us/op 1.9120 us/op 1.30
transfer serialized Attestation (485 B) 2.3650 us/op 1.8730 us/op 1.26
copy serialized Attestation (485 B) 2.0540 us/op 1.6680 us/op 1.23
transfer serialized AttesterSlashing (33232 B) 1.6860 us/op 2.5780 us/op 0.65
copy serialized AttesterSlashing (33232 B) 5.0280 us/op 4.9710 us/op 1.01
transfer serialized Small SignedBeaconBlock (128000 B) 2.6010 us/op 2.0860 us/op 1.25
copy serialized Small SignedBeaconBlock (128000 B) 13.141 us/op 15.635 us/op 0.84
transfer serialized Avg SignedBeaconBlock (200000 B) 3.1530 us/op 2.8540 us/op 1.10
copy serialized Avg SignedBeaconBlock (200000 B) 18.380 us/op 20.508 us/op 0.90
transfer serialized BlobsSidecar (524380 B) 2.5490 us/op 2.1800 us/op 1.17
copy serialized BlobsSidecar (524380 B) 71.705 us/op 93.620 us/op 0.77
transfer serialized Big SignedBeaconBlock (1000000 B) 2.8430 us/op 2.4690 us/op 1.15
copy serialized Big SignedBeaconBlock (1000000 B) 191.81 us/op 154.68 us/op 1.24
pass gossip attestations to forkchoice per slot 2.3689 ms/op 2.7914 ms/op 0.85
forkChoice updateHead vc 100000 bc 64 eq 0 345.12 us/op 611.82 us/op 0.56
forkChoice updateHead vc 600000 bc 64 eq 0 2.3688 ms/op 3.5536 ms/op 0.67
forkChoice updateHead vc 1000000 bc 64 eq 0 3.6820 ms/op 4.7344 ms/op 0.78
forkChoice updateHead vc 600000 bc 320 eq 0 2.0782 ms/op 2.7598 ms/op 0.75
forkChoice updateHead vc 600000 bc 1200 eq 0 2.2005 ms/op 2.8303 ms/op 0.78
forkChoice updateHead vc 600000 bc 7200 eq 0 2.8665 ms/op 3.1648 ms/op 0.91
forkChoice updateHead vc 600000 bc 64 eq 1000 8.9971 ms/op 10.061 ms/op 0.89
forkChoice updateHead vc 600000 bc 64 eq 10000 8.8665 ms/op 10.509 ms/op 0.84
forkChoice updateHead vc 600000 bc 64 eq 300000 11.170 ms/op 13.348 ms/op 0.84
computeDeltas 500000 validators 300 proto nodes 3.2817 ms/op 3.9390 ms/op 0.83
computeDeltas 500000 validators 1200 proto nodes 3.4192 ms/op 4.0326 ms/op 0.85
computeDeltas 500000 validators 7200 proto nodes 3.4187 ms/op 3.9571 ms/op 0.86
computeDeltas 750000 validators 300 proto nodes 5.0380 ms/op 6.0330 ms/op 0.84
computeDeltas 750000 validators 1200 proto nodes 4.8942 ms/op 6.1541 ms/op 0.80
computeDeltas 750000 validators 7200 proto nodes 5.0185 ms/op 6.2275 ms/op 0.81
computeDeltas 1400000 validators 300 proto nodes 9.3435 ms/op 11.587 ms/op 0.81
computeDeltas 1400000 validators 1200 proto nodes 9.2019 ms/op 11.649 ms/op 0.79
computeDeltas 1400000 validators 7200 proto nodes 9.5042 ms/op 11.614 ms/op 0.82
computeDeltas 2100000 validators 300 proto nodes 13.894 ms/op 17.616 ms/op 0.79
computeDeltas 2100000 validators 1200 proto nodes 14.383 ms/op 17.409 ms/op 0.83
computeDeltas 2100000 validators 7200 proto nodes 14.470 ms/op 17.989 ms/op 0.80
altair processAttestation - 250000 vs - 7PWei normalcase 2.0027 ms/op 1.6642 ms/op 1.20
altair processAttestation - 250000 vs - 7PWei worstcase 2.9320 ms/op 2.5261 ms/op 1.16
altair processAttestation - setStatus - 1/6 committees join 78.640 us/op 93.740 us/op 0.84
altair processAttestation - setStatus - 1/3 committees join 147.38 us/op 174.90 us/op 0.84
altair processAttestation - setStatus - 1/2 committees join 246.00 us/op 249.59 us/op 0.99
altair processAttestation - setStatus - 2/3 committees join 266.53 us/op 328.97 us/op 0.81
altair processAttestation - setStatus - 4/5 committees join 419.87 us/op 483.20 us/op 0.87
altair processAttestation - setStatus - 100% committees join 482.56 us/op 575.41 us/op 0.84
altair processBlock - 250000 vs - 7PWei normalcase 3.0314 ms/op 5.7144 ms/op 0.53
altair processBlock - 250000 vs - 7PWei normalcase hashState 24.037 ms/op 25.768 ms/op 0.93
altair processBlock - 250000 vs - 7PWei worstcase 31.117 ms/op 36.829 ms/op 0.84
altair processBlock - 250000 vs - 7PWei worstcase hashState 77.794 ms/op 73.998 ms/op 1.05
phase0 processBlock - 250000 vs - 7PWei normalcase 1.8377 ms/op 2.4303 ms/op 0.76
phase0 processBlock - 250000 vs - 7PWei worstcase 23.445 ms/op 25.598 ms/op 0.92
altair processEth1Data - 250000 vs - 7PWei normalcase 275.57 us/op 337.42 us/op 0.82
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 6.5950 us/op 5.8120 us/op 1.13
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 31.296 us/op 36.373 us/op 0.86
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 10.295 us/op 10.710 us/op 0.96
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 6.6990 us/op 7.1860 us/op 0.93
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 138.12 us/op 172.08 us/op 0.80
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 895.67 us/op 1.6278 ms/op 0.55
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.2345 ms/op 1.6714 ms/op 0.74
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.3114 ms/op 1.4420 ms/op 0.91
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 4.3926 ms/op 3.5320 ms/op 1.24
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.1830 ms/op 2.1378 ms/op 0.55
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 2.8969 ms/op 3.7022 ms/op 0.78
Tree 40 250000 create 194.20 ms/op 222.91 ms/op 0.87
Tree 40 250000 get(125000) 127.83 ns/op 155.08 ns/op 0.82
Tree 40 250000 set(125000) 586.34 ns/op 683.69 ns/op 0.86
Tree 40 250000 toArray() 21.137 ms/op 20.245 ms/op 1.04
Tree 40 250000 iterate all - toArray() + loop 16.068 ms/op 19.674 ms/op 0.82
Tree 40 250000 iterate all - get(i) 45.953 ms/op 55.397 ms/op 0.83
Array 250000 create 2.3507 ms/op 2.8607 ms/op 0.82
Array 250000 clone - spread 1.1893 ms/op 1.4130 ms/op 0.84
Array 250000 get(125000) 0.58900 ns/op 0.42800 ns/op 1.38
Array 250000 set(125000) 0.58600 ns/op 0.44500 ns/op 1.32
Array 250000 iterate all - loop 76.912 us/op 84.961 us/op 0.91
phase0 afterProcessEpoch - 250000 vs - 7PWei 42.352 ms/op 50.721 ms/op 0.83
Array.fill - length 1000000 2.5028 ms/op 3.5051 ms/op 0.71
Array push - length 1000000 16.122 ms/op 17.706 ms/op 0.91
Array.get 0.25885 ns/op 0.27539 ns/op 0.94
Uint8Array.get 0.33779 ns/op 0.43945 ns/op 0.77
phase0 beforeProcessEpoch - 250000 vs - 7PWei 14.869 ms/op 18.093 ms/op 0.82
altair processEpoch - mainnet_e81889 243.92 ms/op 278.19 ms/op 0.88
mainnet_e81889 - altair beforeProcessEpoch 17.994 ms/op 20.030 ms/op 0.90
mainnet_e81889 - altair processJustificationAndFinalization 13.660 us/op 14.213 us/op 0.96
mainnet_e81889 - altair processInactivityUpdates 5.4665 ms/op 5.7311 ms/op 0.95
mainnet_e81889 - altair processRewardsAndPenalties 54.781 ms/op 55.869 ms/op 0.98
mainnet_e81889 - altair processRegistryUpdates 2.2990 us/op 2.2930 us/op 1.00
mainnet_e81889 - altair processSlashings 775.00 ns/op 449.00 ns/op 1.73
mainnet_e81889 - altair processEth1DataReset 811.00 ns/op 773.00 ns/op 1.05
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.0447 ms/op 3.2627 ms/op 0.32
mainnet_e81889 - altair processSlashingsReset 2.6390 us/op 10.908 us/op 0.24
mainnet_e81889 - altair processRandaoMixesReset 2.8040 us/op 7.4220 us/op 0.38
mainnet_e81889 - altair processHistoricalRootsUpdate 739.00 ns/op 1.7530 us/op 0.42
mainnet_e81889 - altair processParticipationFlagUpdates 4.2260 us/op 8.6660 us/op 0.49
mainnet_e81889 - altair processSyncCommitteeUpdates 804.00 ns/op 1.6530 us/op 0.49
mainnet_e81889 - altair afterProcessEpoch 42.514 ms/op 58.071 ms/op 0.73
capella processEpoch - mainnet_e217614 1.0280 s/op 1.5775 s/op 0.65
mainnet_e217614 - capella beforeProcessEpoch 70.555 ms/op 151.79 ms/op 0.46
mainnet_e217614 - capella processJustificationAndFinalization 12.709 us/op 43.174 us/op 0.29
mainnet_e217614 - capella processInactivityUpdates 15.382 ms/op 34.807 ms/op 0.44
mainnet_e217614 - capella processRewardsAndPenalties 249.78 ms/op 354.85 ms/op 0.70
mainnet_e217614 - capella processRegistryUpdates 13.071 us/op 31.060 us/op 0.42
mainnet_e217614 - capella processSlashings 792.00 ns/op 668.00 ns/op 1.19
mainnet_e217614 - capella processEth1DataReset 764.00 ns/op 575.00 ns/op 1.33
mainnet_e217614 - capella processEffectiveBalanceUpdates 14.642 ms/op 12.854 ms/op 1.14
mainnet_e217614 - capella processSlashingsReset 2.3870 us/op 3.5150 us/op 0.68
mainnet_e217614 - capella processRandaoMixesReset 4.5380 us/op 3.6510 us/op 1.24
mainnet_e217614 - capella processHistoricalRootsUpdate 850.00 ns/op 2.0300 us/op 0.42
mainnet_e217614 - capella processParticipationFlagUpdates 4.3080 us/op 7.9960 us/op 0.54
mainnet_e217614 - capella afterProcessEpoch 103.44 ms/op 142.00 ms/op 0.73
phase0 processEpoch - mainnet_e58758 244.78 ms/op 343.46 ms/op 0.71
mainnet_e58758 - phase0 beforeProcessEpoch 66.279 ms/op 102.09 ms/op 0.65
mainnet_e58758 - phase0 processJustificationAndFinalization 14.569 us/op 37.066 us/op 0.39
mainnet_e58758 - phase0 processRewardsAndPenalties 23.166 ms/op 48.583 ms/op 0.48
mainnet_e58758 - phase0 processRegistryUpdates 4.3700 us/op 16.297 us/op 0.27
mainnet_e58758 - phase0 processSlashings 746.00 ns/op 789.00 ns/op 0.95
mainnet_e58758 - phase0 processEth1DataReset 681.00 ns/op 1.5690 us/op 0.43
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 2.0539 ms/op 1.9013 ms/op 1.08
mainnet_e58758 - phase0 processSlashingsReset 3.0070 us/op 3.4600 us/op 0.87
mainnet_e58758 - phase0 processRandaoMixesReset 3.2540 us/op 5.2280 us/op 0.62
mainnet_e58758 - phase0 processHistoricalRootsUpdate 669.00 ns/op 845.00 ns/op 0.79
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.2600 us/op 7.9580 us/op 0.41
mainnet_e58758 - phase0 afterProcessEpoch 34.821 ms/op 49.276 ms/op 0.71
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.0318 ms/op 2.4720 ms/op 0.42
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.6771 ms/op 9.6080 ms/op 0.17
altair processInactivityUpdates - 250000 normalcase 15.239 ms/op 33.898 ms/op 0.45
altair processInactivityUpdates - 250000 worstcase 15.340 ms/op 29.788 ms/op 0.51
phase0 processRegistryUpdates - 250000 normalcase 7.7900 us/op 17.230 us/op 0.45
phase0 processRegistryUpdates - 250000 badcase_full_deposits 300.65 us/op 425.31 us/op 0.71
phase0 processRegistryUpdates - 250000 worstcase 0.5 116.43 ms/op 131.11 ms/op 0.89
altair processRewardsAndPenalties - 250000 normalcase 52.109 ms/op 51.527 ms/op 1.01
altair processRewardsAndPenalties - 250000 worstcase 31.690 ms/op 61.038 ms/op 0.52
phase0 getAttestationDeltas - 250000 normalcase 6.0532 ms/op 7.6217 ms/op 0.79
phase0 getAttestationDeltas - 250000 worstcase 6.3256 ms/op 7.3581 ms/op 0.86
phase0 processSlashings - 250000 worstcase 92.196 us/op 126.23 us/op 0.73
altair processSyncCommitteeUpdates - 250000 110.35 ms/op 127.70 ms/op 0.86
BeaconState.hashTreeRoot - No change 473.00 ns/op 236.00 ns/op 2.00
BeaconState.hashTreeRoot - 1 full validator 147.96 us/op 122.71 us/op 1.21
BeaconState.hashTreeRoot - 32 full validator 1.7714 ms/op 1.0481 ms/op 1.69
BeaconState.hashTreeRoot - 512 full validator 16.022 ms/op 15.550 ms/op 1.03
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 185.47 us/op 185.88 us/op 1.00
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.9949 ms/op 2.7515 ms/op 0.73
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 27.842 ms/op 41.677 ms/op 0.67
BeaconState.hashTreeRoot - 1 balances 105.09 us/op 146.63 us/op 0.72
BeaconState.hashTreeRoot - 32 balances 1.1043 ms/op 1.2319 ms/op 0.90
BeaconState.hashTreeRoot - 512 balances 11.274 ms/op 12.863 ms/op 0.88
BeaconState.hashTreeRoot - 250000 balances 222.90 ms/op 170.05 ms/op 1.31
aggregationBits - 2048 els - zipIndexesInBitList 39.155 us/op 38.825 us/op 1.01
byteArrayEquals 32 49.257 ns/op 58.570 ns/op 0.84
Buffer.compare 32 16.561 ns/op 18.470 ns/op 0.90
byteArrayEquals 1024 1.3005 us/op 1.6357 us/op 0.80
Buffer.compare 1024 25.888 ns/op 26.619 ns/op 0.97
byteArrayEquals 16384 20.571 us/op 27.011 us/op 0.76
Buffer.compare 16384 193.05 ns/op 229.47 ns/op 0.84
byteArrayEquals 123687377 161.15 ms/op 195.33 ms/op 0.83
Buffer.compare 123687377 6.7312 ms/op 7.0265 ms/op 0.96
byteArrayEquals 32 - diff last byte 48.359 ns/op 54.081 ns/op 0.89
Buffer.compare 32 - diff last byte 16.338 ns/op 18.651 ns/op 0.88
byteArrayEquals 1024 - diff last byte 1.2941 us/op 1.6322 us/op 0.79
Buffer.compare 1024 - diff last byte 24.397 ns/op 27.193 ns/op 0.90
byteArrayEquals 16384 - diff last byte 24.872 us/op 25.724 us/op 0.97
Buffer.compare 16384 - diff last byte 231.79 ns/op 209.10 ns/op 1.11
byteArrayEquals 123687377 - diff last byte 152.74 ms/op 191.05 ms/op 0.80
Buffer.compare 123687377 - diff last byte 4.6766 ms/op 6.4105 ms/op 0.73
byteArrayEquals 32 - random bytes 4.9420 ns/op 5.1820 ns/op 0.95
Buffer.compare 32 - random bytes 15.859 ns/op 16.991 ns/op 0.93
byteArrayEquals 1024 - random bytes 4.9150 ns/op 5.1550 ns/op 0.95
Buffer.compare 1024 - random bytes 16.144 ns/op 17.005 ns/op 0.95
byteArrayEquals 16384 - random bytes 4.8830 ns/op 5.1230 ns/op 0.95
Buffer.compare 16384 - random bytes 15.896 ns/op 17.005 ns/op 0.93
byteArrayEquals 123687377 - random bytes 7.7200 ns/op 6.4900 ns/op 1.19
Buffer.compare 123687377 - random bytes 18.680 ns/op 18.330 ns/op 1.02
regular array get 100000 times 30.652 us/op 34.921 us/op 0.88
wrappedArray get 100000 times 30.635 us/op 33.041 us/op 0.93
arrayWithProxy get 100000 times 11.069 ms/op 13.143 ms/op 0.84
ssz.Root.equals 43.395 ns/op 46.250 ns/op 0.94
byteArrayEquals 42.373 ns/op 45.401 ns/op 0.93
Buffer.compare 9.7470 ns/op 10.449 ns/op 0.93
processSlot - 1 slots 14.710 us/op 18.034 us/op 0.82
processSlot - 32 slots 2.3933 ms/op 3.0447 ms/op 0.79
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 37.336 ms/op 41.504 ms/op 0.90
getCommitteeAssignments - req 1 vs - 250000 vc 2.0279 ms/op 2.0974 ms/op 0.97
getCommitteeAssignments - req 100 vs - 250000 vc 3.8877 ms/op 4.0071 ms/op 0.97
getCommitteeAssignments - req 1000 vs - 250000 vc 3.8814 ms/op 4.2799 ms/op 0.91
findModifiedValidators - 10000 modified validators 281.08 ms/op 238.01 ms/op 1.18
findModifiedValidators - 1000 modified validators 199.23 ms/op 167.17 ms/op 1.19
findModifiedValidators - 100 modified validators 169.11 ms/op 164.46 ms/op 1.03
findModifiedValidators - 10 modified validators 155.01 ms/op 165.15 ms/op 0.94
findModifiedValidators - 1 modified validators 171.74 ms/op 175.33 ms/op 0.98
findModifiedValidators - no difference 181.66 ms/op 162.60 ms/op 1.12
compare ViewDUs 3.8285 s/op 3.1299 s/op 1.22
compare each validator Uint8Array 1.5670 s/op 1.6158 s/op 0.97
compare ViewDU to Uint8Array 986.09 ms/op 957.35 ms/op 1.03
migrate state 1000000 validators, 24 modified, 0 new 673.13 ms/op 758.24 ms/op 0.89
migrate state 1000000 validators, 1700 modified, 1000 new 930.34 ms/op 1.0478 s/op 0.89
migrate state 1000000 validators, 3400 modified, 2000 new 1.1418 s/op 1.2439 s/op 0.92
migrate state 1500000 validators, 24 modified, 0 new 671.38 ms/op 779.86 ms/op 0.86
migrate state 1500000 validators, 1700 modified, 1000 new 829.55 ms/op 925.59 ms/op 0.90
migrate state 1500000 validators, 3400 modified, 2000 new 1.0679 s/op 1.2526 s/op 0.85
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 6.7500 ns/op 4.6100 ns/op 1.46
state getBlockRootAtSlot - 250000 vs - 7PWei 623.30 ns/op 763.16 ns/op 0.82
computeProposers - vc 250000 6.0318 ms/op 7.9138 ms/op 0.76
computeEpochShuffling - vc 250000 35.266 ms/op 41.797 ms/op 0.84
getNextSyncCommittee - vc 250000 110.77 ms/op 127.69 ms/op 0.87
computeSigningRoot for AttestationData 20.196 us/op 22.675 us/op 0.89
hash AttestationData serialized data then Buffer.toString(base64) 1.1863 us/op 1.5383 us/op 0.77
toHexString serialized data 777.75 ns/op 880.39 ns/op 0.88
Buffer.toString(base64) 129.42 ns/op 173.42 ns/op 0.75
nodejs block root to RootHex using toHex 117.13 ns/op 146.68 ns/op 0.80
nodejs block root to RootHex using toRootHex 75.982 ns/op 87.576 ns/op 0.87
browser block root to RootHex using the deprecated toHexString 208.01 ns/op 225.20 ns/op 0.92
browser block root to RootHex using toHex 165.09 ns/op 180.01 ns/op 0.92
browser block root to RootHex using toRootHex 149.03 ns/op 157.34 ns/op 0.95

by benchmarkbot/action

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