Skip to content

Commit

Permalink
chore: skip web3_provider unit tests (#7252)
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig authored Nov 27, 2024
1 parent b78cb92 commit 18f4218
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/prover/test/unit/web3_provider.node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import {JsonRpcRequest, JsonRpcRequestOrBatch, JsonRpcResponse} from "../../src/
import {ELRpcProvider} from "../../src/utils/rpc_provider.js";
import {createVerifiedExecutionProvider} from "../../src/web3_provider.js";

describe("web3_provider", () => {
// https://github.com/ChainSafe/lodestar/issues/7250
describe.skip("web3_provider", () => {
afterEach(() => {
vi.clearAllMocks();
});
Expand Down

1 comment on commit 18f4218

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for some benchmarks.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold.

Benchmark suite Current: 18f4218 Previous: b78cb92 Ratio
enrSubnets - fastDeserialize 4 bits 426.00 ns/op 120.00 ns/op 3.55
Full benchmark results
Benchmark suite Current: 18f4218 Previous: b78cb92 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.9524 ms/op 2.3636 ms/op 0.83
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 42.152 us/op 75.104 us/op 0.56
BLS verify - blst 881.18 us/op 879.66 us/op 1.00
BLS verifyMultipleSignatures 3 - blst 1.7449 ms/op 1.3506 ms/op 1.29
BLS verifyMultipleSignatures 8 - blst 2.0996 ms/op 2.2216 ms/op 0.95
BLS verifyMultipleSignatures 32 - blst 4.4837 ms/op 6.3587 ms/op 0.71
BLS verifyMultipleSignatures 64 - blst 9.0045 ms/op 11.207 ms/op 0.80
BLS verifyMultipleSignatures 128 - blst 16.094 ms/op 21.691 ms/op 0.74
BLS deserializing 10000 signatures 631.17 ms/op 670.72 ms/op 0.94
BLS deserializing 100000 signatures 6.3028 s/op 6.9543 s/op 0.91
BLS verifyMultipleSignatures - same message - 3 - blst 1.0428 ms/op 928.46 us/op 1.12
BLS verifyMultipleSignatures - same message - 8 - blst 1.1274 ms/op 1.0317 ms/op 1.09
BLS verifyMultipleSignatures - same message - 32 - blst 1.6910 ms/op 1.8293 ms/op 0.92
BLS verifyMultipleSignatures - same message - 64 - blst 2.5148 ms/op 2.8070 ms/op 0.90
BLS verifyMultipleSignatures - same message - 128 - blst 4.1142 ms/op 4.4043 ms/op 0.93
BLS aggregatePubkeys 32 - blst 18.158 us/op 19.468 us/op 0.93
BLS aggregatePubkeys 128 - blst 64.005 us/op 67.614 us/op 0.95
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 83.374 ms/op 136.91 ms/op 0.61
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 65.261 ms/op 70.702 ms/op 0.92
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 41.730 ms/op 48.592 ms/op 0.86
getSlashingsAndExits - default max 74.184 us/op 119.09 us/op 0.62
getSlashingsAndExits - 2k 336.02 us/op 430.95 us/op 0.78
proposeBlockBody type=full, size=empty 6.1156 ms/op 6.4601 ms/op 0.95
isKnown best case - 1 super set check 599.00 ns/op 585.00 ns/op 1.02
isKnown normal case - 2 super set checks 561.00 ns/op 606.00 ns/op 0.93
isKnown worse case - 16 super set checks 637.00 ns/op 599.00 ns/op 1.06
InMemoryCheckpointStateCache - add get delete 2.7810 us/op 3.4720 us/op 0.80
validate api signedAggregateAndProof - struct 1.8835 ms/op 1.6020 ms/op 1.18
validate gossip signedAggregateAndProof - struct 1.8017 ms/op 1.6810 ms/op 1.07
batch validate gossip attestation - vc 640000 - chunk 32 130.01 us/op 134.48 us/op 0.97
batch validate gossip attestation - vc 640000 - chunk 64 113.79 us/op 128.61 us/op 0.88
batch validate gossip attestation - vc 640000 - chunk 128 115.57 us/op 122.14 us/op 0.95
batch validate gossip attestation - vc 640000 - chunk 256 106.34 us/op 122.43 us/op 0.87
pickEth1Vote - no votes 864.90 us/op 1.2147 ms/op 0.71
pickEth1Vote - max votes 5.7705 ms/op 12.066 ms/op 0.48
pickEth1Vote - Eth1Data hashTreeRoot value x2048 11.654 ms/op 22.741 ms/op 0.51
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 18.539 ms/op 36.837 ms/op 0.50
pickEth1Vote - Eth1Data fastSerialize value x2048 370.63 us/op 591.98 us/op 0.63
pickEth1Vote - Eth1Data fastSerialize tree x2048 3.5914 ms/op 3.1316 ms/op 1.15
bytes32 toHexString 632.00 ns/op 585.00 ns/op 1.08
bytes32 Buffer.toString(hex) 468.00 ns/op 225.00 ns/op 2.08
bytes32 Buffer.toString(hex) from Uint8Array 558.00 ns/op 451.00 ns/op 1.24
bytes32 Buffer.toString(hex) + 0x 480.00 ns/op 224.00 ns/op 2.14
Object access 1 prop 0.33600 ns/op 0.18000 ns/op 1.87
Map access 1 prop 0.32300 ns/op 0.11100 ns/op 2.91
Object get x1000 5.6860 ns/op 5.0230 ns/op 1.13
Map get x1000 6.6140 ns/op 5.8550 ns/op 1.13
Object set x1000 29.109 ns/op 35.968 ns/op 0.81
Map set x1000 20.276 ns/op 27.023 ns/op 0.75
Return object 10000 times 0.31150 ns/op 0.31090 ns/op 1.00
Throw Error 10000 times 2.9703 us/op 3.0405 us/op 0.98
toHex 141.10 ns/op 130.15 ns/op 1.08
Buffer.from 120.56 ns/op 119.75 ns/op 1.01
shared Buffer 79.098 ns/op 80.728 ns/op 0.98
fastMsgIdFn sha256 / 200 bytes 2.1850 us/op 1.9800 us/op 1.10
fastMsgIdFn h32 xxhash / 200 bytes 521.00 ns/op 247.00 ns/op 2.11
fastMsgIdFn h64 xxhash / 200 bytes 484.00 ns/op 225.00 ns/op 2.15
fastMsgIdFn sha256 / 1000 bytes 5.9110 us/op 5.9820 us/op 0.99
fastMsgIdFn h32 xxhash / 1000 bytes 651.00 ns/op 384.00 ns/op 1.70
fastMsgIdFn h64 xxhash / 1000 bytes 581.00 ns/op 322.00 ns/op 1.80
fastMsgIdFn sha256 / 10000 bytes 50.992 us/op 50.433 us/op 1.01
fastMsgIdFn h32 xxhash / 10000 bytes 2.1020 us/op 1.8030 us/op 1.17
fastMsgIdFn h64 xxhash / 10000 bytes 1.4220 us/op 1.1610 us/op 1.22
send data - 1000 256B messages 13.138 ms/op 13.840 ms/op 0.95
send data - 1000 512B messages 20.279 ms/op 19.185 ms/op 1.06
send data - 1000 1024B messages 30.035 ms/op 26.673 ms/op 1.13
send data - 1000 1200B messages 30.757 ms/op 31.290 ms/op 0.98
send data - 1000 2048B messages 31.605 ms/op 43.947 ms/op 0.72
send data - 1000 4096B messages 32.852 ms/op 32.803 ms/op 1.00
send data - 1000 16384B messages 71.452 ms/op 84.363 ms/op 0.85
send data - 1000 65536B messages 341.02 ms/op 185.60 ms/op 1.84
enrSubnets - fastDeserialize 64 bits 1.2060 us/op 890.00 ns/op 1.36
enrSubnets - ssz BitVector 64 bits 654.00 ns/op 280.00 ns/op 2.34
enrSubnets - fastDeserialize 4 bits 426.00 ns/op 120.00 ns/op 3.55
enrSubnets - ssz BitVector 4 bits 650.00 ns/op 276.00 ns/op 2.36
prioritizePeers score -10:0 att 32-0.1 sync 2-0 183.11 us/op 138.22 us/op 1.32
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 148.52 us/op 137.78 us/op 1.08
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 270.86 us/op 288.63 us/op 0.94
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 424.28 us/op 493.81 us/op 0.86
prioritizePeers score 0:0 att 64-1 sync 4-1 721.93 us/op 777.88 us/op 0.93
array of 16000 items push then shift 1.3118 us/op 1.3672 us/op 0.96
LinkedList of 16000 items push then shift 8.3460 ns/op 6.9590 ns/op 1.20
array of 16000 items push then pop 123.44 ns/op 116.62 ns/op 1.06
LinkedList of 16000 items push then pop 6.9130 ns/op 6.3200 ns/op 1.09
array of 24000 items push then shift 1.9320 us/op 1.9599 us/op 0.99
LinkedList of 24000 items push then shift 6.6210 ns/op 6.5860 ns/op 1.01
array of 24000 items push then pop 118.67 ns/op 157.18 ns/op 0.75
LinkedList of 24000 items push then pop 6.3020 ns/op 6.0300 ns/op 1.05
intersect bitArray bitLen 8 5.7850 ns/op 5.5230 ns/op 1.05
intersect array and set length 8 38.262 ns/op 39.555 ns/op 0.97
intersect bitArray bitLen 128 26.919 ns/op 26.854 ns/op 1.00
intersect array and set length 128 675.21 ns/op 645.52 ns/op 1.05
bitArray.getTrueBitIndexes() bitLen 128 2.3200 us/op 2.0880 us/op 1.11
bitArray.getTrueBitIndexes() bitLen 248 3.5150 us/op 3.8520 us/op 0.91
bitArray.getTrueBitIndexes() bitLen 512 7.1310 us/op 9.5240 us/op 0.75
Buffer.concat 32 items 1.0560 us/op 968.00 ns/op 1.09
Uint8Array.set 32 items 1.4470 us/op 1.8380 us/op 0.79
Buffer.copy 2.3660 us/op 2.0000 us/op 1.18
Uint8Array.set - with subarray 2.8830 us/op 3.2440 us/op 0.89
Uint8Array.set - without subarray 2.2970 us/op 1.8510 us/op 1.24
getUint32 - dataview 460.00 ns/op 292.00 ns/op 1.58
getUint32 - manual 354.00 ns/op 286.00 ns/op 1.24
Set add up to 64 items then delete first 1.7920 us/op 2.8635 us/op 0.63
OrderedSet add up to 64 items then delete first 2.8668 us/op 4.6323 us/op 0.62
Set add up to 64 items then delete last 2.1009 us/op 3.0921 us/op 0.68
OrderedSet add up to 64 items then delete last 3.0898 us/op 3.4348 us/op 0.90
Set add up to 64 items then delete middle 2.0410 us/op 2.4623 us/op 0.83
OrderedSet add up to 64 items then delete middle 4.5580 us/op 5.1023 us/op 0.89
Set add up to 128 items then delete first 4.0353 us/op 4.4423 us/op 0.91
OrderedSet add up to 128 items then delete first 6.3447 us/op 6.7966 us/op 0.93
Set add up to 128 items then delete last 3.9750 us/op 4.1111 us/op 0.97
OrderedSet add up to 128 items then delete last 5.9651 us/op 6.3057 us/op 0.95
Set add up to 128 items then delete middle 3.8608 us/op 4.1567 us/op 0.93
OrderedSet add up to 128 items then delete middle 12.052 us/op 12.205 us/op 0.99
Set add up to 256 items then delete first 7.9101 us/op 8.5156 us/op 0.93
OrderedSet add up to 256 items then delete first 12.341 us/op 13.419 us/op 0.92
Set add up to 256 items then delete last 7.6223 us/op 7.9135 us/op 0.96
OrderedSet add up to 256 items then delete last 11.674 us/op 12.245 us/op 0.95
Set add up to 256 items then delete middle 7.5639 us/op 7.8654 us/op 0.96
OrderedSet add up to 256 items then delete middle 34.724 us/op 35.314 us/op 0.98
transfer serialized Status (84 B) 1.3930 us/op 1.1150 us/op 1.25
copy serialized Status (84 B) 1.2000 us/op 1.0150 us/op 1.18
transfer serialized SignedVoluntaryExit (112 B) 1.4940 us/op 1.3630 us/op 1.10
copy serialized SignedVoluntaryExit (112 B) 1.2670 us/op 1.0220 us/op 1.24
transfer serialized ProposerSlashing (416 B) 1.6320 us/op 1.3960 us/op 1.17
copy serialized ProposerSlashing (416 B) 1.8190 us/op 1.5320 us/op 1.19
transfer serialized Attestation (485 B) 1.7710 us/op 1.9800 us/op 0.89
copy serialized Attestation (485 B) 1.6600 us/op 1.5450 us/op 1.07
transfer serialized AttesterSlashing (33232 B) 1.6620 us/op 1.6700 us/op 1.00
copy serialized AttesterSlashing (33232 B) 4.4390 us/op 4.1190 us/op 1.08
transfer serialized Small SignedBeaconBlock (128000 B) 2.4300 us/op 1.7800 us/op 1.37
copy serialized Small SignedBeaconBlock (128000 B) 11.083 us/op 10.577 us/op 1.05
transfer serialized Avg SignedBeaconBlock (200000 B) 3.8480 us/op 2.5450 us/op 1.51
copy serialized Avg SignedBeaconBlock (200000 B) 33.781 us/op 15.172 us/op 2.23
transfer serialized BlobsSidecar (524380 B) 5.0600 us/op 2.6480 us/op 1.91
copy serialized BlobsSidecar (524380 B) 96.778 us/op 75.373 us/op 1.28
transfer serialized Big SignedBeaconBlock (1000000 B) 4.2620 us/op 3.0180 us/op 1.41
copy serialized Big SignedBeaconBlock (1000000 B) 170.37 us/op 138.68 us/op 1.23
pass gossip attestations to forkchoice per slot 2.6393 ms/op 2.5612 ms/op 1.03
forkChoice updateHead vc 100000 bc 64 eq 0 362.03 us/op 368.56 us/op 0.98
forkChoice updateHead vc 600000 bc 64 eq 0 2.3142 ms/op 2.4736 ms/op 0.94
forkChoice updateHead vc 1000000 bc 64 eq 0 3.7612 ms/op 3.9233 ms/op 0.96
forkChoice updateHead vc 600000 bc 320 eq 0 2.2329 ms/op 2.2119 ms/op 1.01
forkChoice updateHead vc 600000 bc 1200 eq 0 2.2768 ms/op 2.3455 ms/op 0.97
forkChoice updateHead vc 600000 bc 7200 eq 0 3.2816 ms/op 2.7267 ms/op 1.20
forkChoice updateHead vc 600000 bc 64 eq 1000 9.8071 ms/op 9.5770 ms/op 1.02
forkChoice updateHead vc 600000 bc 64 eq 10000 10.598 ms/op 9.5504 ms/op 1.11
forkChoice updateHead vc 600000 bc 64 eq 300000 33.287 ms/op 11.809 ms/op 2.82
computeDeltas 500000 validators 300 proto nodes 3.9676 ms/op 3.4093 ms/op 1.16
computeDeltas 500000 validators 1200 proto nodes 4.4810 ms/op 3.3709 ms/op 1.33
computeDeltas 500000 validators 7200 proto nodes 4.4845 ms/op 3.4934 ms/op 1.28
computeDeltas 750000 validators 300 proto nodes 5.9240 ms/op 5.1454 ms/op 1.15
computeDeltas 750000 validators 1200 proto nodes 5.9333 ms/op 5.1250 ms/op 1.16
computeDeltas 750000 validators 7200 proto nodes 5.6229 ms/op 5.2201 ms/op 1.08
computeDeltas 1400000 validators 300 proto nodes 11.291 ms/op 9.8807 ms/op 1.14
computeDeltas 1400000 validators 1200 proto nodes 10.959 ms/op 9.6585 ms/op 1.13
computeDeltas 1400000 validators 7200 proto nodes 11.094 ms/op 10.899 ms/op 1.02
computeDeltas 2100000 validators 300 proto nodes 15.617 ms/op 19.094 ms/op 0.82
computeDeltas 2100000 validators 1200 proto nodes 14.922 ms/op 21.321 ms/op 0.70
computeDeltas 2100000 validators 7200 proto nodes 14.947 ms/op 23.969 ms/op 0.62
altair processAttestation - 250000 vs - 7PWei normalcase 1.8098 ms/op 1.9593 ms/op 0.92
altair processAttestation - 250000 vs - 7PWei worstcase 2.7148 ms/op 2.9925 ms/op 0.91
altair processAttestation - setStatus - 1/6 committees join 69.999 us/op 128.27 us/op 0.55
altair processAttestation - setStatus - 1/3 committees join 138.01 us/op 226.08 us/op 0.61
altair processAttestation - setStatus - 1/2 committees join 223.06 us/op 316.20 us/op 0.71
altair processAttestation - setStatus - 2/3 committees join 298.36 us/op 371.16 us/op 0.80
altair processAttestation - setStatus - 4/5 committees join 432.70 us/op 520.30 us/op 0.83
altair processAttestation - setStatus - 100% committees join 534.07 us/op 624.76 us/op 0.85
altair processBlock - 250000 vs - 7PWei normalcase 6.5070 ms/op 5.4820 ms/op 1.19
altair processBlock - 250000 vs - 7PWei normalcase hashState 27.734 ms/op 26.030 ms/op 1.07
altair processBlock - 250000 vs - 7PWei worstcase 39.817 ms/op 34.020 ms/op 1.17
altair processBlock - 250000 vs - 7PWei worstcase hashState 74.339 ms/op 69.640 ms/op 1.07
phase0 processBlock - 250000 vs - 7PWei normalcase 1.7987 ms/op 1.9036 ms/op 0.94
phase0 processBlock - 250000 vs - 7PWei worstcase 24.167 ms/op 25.087 ms/op 0.96
altair processEth1Data - 250000 vs - 7PWei normalcase 272.46 us/op 328.36 us/op 0.83
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 6.8150 us/op 4.4190 us/op 1.54
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 35.235 us/op 28.808 us/op 1.22
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 10.994 us/op 6.9410 us/op 1.58
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 7.4530 us/op 6.7480 us/op 1.10
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 130.70 us/op 128.69 us/op 1.02
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 942.07 us/op 828.40 us/op 1.14
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.2373 ms/op 1.1145 ms/op 1.11
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.1865 ms/op 1.1441 ms/op 1.04
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.9855 ms/op 2.7872 ms/op 1.07
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.3108 ms/op 1.1994 ms/op 1.09
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.3390 ms/op 2.8647 ms/op 1.17
Tree 40 250000 create 205.63 ms/op 187.82 ms/op 1.09
Tree 40 250000 get(125000) 120.17 ns/op 113.83 ns/op 1.06
Tree 40 250000 set(125000) 544.81 ns/op 560.84 ns/op 0.97
Tree 40 250000 toArray() 18.600 ms/op 16.751 ms/op 1.11
Tree 40 250000 iterate all - toArray() + loop 19.371 ms/op 16.938 ms/op 1.14
Tree 40 250000 iterate all - get(i) 56.823 ms/op 45.591 ms/op 1.25
Array 250000 create 3.5482 ms/op 2.9778 ms/op 1.19
Array 250000 clone - spread 1.4740 ms/op 1.2812 ms/op 1.15
Array 250000 get(125000) 0.67400 ns/op 0.35300 ns/op 1.91
Array 250000 set(125000) 0.66100 ns/op 0.36000 ns/op 1.84
Array 250000 iterate all - loop 84.189 us/op 74.576 us/op 1.13
phase0 afterProcessEpoch - 250000 vs - 7PWei 46.251 ms/op 41.338 ms/op 1.12
Array.fill - length 1000000 2.7042 ms/op 2.5817 ms/op 1.05
Array push - length 1000000 19.503 ms/op 13.789 ms/op 1.41
Array.get 0.27241 ns/op 0.25894 ns/op 1.05
Uint8Array.get 0.34837 ns/op 0.33866 ns/op 1.03
phase0 beforeProcessEpoch - 250000 vs - 7PWei 14.886 ms/op 12.122 ms/op 1.23
altair processEpoch - mainnet_e81889 239.57 ms/op 281.34 ms/op 0.85
mainnet_e81889 - altair beforeProcessEpoch 18.722 ms/op 19.473 ms/op 0.96
mainnet_e81889 - altair processJustificationAndFinalization 16.217 us/op 12.843 us/op 1.26
mainnet_e81889 - altair processInactivityUpdates 5.7208 ms/op 4.0961 ms/op 1.40
mainnet_e81889 - altair processRewardsAndPenalties 41.907 ms/op 48.593 ms/op 0.86
mainnet_e81889 - altair processRegistryUpdates 2.5940 us/op 1.2500 us/op 2.08
mainnet_e81889 - altair processSlashings 1.2780 us/op 273.00 ns/op 4.68
mainnet_e81889 - altair processEth1DataReset 902.00 ns/op 253.00 ns/op 3.57
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.1205 ms/op 1.7566 ms/op 0.64
mainnet_e81889 - altair processSlashingsReset 4.3230 us/op 2.9420 us/op 1.47
mainnet_e81889 - altair processRandaoMixesReset 6.9260 us/op 3.4140 us/op 2.03
mainnet_e81889 - altair processHistoricalRootsUpdate 1.2960 us/op 352.00 ns/op 3.68
mainnet_e81889 - altair processParticipationFlagUpdates 3.9950 us/op 1.5100 us/op 2.65
mainnet_e81889 - altair processSyncCommitteeUpdates 902.00 ns/op 314.00 ns/op 2.87
mainnet_e81889 - altair afterProcessEpoch 44.422 ms/op 43.775 ms/op 1.01
capella processEpoch - mainnet_e217614 1.0892 s/op 1.1019 s/op 0.99
mainnet_e217614 - capella beforeProcessEpoch 71.670 ms/op 69.541 ms/op 1.03
mainnet_e217614 - capella processJustificationAndFinalization 14.652 us/op 18.628 us/op 0.79
mainnet_e217614 - capella processInactivityUpdates 18.642 ms/op 15.927 ms/op 1.17
mainnet_e217614 - capella processRewardsAndPenalties 231.55 ms/op 237.04 ms/op 0.98
mainnet_e217614 - capella processRegistryUpdates 15.166 us/op 11.889 us/op 1.28
mainnet_e217614 - capella processSlashings 755.00 ns/op 868.00 ns/op 0.87
mainnet_e217614 - capella processEth1DataReset 969.00 ns/op 327.00 ns/op 2.96
mainnet_e217614 - capella processEffectiveBalanceUpdates 17.095 ms/op 17.311 ms/op 0.99
mainnet_e217614 - capella processSlashingsReset 4.8910 us/op 2.0290 us/op 2.41
mainnet_e217614 - capella processRandaoMixesReset 3.7280 us/op 2.2400 us/op 1.66
mainnet_e217614 - capella processHistoricalRootsUpdate 812.00 ns/op 410.00 ns/op 1.98
mainnet_e217614 - capella processParticipationFlagUpdates 1.9490 us/op 1.9100 us/op 1.02
mainnet_e217614 - capella afterProcessEpoch 106.48 ms/op 105.74 ms/op 1.01
phase0 processEpoch - mainnet_e58758 288.65 ms/op 285.77 ms/op 1.01
mainnet_e58758 - phase0 beforeProcessEpoch 89.901 ms/op 63.418 ms/op 1.42
mainnet_e58758 - phase0 processJustificationAndFinalization 19.786 us/op 12.248 us/op 1.62
mainnet_e58758 - phase0 processRewardsAndPenalties 34.784 ms/op 35.465 ms/op 0.98
mainnet_e58758 - phase0 processRegistryUpdates 9.6730 us/op 11.859 us/op 0.82
mainnet_e58758 - phase0 processSlashings 869.00 ns/op 548.00 ns/op 1.59
mainnet_e58758 - phase0 processEth1DataReset 747.00 ns/op 261.00 ns/op 2.86
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 814.30 us/op 2.1376 ms/op 0.38
mainnet_e58758 - phase0 processSlashingsReset 5.2260 us/op 4.3990 us/op 1.19
mainnet_e58758 - phase0 processRandaoMixesReset 3.6550 us/op 5.9710 us/op 0.61
mainnet_e58758 - phase0 processHistoricalRootsUpdate 846.00 ns/op 576.00 ns/op 1.47
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.2040 us/op 4.6490 us/op 0.69
mainnet_e58758 - phase0 afterProcessEpoch 36.038 ms/op 37.535 ms/op 0.96
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.0017 ms/op 1.0482 ms/op 0.96
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.8746 ms/op 3.4674 ms/op 0.54
altair processInactivityUpdates - 250000 normalcase 17.320 ms/op 19.626 ms/op 0.88
altair processInactivityUpdates - 250000 worstcase 16.996 ms/op 19.547 ms/op 0.87
phase0 processRegistryUpdates - 250000 normalcase 9.2270 us/op 12.936 us/op 0.71
phase0 processRegistryUpdates - 250000 badcase_full_deposits 309.50 us/op 437.04 us/op 0.71
phase0 processRegistryUpdates - 250000 worstcase 0.5 110.84 ms/op 134.76 ms/op 0.82
altair processRewardsAndPenalties - 250000 normalcase 34.267 ms/op 43.517 ms/op 0.79
altair processRewardsAndPenalties - 250000 worstcase 43.353 ms/op 44.718 ms/op 0.97
phase0 getAttestationDeltas - 250000 normalcase 6.3054 ms/op 8.5952 ms/op 0.73
phase0 getAttestationDeltas - 250000 worstcase 6.2771 ms/op 7.3601 ms/op 0.85
phase0 processSlashings - 250000 worstcase 95.435 us/op 92.803 us/op 1.03
altair processSyncCommitteeUpdates - 250000 104.39 ms/op 104.22 ms/op 1.00
BeaconState.hashTreeRoot - No change 442.00 ns/op 186.00 ns/op 2.38
BeaconState.hashTreeRoot - 1 full validator 144.94 us/op 104.54 us/op 1.39
BeaconState.hashTreeRoot - 32 full validator 1.4787 ms/op 1.5358 ms/op 0.96
BeaconState.hashTreeRoot - 512 full validator 10.679 ms/op 12.621 ms/op 0.85
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 142.06 us/op 150.84 us/op 0.94
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.8790 ms/op 2.2765 ms/op 0.83
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 22.012 ms/op 31.186 ms/op 0.71
BeaconState.hashTreeRoot - 1 balances 106.58 us/op 139.06 us/op 0.77
BeaconState.hashTreeRoot - 32 balances 1.0473 ms/op 1.1991 ms/op 0.87
BeaconState.hashTreeRoot - 512 balances 7.7566 ms/op 10.088 ms/op 0.77
BeaconState.hashTreeRoot - 250000 balances 129.55 ms/op 189.48 ms/op 0.68
aggregationBits - 2048 els - zipIndexesInBitList 50.929 us/op 37.106 us/op 1.37
byteArrayEquals 32 47.742 ns/op 48.562 ns/op 0.98
Buffer.compare 32 15.808 ns/op 16.254 ns/op 0.97
byteArrayEquals 1024 1.2760 us/op 1.3124 us/op 0.97
Buffer.compare 1024 24.547 ns/op 24.387 ns/op 1.01
byteArrayEquals 16384 20.198 us/op 20.933 us/op 0.96
Buffer.compare 16384 187.46 ns/op 175.80 ns/op 1.07
byteArrayEquals 123687377 146.16 ms/op 161.69 ms/op 0.90
Buffer.compare 123687377 5.5138 ms/op 7.4250 ms/op 0.74
byteArrayEquals 32 - diff last byte 46.076 ns/op 52.658 ns/op 0.88
Buffer.compare 32 - diff last byte 15.199 ns/op 16.208 ns/op 0.94
byteArrayEquals 1024 - diff last byte 1.2391 us/op 1.4015 us/op 0.88
Buffer.compare 1024 - diff last byte 22.217 ns/op 23.720 ns/op 0.94
byteArrayEquals 16384 - diff last byte 19.368 us/op 21.348 us/op 0.91
Buffer.compare 16384 - diff last byte 187.16 ns/op 225.56 ns/op 0.83
byteArrayEquals 123687377 - diff last byte 147.14 ms/op 163.30 ms/op 0.90
Buffer.compare 123687377 - diff last byte 5.3933 ms/op 7.9360 ms/op 0.68
byteArrayEquals 32 - random bytes 4.7700 ns/op 4.9410 ns/op 0.97
Buffer.compare 32 - random bytes 15.169 ns/op 16.156 ns/op 0.94
byteArrayEquals 1024 - random bytes 4.7960 ns/op 5.0270 ns/op 0.95
Buffer.compare 1024 - random bytes 14.900 ns/op 15.948 ns/op 0.93
byteArrayEquals 16384 - random bytes 4.8320 ns/op 5.2280 ns/op 0.92
Buffer.compare 16384 - random bytes 14.986 ns/op 16.625 ns/op 0.90
byteArrayEquals 123687377 - random bytes 7.5900 ns/op 6.1500 ns/op 1.23
Buffer.compare 123687377 - random bytes 17.710 ns/op 20.000 ns/op 0.89
regular array get 100000 times 29.810 us/op 32.518 us/op 0.92
wrappedArray get 100000 times 29.748 us/op 32.469 us/op 0.92
arrayWithProxy get 100000 times 9.6938 ms/op 12.961 ms/op 0.75
ssz.Root.equals 38.378 ns/op 52.452 ns/op 0.73
byteArrayEquals 41.944 ns/op 45.968 ns/op 0.91
Buffer.compare 8.7390 ns/op 9.5730 ns/op 0.91
processSlot - 1 slots 12.137 us/op 16.503 us/op 0.74
processSlot - 32 slots 2.0926 ms/op 3.2445 ms/op 0.64
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 38.011 ms/op 40.355 ms/op 0.94
getCommitteeAssignments - req 1 vs - 250000 vc 1.8038 ms/op 1.8572 ms/op 0.97
getCommitteeAssignments - req 100 vs - 250000 vc 3.5153 ms/op 3.6669 ms/op 0.96
getCommitteeAssignments - req 1000 vs - 250000 vc 3.7587 ms/op 3.9910 ms/op 0.94
findModifiedValidators - 10000 modified validators 241.54 ms/op 340.62 ms/op 0.71
findModifiedValidators - 1000 modified validators 143.46 ms/op 289.83 ms/op 0.49
findModifiedValidators - 100 modified validators 135.70 ms/op 190.31 ms/op 0.71
findModifiedValidators - 10 modified validators 144.80 ms/op 232.28 ms/op 0.62
findModifiedValidators - 1 modified validators 135.00 ms/op 215.38 ms/op 0.63
findModifiedValidators - no difference 145.99 ms/op 226.42 ms/op 0.64
compare ViewDUs 3.0838 s/op 3.8806 s/op 0.79
compare each validator Uint8Array 1.1173 s/op 1.9211 s/op 0.58
compare ViewDU to Uint8Array 753.23 ms/op 1.0756 s/op 0.70
migrate state 1000000 validators, 24 modified, 0 new 704.54 ms/op 751.61 ms/op 0.94
migrate state 1000000 validators, 1700 modified, 1000 new 886.77 ms/op 967.55 ms/op 0.92
migrate state 1000000 validators, 3400 modified, 2000 new 1.1221 s/op 1.1651 s/op 0.96
migrate state 1500000 validators, 24 modified, 0 new 662.53 ms/op 790.80 ms/op 0.84
migrate state 1500000 validators, 1700 modified, 1000 new 911.90 ms/op 1.2110 s/op 0.75
migrate state 1500000 validators, 3400 modified, 2000 new 1.1103 s/op 1.3024 s/op 0.85
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 6.1000 ns/op 4.8600 ns/op 1.26
state getBlockRootAtSlot - 250000 vs - 7PWei 376.82 ns/op 988.12 ns/op 0.38
computeProposers - vc 250000 5.4958 ms/op 7.4131 ms/op 0.74
computeEpochShuffling - vc 250000 35.092 ms/op 36.312 ms/op 0.97
getNextSyncCommittee - vc 250000 106.70 ms/op 124.84 ms/op 0.85
computeSigningRoot for AttestationData 22.188 us/op 26.513 us/op 0.84
hash AttestationData serialized data then Buffer.toString(base64) 1.1877 us/op 1.3141 us/op 0.90
toHexString serialized data 811.85 ns/op 875.04 ns/op 0.93
Buffer.toString(base64) 138.27 ns/op 213.15 ns/op 0.65
nodejs block root to RootHex using toHex 126.28 ns/op 174.73 ns/op 0.72
nodejs block root to RootHex using toRootHex 79.003 ns/op 89.673 ns/op 0.88
browser block root to RootHex using the deprecated toHexString 216.69 ns/op 221.92 ns/op 0.98
browser block root to RootHex using toHex 164.95 ns/op 241.01 ns/op 0.68
browser block root to RootHex using toRootHex 146.22 ns/op 210.03 ns/op 0.70

Please sign in to comment.