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

test: enable skipped e2e worker tests #7195

Merged
merged 1 commit into from
Oct 25, 2024
Merged

test: enable skipped e2e worker tests #7195

merged 1 commit into from
Oct 25, 2024

Conversation

nazarhussain
Copy link
Contributor

Motivation

Bring back the skiped tests.

Description

As the Worker loads the esm/cjs module but in JS, so for testing purpose we have to create worker as JS file.

Steps to test or reproduce

Run all tests

@nazarhussain nazarhussain requested a review from a team as a code owner October 24, 2024 13:39
@nazarhussain nazarhussain self-assigned this Oct 24, 2024
Copy link

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.21%. Comparing base (748966b) to head (6306ef4).
Report is 1 commits behind head on unstable.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #7195   +/-   ##
=========================================
  Coverage     49.21%   49.21%           
=========================================
  Files           598      598           
  Lines         39794    39794           
  Branches       2091     2092    +1     
=========================================
+ Hits          19583    19585    +2     
+ Misses        20171    20169    -2     
  Partials         40       40           

Copy link
Contributor

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: c3dcbb8 Previous: 748966b Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.7501 ms/op 2.1807 ms/op 0.80
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 38.622 us/op 66.746 us/op 0.58
BLS verify - blst 831.27 us/op 1.0183 ms/op 0.82
BLS verifyMultipleSignatures 3 - blst 1.3911 ms/op 1.3517 ms/op 1.03
BLS verifyMultipleSignatures 8 - blst 1.5065 ms/op 1.9743 ms/op 0.76
BLS verifyMultipleSignatures 32 - blst 4.5010 ms/op 5.8657 ms/op 0.77
BLS verifyMultipleSignatures 64 - blst 8.2992 ms/op 11.179 ms/op 0.74
BLS verifyMultipleSignatures 128 - blst 15.768 ms/op 18.512 ms/op 0.85
BLS deserializing 10000 signatures 601.33 ms/op 714.67 ms/op 0.84
BLS deserializing 100000 signatures 6.0640 s/op 7.0807 s/op 0.86
BLS verifyMultipleSignatures - same message - 3 - blst 951.69 us/op 1.1133 ms/op 0.85
BLS verifyMultipleSignatures - same message - 8 - blst 1.1192 ms/op 1.1348 ms/op 0.99
BLS verifyMultipleSignatures - same message - 32 - blst 1.6845 ms/op 2.0165 ms/op 0.84
BLS verifyMultipleSignatures - same message - 64 - blst 2.5544 ms/op 2.9738 ms/op 0.86
BLS verifyMultipleSignatures - same message - 128 - blst 4.1610 ms/op 4.9267 ms/op 0.84
BLS aggregatePubkeys 32 - blst 19.236 us/op 21.309 us/op 0.90
BLS aggregatePubkeys 128 - blst 64.677 us/op 71.333 us/op 0.91
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 73.443 ms/op 80.652 ms/op 0.91
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 47.386 ms/op 89.872 ms/op 0.53
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 37.232 ms/op 51.751 ms/op 0.72
getSlashingsAndExits - default max 68.473 us/op 137.18 us/op 0.50
getSlashingsAndExits - 2k 258.80 us/op 438.56 us/op 0.59
proposeBlockBody type=full, size=empty 4.4504 ms/op 9.7087 ms/op 0.46
isKnown best case - 1 super set check 436.00 ns/op 756.00 ns/op 0.58
isKnown normal case - 2 super set checks 420.00 ns/op 693.00 ns/op 0.61
isKnown worse case - 16 super set checks 426.00 ns/op 670.00 ns/op 0.64
InMemoryCheckpointStateCache - add get delete 2.5380 us/op 3.8390 us/op 0.66
updateUnfinalizedPubkeys - updating 10 pubkeys 678.43 us/op 2.0777 ms/op 0.33
updateUnfinalizedPubkeys - updating 100 pubkeys 2.9972 ms/op 5.8934 ms/op 0.51
updateUnfinalizedPubkeys - updating 1000 pubkeys 41.681 ms/op 66.025 ms/op 0.63
validate api signedAggregateAndProof - struct 1.5180 ms/op 1.8313 ms/op 0.83
validate gossip signedAggregateAndProof - struct 1.6500 ms/op 2.0381 ms/op 0.81
batch validate gossip attestation - vc 640000 - chunk 32 122.31 us/op 159.86 us/op 0.77
batch validate gossip attestation - vc 640000 - chunk 64 107.51 us/op 148.72 us/op 0.72
batch validate gossip attestation - vc 640000 - chunk 128 102.43 us/op 144.79 us/op 0.71
batch validate gossip attestation - vc 640000 - chunk 256 105.07 us/op 119.41 us/op 0.88
pickEth1Vote - no votes 1.0848 ms/op 1.1738 ms/op 0.92
pickEth1Vote - max votes 7.6787 ms/op 7.2901 ms/op 1.05
pickEth1Vote - Eth1Data hashTreeRoot value x2048 14.392 ms/op 13.906 ms/op 1.03
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 24.148 ms/op 21.547 ms/op 1.12
pickEth1Vote - Eth1Data fastSerialize value x2048 483.34 us/op 551.19 us/op 0.88
pickEth1Vote - Eth1Data fastSerialize tree x2048 2.9594 ms/op 4.5870 ms/op 0.65
bytes32 toHexString 956.00 ns/op 626.00 ns/op 1.53
bytes32 Buffer.toString(hex) 567.00 ns/op 271.00 ns/op 2.09
bytes32 Buffer.toString(hex) from Uint8Array 795.00 ns/op 492.00 ns/op 1.62
bytes32 Buffer.toString(hex) + 0x 569.00 ns/op 273.00 ns/op 2.08
Object access 1 prop 0.41100 ns/op 0.20200 ns/op 2.03
Map access 1 prop 0.36500 ns/op 0.14800 ns/op 2.47
Object get x1000 6.0280 ns/op 6.2110 ns/op 0.97
Map get x1000 6.0260 ns/op 6.7660 ns/op 0.89
Object set x1000 24.481 ns/op 50.880 ns/op 0.48
Map set x1000 20.092 ns/op 39.200 ns/op 0.51
Return object 10000 times 0.31810 ns/op 0.32190 ns/op 0.99
Throw Error 10000 times 3.0135 us/op 3.5923 us/op 0.84
toHex 140.81 ns/op 193.15 ns/op 0.73
Buffer.from 129.18 ns/op 178.98 ns/op 0.72
shared Buffer 83.009 ns/op 105.48 ns/op 0.79
fastMsgIdFn sha256 / 200 bytes 2.2740 us/op 2.3280 us/op 0.98
fastMsgIdFn h32 xxhash / 200 bytes 488.00 ns/op 309.00 ns/op 1.58
fastMsgIdFn h64 xxhash / 200 bytes 538.00 ns/op 301.00 ns/op 1.79
fastMsgIdFn sha256 / 1000 bytes 6.0870 us/op 8.1220 us/op 0.75
fastMsgIdFn h32 xxhash / 1000 bytes 636.00 ns/op 449.00 ns/op 1.42
fastMsgIdFn h64 xxhash / 1000 bytes 605.00 ns/op 375.00 ns/op 1.61
fastMsgIdFn sha256 / 10000 bytes 51.020 us/op 67.234 us/op 0.76
fastMsgIdFn h32 xxhash / 10000 bytes 2.0210 us/op 2.0170 us/op 1.00
fastMsgIdFn h64 xxhash / 10000 bytes 1.4070 us/op 1.2880 us/op 1.09
send data - 1000 256B messages 13.399 ms/op 15.344 ms/op 0.87
send data - 1000 512B messages 15.640 ms/op 20.582 ms/op 0.76
send data - 1000 1024B messages 24.252 ms/op 32.342 ms/op 0.75
send data - 1000 1200B messages 25.090 ms/op 33.462 ms/op 0.75
send data - 1000 2048B messages 44.303 ms/op 36.554 ms/op 1.21
send data - 1000 4096B messages 40.920 ms/op 38.245 ms/op 1.07
send data - 1000 16384B messages 96.219 ms/op 86.273 ms/op 1.12
send data - 1000 65536B messages 363.50 ms/op 264.66 ms/op 1.37
enrSubnets - fastDeserialize 64 bits 2.4380 us/op 1.3530 us/op 1.80
enrSubnets - ssz BitVector 64 bits 835.00 ns/op 450.00 ns/op 1.86
enrSubnets - fastDeserialize 4 bits 428.00 ns/op 204.00 ns/op 2.10
enrSubnets - ssz BitVector 4 bits 773.00 ns/op 459.00 ns/op 1.68
prioritizePeers score -10:0 att 32-0.1 sync 2-0 214.85 us/op 206.53 us/op 1.04
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 248.90 us/op 200.93 us/op 1.24
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 400.29 us/op 387.57 us/op 1.03
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 772.98 us/op 541.87 us/op 1.43
prioritizePeers score 0:0 att 64-1 sync 4-1 907.59 us/op 1.0134 ms/op 0.90
array of 16000 items push then shift 1.7123 us/op 1.9130 us/op 0.90
LinkedList of 16000 items push then shift 11.590 ns/op 8.1230 ns/op 1.43
array of 16000 items push then pop 150.28 ns/op 143.62 ns/op 1.05
LinkedList of 16000 items push then pop 10.633 ns/op 7.6180 ns/op 1.40
array of 24000 items push then shift 2.0961 us/op 2.5118 us/op 0.83
LinkedList of 24000 items push then shift 11.927 ns/op 8.6250 ns/op 1.38
array of 24000 items push then pop 187.30 ns/op 177.63 ns/op 1.05
LinkedList of 24000 items push then pop 8.0550 ns/op 8.2970 ns/op 0.97
intersect bitArray bitLen 8 7.2490 ns/op 6.9650 ns/op 1.04
intersect array and set length 8 62.786 ns/op 61.859 ns/op 1.01
intersect bitArray bitLen 128 32.868 ns/op 31.004 ns/op 1.06
intersect array and set length 128 908.20 ns/op 837.44 ns/op 1.08
bitArray.getTrueBitIndexes() bitLen 128 2.9160 us/op 2.3160 us/op 1.26
bitArray.getTrueBitIndexes() bitLen 248 4.2060 us/op 4.4540 us/op 0.94
bitArray.getTrueBitIndexes() bitLen 512 11.781 us/op 8.4700 us/op 1.39
Buffer.concat 32 items 1.8490 us/op 986.00 ns/op 1.88
Uint8Array.set 32 items 2.7580 us/op 1.6600 us/op 1.66
Buffer.copy 2.4180 us/op 1.9870 us/op 1.22
Uint8Array.set - with subarray 4.2630 us/op 3.2040 us/op 1.33
Uint8Array.set - without subarray 2.6440 us/op 1.7080 us/op 1.55
getUint32 - dataview 672.00 ns/op 304.00 ns/op 2.21
getUint32 - manual 562.00 ns/op 219.00 ns/op 2.57
Set add up to 64 items then delete first 1.9920 us/op 2.5193 us/op 0.79
OrderedSet add up to 64 items then delete first 3.9985 us/op 4.1617 us/op 0.96
Set add up to 64 items then delete last 2.6584 us/op 3.1986 us/op 0.83
OrderedSet add up to 64 items then delete last 4.3473 us/op 4.3760 us/op 0.99
Set add up to 64 items then delete middle 2.1488 us/op 2.6464 us/op 0.81
OrderedSet add up to 64 items then delete middle 5.7991 us/op 6.0279 us/op 0.96
Set add up to 128 items then delete first 7.2841 us/op 5.3519 us/op 1.36
OrderedSet add up to 128 items then delete first 13.332 us/op 10.577 us/op 1.26
Set add up to 128 items then delete last 7.7268 us/op 5.5222 us/op 1.40
OrderedSet add up to 128 items then delete last 10.630 us/op 8.3033 us/op 1.28
Set add up to 128 items then delete middle 6.5687 us/op 6.4714 us/op 1.02
OrderedSet add up to 128 items then delete middle 15.218 us/op 18.652 us/op 0.82
Set add up to 256 items then delete first 8.9984 us/op 13.138 us/op 0.68
OrderedSet add up to 256 items then delete first 16.246 us/op 21.447 us/op 0.76
Set add up to 256 items then delete last 10.845 us/op 11.174 us/op 0.97
OrderedSet add up to 256 items then delete last 16.596 us/op 16.175 us/op 1.03
Set add up to 256 items then delete middle 10.251 us/op 10.177 us/op 1.01
OrderedSet add up to 256 items then delete middle 43.798 us/op 47.018 us/op 0.93
transfer serialized Status (84 B) 1.6320 us/op 1.5220 us/op 1.07
copy serialized Status (84 B) 1.6930 us/op 1.3250 us/op 1.28
transfer serialized SignedVoluntaryExit (112 B) 1.9530 us/op 1.5040 us/op 1.30
copy serialized SignedVoluntaryExit (112 B) 1.4200 us/op 1.2540 us/op 1.13
transfer serialized ProposerSlashing (416 B) 1.8470 us/op 2.3620 us/op 0.78
copy serialized ProposerSlashing (416 B) 1.8070 us/op 2.0220 us/op 0.89
transfer serialized Attestation (485 B) 2.5500 us/op 1.7890 us/op 1.43
copy serialized Attestation (485 B) 1.9940 us/op 1.7560 us/op 1.14
transfer serialized AttesterSlashing (33232 B) 3.3830 us/op 1.8630 us/op 1.82
copy serialized AttesterSlashing (33232 B) 9.5450 us/op 5.9160 us/op 1.61
transfer serialized Small SignedBeaconBlock (128000 B) 3.6070 us/op 2.7500 us/op 1.31
copy serialized Small SignedBeaconBlock (128000 B) 17.385 us/op 21.094 us/op 0.82
transfer serialized Avg SignedBeaconBlock (200000 B) 2.5200 us/op 3.3590 us/op 0.75
copy serialized Avg SignedBeaconBlock (200000 B) 11.760 us/op 33.204 us/op 0.35
transfer serialized BlobsSidecar (524380 B) 2.1490 us/op 3.7570 us/op 0.57
copy serialized BlobsSidecar (524380 B) 210.17 us/op 129.31 us/op 1.63
transfer serialized Big SignedBeaconBlock (1000000 B) 3.2200 us/op 3.9660 us/op 0.81
copy serialized Big SignedBeaconBlock (1000000 B) 128.04 us/op 297.07 us/op 0.43
pass gossip attestations to forkchoice per slot 3.5448 ms/op 3.1079 ms/op 1.14
forkChoice updateHead vc 100000 bc 64 eq 0 436.33 us/op 465.96 us/op 0.94
forkChoice updateHead vc 600000 bc 64 eq 0 2.5168 ms/op 3.0337 ms/op 0.83
forkChoice updateHead vc 1000000 bc 64 eq 0 3.9627 ms/op 5.0290 ms/op 0.79
forkChoice updateHead vc 600000 bc 320 eq 0 2.4408 ms/op 2.9222 ms/op 0.84
forkChoice updateHead vc 600000 bc 1200 eq 0 2.4476 ms/op 2.9764 ms/op 0.82
forkChoice updateHead vc 600000 bc 7200 eq 0 3.1128 ms/op 4.5130 ms/op 0.69
forkChoice updateHead vc 600000 bc 64 eq 1000 9.1678 ms/op 10.741 ms/op 0.85
forkChoice updateHead vc 600000 bc 64 eq 10000 9.0885 ms/op 10.910 ms/op 0.83
forkChoice updateHead vc 600000 bc 64 eq 300000 13.723 ms/op 14.765 ms/op 0.93
computeDeltas 500000 validators 300 proto nodes 3.3513 ms/op 4.4766 ms/op 0.75
computeDeltas 500000 validators 1200 proto nodes 3.3765 ms/op 4.3498 ms/op 0.78
computeDeltas 500000 validators 7200 proto nodes 3.3990 ms/op 4.2661 ms/op 0.80
computeDeltas 750000 validators 300 proto nodes 5.1518 ms/op 6.4602 ms/op 0.80
computeDeltas 750000 validators 1200 proto nodes 5.3524 ms/op 6.6890 ms/op 0.80
computeDeltas 750000 validators 7200 proto nodes 5.1470 ms/op 6.5004 ms/op 0.79
computeDeltas 1400000 validators 300 proto nodes 9.4386 ms/op 11.826 ms/op 0.80
computeDeltas 1400000 validators 1200 proto nodes 9.5779 ms/op 13.720 ms/op 0.70
computeDeltas 1400000 validators 7200 proto nodes 9.3583 ms/op 12.279 ms/op 0.76
computeDeltas 2100000 validators 300 proto nodes 14.389 ms/op 20.941 ms/op 0.69
computeDeltas 2100000 validators 1200 proto nodes 14.874 ms/op 24.485 ms/op 0.61
computeDeltas 2100000 validators 7200 proto nodes 14.840 ms/op 26.195 ms/op 0.57
altair processAttestation - 250000 vs - 7PWei normalcase 1.7590 ms/op 4.0004 ms/op 0.44
altair processAttestation - 250000 vs - 7PWei worstcase 3.6155 ms/op 5.3793 ms/op 0.67
altair processAttestation - setStatus - 1/6 committees join 82.288 us/op 175.69 us/op 0.47
altair processAttestation - setStatus - 1/3 committees join 155.48 us/op 405.87 us/op 0.38
altair processAttestation - setStatus - 1/2 committees join 229.88 us/op 362.80 us/op 0.63
altair processAttestation - setStatus - 2/3 committees join 292.55 us/op 385.46 us/op 0.76
altair processAttestation - setStatus - 4/5 committees join 454.47 us/op 551.97 us/op 0.82
altair processAttestation - setStatus - 100% committees join 531.00 us/op 642.47 us/op 0.83
altair processBlock - 250000 vs - 7PWei normalcase 5.0282 ms/op 6.1016 ms/op 0.82
altair processBlock - 250000 vs - 7PWei normalcase hashState 25.059 ms/op 31.131 ms/op 0.80
altair processBlock - 250000 vs - 7PWei worstcase 37.168 ms/op 42.616 ms/op 0.87
altair processBlock - 250000 vs - 7PWei worstcase hashState 65.078 ms/op 83.015 ms/op 0.78
phase0 processBlock - 250000 vs - 7PWei normalcase 1.5377 ms/op 3.1487 ms/op 0.49
phase0 processBlock - 250000 vs - 7PWei worstcase 22.257 ms/op 29.216 ms/op 0.76
altair processEth1Data - 250000 vs - 7PWei normalcase 258.94 us/op 449.73 us/op 0.58
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 5.4800 us/op 9.5290 us/op 0.58
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 30.328 us/op 49.119 us/op 0.62
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 10.830 us/op 16.073 us/op 0.67
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 6.6160 us/op 10.691 us/op 0.62
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 136.52 us/op 192.39 us/op 0.71
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 970.98 us/op 1.3502 ms/op 0.72
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.1417 ms/op 1.6194 ms/op 0.71
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.1741 ms/op 2.0316 ms/op 0.58
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.7910 ms/op 6.4913 ms/op 0.58
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.3137 ms/op 2.4245 ms/op 0.54
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.1509 ms/op 4.0445 ms/op 0.78
Tree 40 250000 create 184.14 ms/op 279.96 ms/op 0.66
Tree 40 250000 get(125000) 121.56 ns/op 166.81 ns/op 0.73
Tree 40 250000 set(125000) 572.33 ns/op 769.36 ns/op 0.74
Tree 40 250000 toArray() 16.239 ms/op 21.708 ms/op 0.75
Tree 40 250000 iterate all - toArray() + loop 16.224 ms/op 20.965 ms/op 0.77
Tree 40 250000 iterate all - get(i) 45.701 ms/op 58.447 ms/op 0.78
Array 250000 create 2.3701 ms/op 3.5322 ms/op 0.67
Array 250000 clone - spread 1.3863 ms/op 1.4852 ms/op 0.93
Array 250000 get(125000) 0.59600 ns/op 0.42500 ns/op 1.40
Array 250000 set(125000) 0.61100 ns/op 0.46700 ns/op 1.31
Array 250000 iterate all - loop 77.146 us/op 111.28 us/op 0.69
phase0 afterProcessEpoch - 250000 vs - 7PWei 43.483 ms/op 51.601 ms/op 0.84
Array.fill - length 1000000 2.6777 ms/op 3.8294 ms/op 0.70
Array push - length 1000000 16.145 ms/op 18.530 ms/op 0.87
Array.get 0.26055 ns/op 0.29476 ns/op 0.88
Uint8Array.get 0.33403 ns/op 0.45900 ns/op 0.73
phase0 beforeProcessEpoch - 250000 vs - 7PWei 18.413 ms/op 17.901 ms/op 1.03
altair processEpoch - mainnet_e81889 245.88 ms/op 296.53 ms/op 0.83
mainnet_e81889 - altair beforeProcessEpoch 22.458 ms/op 19.771 ms/op 1.14
mainnet_e81889 - altair processJustificationAndFinalization 20.312 us/op 12.941 us/op 1.57
mainnet_e81889 - altair processInactivityUpdates 6.0060 ms/op 7.8546 ms/op 0.76
mainnet_e81889 - altair processRewardsAndPenalties 45.884 ms/op 55.586 ms/op 0.83
mainnet_e81889 - altair processRegistryUpdates 2.9990 us/op 2.2010 us/op 1.36
mainnet_e81889 - altair processSlashings 1.0960 us/op 624.00 ns/op 1.76
mainnet_e81889 - altair processEth1DataReset 770.00 ns/op 483.00 ns/op 1.59
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.4772 ms/op 3.7741 ms/op 0.39
mainnet_e81889 - altair processSlashingsReset 3.1090 us/op 9.3870 us/op 0.33
mainnet_e81889 - altair processRandaoMixesReset 4.1390 us/op 8.2490 us/op 0.50
mainnet_e81889 - altair processHistoricalRootsUpdate 862.00 ns/op 795.00 ns/op 1.08
mainnet_e81889 - altair processParticipationFlagUpdates 4.1060 us/op 5.7640 us/op 0.71
mainnet_e81889 - altair processSyncCommitteeUpdates 769.00 ns/op 675.00 ns/op 1.14
mainnet_e81889 - altair afterProcessEpoch 43.228 ms/op 53.198 ms/op 0.81
capella processEpoch - mainnet_e217614 1.0288 s/op 1.2557 s/op 0.82
mainnet_e217614 - capella beforeProcessEpoch 84.365 ms/op 98.810 ms/op 0.85
mainnet_e217614 - capella processJustificationAndFinalization 16.406 us/op 28.779 us/op 0.57
mainnet_e217614 - capella processInactivityUpdates 15.667 ms/op 21.804 ms/op 0.72
mainnet_e217614 - capella processRewardsAndPenalties 239.48 ms/op 283.50 ms/op 0.84
mainnet_e217614 - capella processRegistryUpdates 13.384 us/op 25.027 us/op 0.53
mainnet_e217614 - capella processSlashings 868.00 ns/op 912.00 ns/op 0.95
mainnet_e217614 - capella processEth1DataReset 853.00 ns/op 708.00 ns/op 1.20
mainnet_e217614 - capella processEffectiveBalanceUpdates 8.8290 ms/op 18.641 ms/op 0.47
mainnet_e217614 - capella processSlashingsReset 4.5930 us/op 5.5000 us/op 0.84
mainnet_e217614 - capella processRandaoMixesReset 7.5600 us/op 13.717 us/op 0.55
mainnet_e217614 - capella processHistoricalRootsUpdate 912.00 ns/op 856.00 ns/op 1.07
mainnet_e217614 - capella processParticipationFlagUpdates 2.1480 us/op 3.1450 us/op 0.68
mainnet_e217614 - capella afterProcessEpoch 105.83 ms/op 131.77 ms/op 0.80
phase0 processEpoch - mainnet_e58758 334.13 ms/op 416.76 ms/op 0.80
mainnet_e58758 - phase0 beforeProcessEpoch 85.081 ms/op 92.313 ms/op 0.92
mainnet_e58758 - phase0 processJustificationAndFinalization 18.816 us/op 20.058 us/op 0.94
mainnet_e58758 - phase0 processRewardsAndPenalties 26.745 ms/op 42.567 ms/op 0.63
mainnet_e58758 - phase0 processRegistryUpdates 6.1440 us/op 14.222 us/op 0.43
mainnet_e58758 - phase0 processSlashings 791.00 ns/op 519.00 ns/op 1.52
mainnet_e58758 - phase0 processEth1DataReset 805.00 ns/op 566.00 ns/op 1.42
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 2.0648 ms/op 1.3714 ms/op 1.51
mainnet_e58758 - phase0 processSlashingsReset 3.7900 us/op 8.1350 us/op 0.47
mainnet_e58758 - phase0 processRandaoMixesReset 4.9140 us/op 9.3030 us/op 0.53
mainnet_e58758 - phase0 processHistoricalRootsUpdate 765.00 ns/op 729.00 ns/op 1.05
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.7590 us/op 6.7750 us/op 0.55
mainnet_e58758 - phase0 afterProcessEpoch 36.562 ms/op 48.092 ms/op 0.76
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.1376 ms/op 1.8926 ms/op 0.60
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.6425 ms/op 3.5816 ms/op 0.46
altair processInactivityUpdates - 250000 normalcase 16.976 ms/op 23.902 ms/op 0.71
altair processInactivityUpdates - 250000 worstcase 14.091 ms/op 23.605 ms/op 0.60
phase0 processRegistryUpdates - 250000 normalcase 8.4580 us/op 15.018 us/op 0.56
phase0 processRegistryUpdates - 250000 badcase_full_deposits 326.49 us/op 481.15 us/op 0.68
phase0 processRegistryUpdates - 250000 worstcase 0.5 112.37 ms/op 164.33 ms/op 0.68
altair processRewardsAndPenalties - 250000 normalcase 40.986 ms/op 52.718 ms/op 0.78
altair processRewardsAndPenalties - 250000 worstcase 38.089 ms/op 51.569 ms/op 0.74
phase0 getAttestationDeltas - 250000 normalcase 7.0034 ms/op 10.768 ms/op 0.65
phase0 getAttestationDeltas - 250000 worstcase 5.2658 ms/op 8.9439 ms/op 0.59
phase0 processSlashings - 250000 worstcase 95.300 us/op 109.62 us/op 0.87
altair processSyncCommitteeUpdates - 250000 94.745 ms/op 142.98 ms/op 0.66
BeaconState.hashTreeRoot - No change 451.00 ns/op 408.00 ns/op 1.11
BeaconState.hashTreeRoot - 1 full validator 71.793 us/op 130.59 us/op 0.55
BeaconState.hashTreeRoot - 32 full validator 781.58 us/op 1.7923 ms/op 0.44
BeaconState.hashTreeRoot - 512 full validator 7.1000 ms/op 12.350 ms/op 0.57
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 89.339 us/op 148.40 us/op 0.60
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.1727 ms/op 1.9437 ms/op 0.60
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 20.460 ms/op 27.015 ms/op 0.76
BeaconState.hashTreeRoot - 1 balances 130.84 us/op 112.52 us/op 1.16
BeaconState.hashTreeRoot - 32 balances 943.86 us/op 1.0684 ms/op 0.88
BeaconState.hashTreeRoot - 512 balances 8.1681 ms/op 9.5965 ms/op 0.85
BeaconState.hashTreeRoot - 250000 balances 185.24 ms/op 243.04 ms/op 0.76
aggregationBits - 2048 els - zipIndexesInBitList 31.947 us/op 42.647 us/op 0.75
byteArrayEquals 32 47.793 ns/op 64.846 ns/op 0.74
Buffer.compare 32 15.293 ns/op 17.632 ns/op 0.87
byteArrayEquals 1024 1.2602 us/op 1.6136 us/op 0.78
Buffer.compare 1024 23.688 ns/op 25.558 ns/op 0.93
byteArrayEquals 16384 20.124 us/op 25.749 us/op 0.78
Buffer.compare 16384 178.49 ns/op 203.80 ns/op 0.88
byteArrayEquals 123687377 154.81 ms/op 227.23 ms/op 0.68
Buffer.compare 123687377 7.2392 ms/op 20.442 ms/op 0.35
byteArrayEquals 32 - diff last byte 48.260 ns/op 68.532 ns/op 0.70
Buffer.compare 32 - diff last byte 16.705 ns/op 23.577 ns/op 0.71
byteArrayEquals 1024 - diff last byte 1.2789 us/op 1.9801 us/op 0.65
Buffer.compare 1024 - diff last byte 24.452 ns/op 42.123 ns/op 0.58
byteArrayEquals 16384 - diff last byte 20.398 us/op 31.222 us/op 0.65
Buffer.compare 16384 - diff last byte 197.15 ns/op 303.27 ns/op 0.65
byteArrayEquals 123687377 - diff last byte 159.14 ms/op 215.47 ms/op 0.74
Buffer.compare 123687377 - diff last byte 9.2995 ms/op 11.842 ms/op 0.79
byteArrayEquals 32 - random bytes 5.0620 ns/op 5.4510 ns/op 0.93
Buffer.compare 32 - random bytes 16.015 ns/op 20.710 ns/op 0.77
byteArrayEquals 1024 - random bytes 5.4570 ns/op 6.3760 ns/op 0.86
Buffer.compare 1024 - random bytes 16.176 ns/op 22.346 ns/op 0.72
byteArrayEquals 16384 - random bytes 5.0720 ns/op 6.9260 ns/op 0.73
Buffer.compare 16384 - random bytes 15.945 ns/op 20.004 ns/op 0.80
byteArrayEquals 123687377 - random bytes 8.2800 ns/op 7.4600 ns/op 1.11
Buffer.compare 123687377 - random bytes 19.940 ns/op 20.800 ns/op 0.96
regular array get 100000 times 32.234 us/op 33.558 us/op 0.96
wrappedArray get 100000 times 31.767 us/op 33.980 us/op 0.93
arrayWithProxy get 100000 times 10.047 ms/op 16.248 ms/op 0.62
ssz.Root.equals 48.575 ns/op 50.215 ns/op 0.97
byteArrayEquals 43.924 ns/op 58.733 ns/op 0.75
Buffer.compare 9.2470 ns/op 13.558 ns/op 0.68
processSlot - 1 slots 16.044 us/op 28.369 us/op 0.57
processSlot - 32 slots 4.9175 ms/op 3.6083 ms/op 1.36
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 46.832 ms/op 52.087 ms/op 0.90
getCommitteeAssignments - req 1 vs - 250000 vc 1.8862 ms/op 2.6802 ms/op 0.70
getCommitteeAssignments - req 100 vs - 250000 vc 3.7414 ms/op 4.7180 ms/op 0.79
getCommitteeAssignments - req 1000 vs - 250000 vc 3.9992 ms/op 5.0592 ms/op 0.79
findModifiedValidators - 10000 modified validators 646.27 ms/op 505.09 ms/op 1.28
findModifiedValidators - 1000 modified validators 700.52 ms/op 265.30 ms/op 2.64
findModifiedValidators - 100 modified validators 287.82 ms/op 317.05 ms/op 0.91
findModifiedValidators - 10 modified validators 233.22 ms/op 258.31 ms/op 0.90
findModifiedValidators - 1 modified validators 233.79 ms/op 248.96 ms/op 0.94
findModifiedValidators - no difference 253.40 ms/op 283.87 ms/op 0.89
compare ViewDUs 4.7221 s/op 4.4528 s/op 1.06
compare each validator Uint8Array 1.6620 s/op 1.7023 s/op 0.98
compare ViewDU to Uint8Array 974.29 ms/op 1.2657 s/op 0.77
migrate state 1000000 validators, 24 modified, 0 new 636.45 ms/op 902.03 ms/op 0.71
migrate state 1000000 validators, 1700 modified, 1000 new 976.30 ms/op 1.1175 s/op 0.87
migrate state 1000000 validators, 3400 modified, 2000 new 1.0667 s/op 1.2592 s/op 0.85
migrate state 1500000 validators, 24 modified, 0 new 660.12 ms/op 784.94 ms/op 0.84
migrate state 1500000 validators, 1700 modified, 1000 new 996.79 ms/op 1.0624 s/op 0.94
migrate state 1500000 validators, 3400 modified, 2000 new 1.1980 s/op 1.3327 s/op 0.90
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 6.7200 ns/op 4.9200 ns/op 1.37
state getBlockRootAtSlot - 250000 vs - 7PWei 427.18 ns/op 605.41 ns/op 0.71
computeProposers - vc 250000 6.4837 ms/op 7.3412 ms/op 0.88
computeEpochShuffling - vc 250000 35.841 ms/op 43.533 ms/op 0.82
getNextSyncCommittee - vc 250000 113.31 ms/op 153.66 ms/op 0.74
computeSigningRoot for AttestationData 28.805 us/op 30.158 us/op 0.96
hash AttestationData serialized data then Buffer.toString(base64) 1.2145 us/op 1.6982 us/op 0.72
toHexString serialized data 1.0684 us/op 1.0046 us/op 1.06
Buffer.toString(base64) 151.63 ns/op 208.91 ns/op 0.73
nodejs block root to RootHex using toHex 115.40 ns/op 179.82 ns/op 0.64
nodejs block root to RootHex using toRootHex 76.407 ns/op 106.47 ns/op 0.72
browser block root to RootHex using the deprecated toHexString 204.88 ns/op 244.80 ns/op 0.84
browser block root to RootHex using toHex 163.00 ns/op 220.12 ns/op 0.74
browser block root to RootHex using toRootHex 147.27 ns/op 175.54 ns/op 0.84

by benchmarkbot/action

@twoeths twoeths merged commit 6de0736 into unstable Oct 25, 2024
20 checks passed
@twoeths twoeths deleted the nh/e2e-worker-test branch October 25, 2024 01:19
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