Skip to content

Commit

Permalink
test: increase timeout of keystore tests (#6846)
Browse files Browse the repository at this point in the history
* test: increase timeout of keystore cache tests

* Increase hook timeout

* Consistent number formatting
  • Loading branch information
nflaig authored Jun 3, 2024
1 parent cb522bd commit 2b4c166
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {LocalKeystoreDefinition} from "../../../../../src/cmds/validator/keymana
const numberOfSigners = 10;

describe("keystoreCache", () => {
vi.setConfig({testTimeout: 10000, hookTimeout: 50000});
vi.setConfig({testTimeout: 20_000, hookTimeout: 50_000});
let definitions: LocalKeystoreDefinition[];
let signers: SignerLocal[];
let secretKeys: Uint8Array[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {LocalKeystoreDefinition} from "../../../src/cmds/validator/keymanager/in
import {LockfileError, unlockFilepath} from "../../../src/util/lockfile.js";

describe("decryptKeystoreDefinitions", () => {
vi.setConfig({testTimeout: 100_000});
vi.setConfig({testTimeout: 100_000, hookTimeout: 50_000});

const signal = new AbortController().signal;
const dataDir = path.join(testFilesDir, "decrypt-keystores-test");
Expand Down

1 comment on commit 2b4c166

@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: 2b4c166 Previous: cb522bd Ratio
pickEth1Vote - max votes 23.963 ms/op 7.2678 ms/op 3.30
Full benchmark results
Benchmark suite Current: 2b4c166 Previous: cb522bd Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.1497 ms/op 663.26 us/op 1.73
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 73.916 us/op 59.991 us/op 1.23
BLS verify - blst-native 1.3844 ms/op 1.2037 ms/op 1.15
BLS verifyMultipleSignatures 3 - blst-native 2.8878 ms/op 2.4424 ms/op 1.18
BLS verifyMultipleSignatures 8 - blst-native 6.2758 ms/op 5.2722 ms/op 1.19
BLS verifyMultipleSignatures 32 - blst-native 22.334 ms/op 20.075 ms/op 1.11
BLS verifyMultipleSignatures 64 - blst-native 43.473 ms/op 38.266 ms/op 1.14
BLS verifyMultipleSignatures 128 - blst-native 88.859 ms/op 75.535 ms/op 1.18
BLS deserializing 10000 signatures 1.0211 s/op 862.04 ms/op 1.18
BLS deserializing 100000 signatures 9.8257 s/op 8.6251 s/op 1.14
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.4234 ms/op 1.2736 ms/op 1.12
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.6235 ms/op 1.4505 ms/op 1.12
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.5563 ms/op 2.2431 ms/op 1.14
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.8369 ms/op 3.3310 ms/op 1.15
BLS verifyMultipleSignatures - same message - 128 - blst-native 6.5789 ms/op 5.3953 ms/op 1.22
BLS aggregatePubkeys 32 - blst-native 32.302 us/op 27.472 us/op 1.18
BLS aggregatePubkeys 128 - blst-native 119.01 us/op 104.27 us/op 1.14
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 77.389 ms/op 53.472 ms/op 1.45
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 76.869 ms/op 56.415 ms/op 1.36
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 65.599 ms/op 33.694 ms/op 1.95
getSlashingsAndExits - default max 224.69 us/op 111.72 us/op 2.01
getSlashingsAndExits - 2k 426.57 us/op 287.44 us/op 1.48
proposeBlockBody type=full, size=empty 11.191 ms/op 5.4951 ms/op 2.04
isKnown best case - 1 super set check 655.00 ns/op 317.00 ns/op 2.07
isKnown normal case - 2 super set checks 658.00 ns/op 305.00 ns/op 2.16
isKnown worse case - 16 super set checks 648.00 ns/op 468.00 ns/op 1.38
InMemoryCheckpointStateCache - add get delete 7.7720 us/op 6.1340 us/op 1.27
validate api signedAggregateAndProof - struct 3.3303 ms/op 2.5503 ms/op 1.31
validate gossip signedAggregateAndProof - struct 3.0932 ms/op 2.5406 ms/op 1.22
validate gossip attestation - vc 640000 1.4807 ms/op 1.2134 ms/op 1.22
batch validate gossip attestation - vc 640000 - chunk 32 236.13 us/op 161.93 us/op 1.46
batch validate gossip attestation - vc 640000 - chunk 64 243.25 us/op 144.91 us/op 1.68
batch validate gossip attestation - vc 640000 - chunk 128 225.22 us/op 145.31 us/op 1.55
batch validate gossip attestation - vc 640000 - chunk 256 227.19 us/op 138.94 us/op 1.64
pickEth1Vote - no votes 2.0206 ms/op 1.2223 ms/op 1.65
pickEth1Vote - max votes 23.963 ms/op 7.2678 ms/op 3.30
pickEth1Vote - Eth1Data hashTreeRoot value x2048 28.539 ms/op 13.298 ms/op 2.15
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 48.078 ms/op 17.935 ms/op 2.68
pickEth1Vote - Eth1Data fastSerialize value x2048 1.1524 ms/op 556.80 us/op 2.07
pickEth1Vote - Eth1Data fastSerialize tree x2048 14.017 ms/op 3.9247 ms/op 3.57
bytes32 toHexString 1.0700 us/op 460.00 ns/op 2.33
bytes32 Buffer.toString(hex) 293.00 ns/op 246.00 ns/op 1.19
bytes32 Buffer.toString(hex) from Uint8Array 637.00 ns/op 382.00 ns/op 1.67
bytes32 Buffer.toString(hex) + 0x 321.00 ns/op 253.00 ns/op 1.27
Object access 1 prop 0.22800 ns/op 0.16600 ns/op 1.37
Map access 1 prop 0.16500 ns/op 0.14000 ns/op 1.18
Object get x1000 7.4320 ns/op 6.1770 ns/op 1.20
Map get x1000 7.8420 ns/op 6.7060 ns/op 1.17
Object set x1000 53.641 ns/op 37.614 ns/op 1.43
Map set x1000 33.004 ns/op 24.692 ns/op 1.34
Return object 10000 times 0.33970 ns/op 0.30140 ns/op 1.13
Throw Error 10000 times 4.1471 us/op 3.4211 us/op 1.21
fastMsgIdFn sha256 / 200 bytes 2.5820 us/op 2.2700 us/op 1.14
fastMsgIdFn h32 xxhash / 200 bytes 335.00 ns/op 285.00 ns/op 1.18
fastMsgIdFn h64 xxhash / 200 bytes 320.00 ns/op 274.00 ns/op 1.17
fastMsgIdFn sha256 / 1000 bytes 8.5540 us/op 7.3720 us/op 1.16
fastMsgIdFn h32 xxhash / 1000 bytes 481.00 ns/op 401.00 ns/op 1.20
fastMsgIdFn h64 xxhash / 1000 bytes 413.00 ns/op 351.00 ns/op 1.18
fastMsgIdFn sha256 / 10000 bytes 72.320 us/op 64.247 us/op 1.13
fastMsgIdFn h32 xxhash / 10000 bytes 2.2170 us/op 1.8920 us/op 1.17
fastMsgIdFn h64 xxhash / 10000 bytes 1.4590 us/op 1.2150 us/op 1.20
send data - 1000 256B messages 16.915 ms/op 13.353 ms/op 1.27
send data - 1000 512B messages 23.284 ms/op 18.610 ms/op 1.25
send data - 1000 1024B messages 33.939 ms/op 30.586 ms/op 1.11
send data - 1000 1200B messages 34.351 ms/op 27.543 ms/op 1.25
send data - 1000 2048B messages 35.823 ms/op 33.499 ms/op 1.07
send data - 1000 4096B messages 35.141 ms/op 32.680 ms/op 1.08
send data - 1000 16384B messages 77.182 ms/op 69.855 ms/op 1.10
send data - 1000 65536B messages 209.66 ms/op 225.63 ms/op 0.93
enrSubnets - fastDeserialize 64 bits 1.2730 us/op 1.1790 us/op 1.08
enrSubnets - ssz BitVector 64 bits 446.00 ns/op 370.00 ns/op 1.21
enrSubnets - fastDeserialize 4 bits 210.00 ns/op 158.00 ns/op 1.33
enrSubnets - ssz BitVector 4 bits 465.00 ns/op 359.00 ns/op 1.30
prioritizePeers score -10:0 att 32-0.1 sync 2-0 182.67 us/op 146.91 us/op 1.24
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 172.16 us/op 164.10 us/op 1.05
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 306.09 us/op 246.76 us/op 1.24
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 446.85 us/op 423.31 us/op 1.06
prioritizePeers score 0:0 att 64-1 sync 4-1 770.90 us/op 777.54 us/op 0.99
array of 16000 items push then shift 1.7870 us/op 1.6487 us/op 1.08
LinkedList of 16000 items push then shift 8.0480 ns/op 7.5050 ns/op 1.07
array of 16000 items push then pop 159.40 ns/op 117.40 ns/op 1.36
LinkedList of 16000 items push then pop 7.9820 ns/op 7.0710 ns/op 1.13
array of 24000 items push then shift 2.5877 us/op 2.4007 us/op 1.08
LinkedList of 24000 items push then shift 7.7380 ns/op 7.1620 ns/op 1.08
array of 24000 items push then pop 164.76 ns/op 174.16 ns/op 0.95
LinkedList of 24000 items push then pop 7.3820 ns/op 7.3010 ns/op 1.01
intersect bitArray bitLen 8 6.9820 ns/op 6.4680 ns/op 1.08
intersect array and set length 8 49.157 ns/op 50.470 ns/op 0.97
intersect bitArray bitLen 128 32.747 ns/op 29.827 ns/op 1.10
intersect array and set length 128 738.37 ns/op 730.66 ns/op 1.01
bitArray.getTrueBitIndexes() bitLen 128 1.7020 us/op 2.0630 us/op 0.83
bitArray.getTrueBitIndexes() bitLen 248 3.5670 us/op 3.3310 us/op 1.07
bitArray.getTrueBitIndexes() bitLen 512 7.3490 us/op 6.5060 us/op 1.13
Buffer.concat 32 items 1.1060 us/op 991.00 ns/op 1.12
Uint8Array.set 32 items 1.7540 us/op 2.3390 us/op 0.75
Buffer.copy 1.9910 us/op 1.6870 us/op 1.18
Uint8Array.set - with subarray 2.6440 us/op 2.4630 us/op 1.07
Uint8Array.set - without subarray 1.5940 us/op 1.2750 us/op 1.25
Set add up to 64 items then delete first 2.4632 us/op 2.2264 us/op 1.11
OrderedSet add up to 64 items then delete first 3.8092 us/op 3.4599 us/op 1.10
Set add up to 64 items then delete last 3.0598 us/op 2.5994 us/op 1.18
OrderedSet add up to 64 items then delete last 4.2340 us/op 3.7231 us/op 1.14
Set add up to 64 items then delete middle 3.1802 us/op 2.6410 us/op 1.20
OrderedSet add up to 64 items then delete middle 6.2730 us/op 5.6789 us/op 1.10
Set add up to 128 items then delete first 6.7561 us/op 5.6499 us/op 1.20
OrderedSet add up to 128 items then delete first 8.9843 us/op 9.0025 us/op 1.00
Set add up to 128 items then delete last 5.7336 us/op 5.3989 us/op 1.06
OrderedSet add up to 128 items then delete last 8.6393 us/op 8.2177 us/op 1.05
Set add up to 128 items then delete middle 5.8044 us/op 6.1554 us/op 0.94
OrderedSet add up to 128 items then delete middle 15.588 us/op 14.820 us/op 1.05
Set add up to 256 items then delete first 12.253 us/op 10.709 us/op 1.14
OrderedSet add up to 256 items then delete first 18.440 us/op 17.157 us/op 1.07
Set add up to 256 items then delete last 11.387 us/op 10.439 us/op 1.09
OrderedSet add up to 256 items then delete last 17.142 us/op 14.985 us/op 1.14
Set add up to 256 items then delete middle 11.625 us/op 9.9168 us/op 1.17
OrderedSet add up to 256 items then delete middle 48.080 us/op 43.187 us/op 1.11
transfer serialized Status (84 B) 1.6720 us/op 1.4270 us/op 1.17
copy serialized Status (84 B) 1.3540 us/op 1.1570 us/op 1.17
transfer serialized SignedVoluntaryExit (112 B) 1.8760 us/op 1.4700 us/op 1.28
copy serialized SignedVoluntaryExit (112 B) 1.3700 us/op 1.2510 us/op 1.10
transfer serialized ProposerSlashing (416 B) 1.9650 us/op 2.0290 us/op 0.97
copy serialized ProposerSlashing (416 B) 1.9050 us/op 1.9040 us/op 1.00
transfer serialized Attestation (485 B) 1.8350 us/op 2.2280 us/op 0.82
copy serialized Attestation (485 B) 1.8230 us/op 2.0960 us/op 0.87
transfer serialized AttesterSlashing (33232 B) 2.8540 us/op 2.1120 us/op 1.35
copy serialized AttesterSlashing (33232 B) 7.9770 us/op 5.6740 us/op 1.41
transfer serialized Small SignedBeaconBlock (128000 B) 3.8260 us/op 2.4960 us/op 1.53
copy serialized Small SignedBeaconBlock (128000 B) 19.482 us/op 18.730 us/op 1.04
transfer serialized Avg SignedBeaconBlock (200000 B) 3.4560 us/op 3.8500 us/op 0.90
copy serialized Avg SignedBeaconBlock (200000 B) 28.184 us/op 24.431 us/op 1.15
transfer serialized BlobsSidecar (524380 B) 4.4020 us/op 3.5620 us/op 1.24
copy serialized BlobsSidecar (524380 B) 131.29 us/op 179.36 us/op 0.73
transfer serialized Big SignedBeaconBlock (1000000 B) 4.0080 us/op 3.6290 us/op 1.10
copy serialized Big SignedBeaconBlock (1000000 B) 232.02 us/op 158.64 us/op 1.46
pass gossip attestations to forkchoice per slot 3.5214 ms/op 3.0988 ms/op 1.14
forkChoice updateHead vc 100000 bc 64 eq 0 620.04 us/op 645.70 us/op 0.96
forkChoice updateHead vc 600000 bc 64 eq 0 4.2208 ms/op 3.0711 ms/op 1.37
forkChoice updateHead vc 1000000 bc 64 eq 0 5.9770 ms/op 5.3854 ms/op 1.11
forkChoice updateHead vc 600000 bc 320 eq 0 3.5193 ms/op 3.0903 ms/op 1.14
forkChoice updateHead vc 600000 bc 1200 eq 0 3.6431 ms/op 3.1612 ms/op 1.15
forkChoice updateHead vc 600000 bc 7200 eq 0 4.8126 ms/op 3.6578 ms/op 1.32
forkChoice updateHead vc 600000 bc 64 eq 1000 13.254 ms/op 11.453 ms/op 1.16
forkChoice updateHead vc 600000 bc 64 eq 10000 12.084 ms/op 10.903 ms/op 1.11
forkChoice updateHead vc 600000 bc 64 eq 300000 17.190 ms/op 14.655 ms/op 1.17
computeDeltas 500000 validators 300 proto nodes 4.4344 ms/op 3.7698 ms/op 1.18
computeDeltas 500000 validators 1200 proto nodes 4.9595 ms/op 3.6484 ms/op 1.36
computeDeltas 500000 validators 7200 proto nodes 3.7941 ms/op 3.6927 ms/op 1.03
computeDeltas 750000 validators 300 proto nodes 5.6874 ms/op 5.4493 ms/op 1.04
computeDeltas 750000 validators 1200 proto nodes 6.1287 ms/op 5.2352 ms/op 1.17
computeDeltas 750000 validators 7200 proto nodes 6.0811 ms/op 5.1974 ms/op 1.17
computeDeltas 1400000 validators 300 proto nodes 11.219 ms/op 9.6500 ms/op 1.16
computeDeltas 1400000 validators 1200 proto nodes 12.959 ms/op 9.9519 ms/op 1.30
computeDeltas 1400000 validators 7200 proto nodes 13.538 ms/op 9.7218 ms/op 1.39
computeDeltas 2100000 validators 300 proto nodes 22.091 ms/op 17.664 ms/op 1.25
computeDeltas 2100000 validators 1200 proto nodes 19.062 ms/op 18.805 ms/op 1.01
computeDeltas 2100000 validators 7200 proto nodes 18.284 ms/op 21.375 ms/op 0.86
altair processAttestation - 250000 vs - 7PWei normalcase 1.9924 ms/op 3.2667 ms/op 0.61
altair processAttestation - 250000 vs - 7PWei worstcase 2.9414 ms/op 4.7673 ms/op 0.62
altair processAttestation - setStatus - 1/6 committees join 104.51 us/op 136.92 us/op 0.76
altair processAttestation - setStatus - 1/3 committees join 210.06 us/op 253.66 us/op 0.83
altair processAttestation - setStatus - 1/2 committees join 288.52 us/op 360.56 us/op 0.80
altair processAttestation - setStatus - 2/3 committees join 387.70 us/op 470.05 us/op 0.82
altair processAttestation - setStatus - 4/5 committees join 576.62 us/op 653.86 us/op 0.88
altair processAttestation - setStatus - 100% committees join 703.16 us/op 712.39 us/op 0.99
altair processBlock - 250000 vs - 7PWei normalcase 8.5304 ms/op 6.3040 ms/op 1.35
altair processBlock - 250000 vs - 7PWei normalcase hashState 32.243 ms/op 42.266 ms/op 0.76
altair processBlock - 250000 vs - 7PWei worstcase 48.870 ms/op 55.463 ms/op 0.88
altair processBlock - 250000 vs - 7PWei worstcase hashState 93.252 ms/op 110.87 ms/op 0.84
phase0 processBlock - 250000 vs - 7PWei normalcase 2.5381 ms/op 3.3145 ms/op 0.77
phase0 processBlock - 250000 vs - 7PWei worstcase 34.843 ms/op 35.880 ms/op 0.97
altair processEth1Data - 250000 vs - 7PWei normalcase 645.66 us/op 676.39 us/op 0.95
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 12.145 us/op 12.291 us/op 0.99
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 29.847 us/op 44.554 us/op 0.67
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 11.995 us/op 14.708 us/op 0.82
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 9.0430 us/op 12.677 us/op 0.71
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 109.52 us/op 122.97 us/op 0.89
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 788.50 us/op 686.36 us/op 1.15
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.0771 ms/op 956.02 us/op 1.13
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.0031 ms/op 936.51 us/op 1.07
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.0413 ms/op 2.2803 ms/op 1.33
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.9062 ms/op 1.8613 ms/op 1.02
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.7271 ms/op 5.4550 ms/op 0.87
Tree 40 250000 create 326.73 ms/op 646.26 ms/op 0.51
Tree 40 250000 get(125000) 172.88 ns/op 194.82 ns/op 0.89
Tree 40 250000 set(125000) 801.64 ns/op 2.0359 us/op 0.39
Tree 40 250000 toArray() 25.551 ms/op 27.234 ms/op 0.94
Tree 40 250000 iterate all - toArray() + loop 23.635 ms/op 30.311 ms/op 0.78
Tree 40 250000 iterate all - get(i) 66.117 ms/op 73.984 ms/op 0.89
MutableVector 250000 create 13.897 ms/op 19.255 ms/op 0.72
MutableVector 250000 get(125000) 11.863 ns/op 7.2940 ns/op 1.63
MutableVector 250000 set(125000) 442.80 ns/op 659.91 ns/op 0.67
MutableVector 250000 toArray() 5.4357 ms/op 5.7409 ms/op 0.95
MutableVector 250000 iterate all - toArray() + loop 5.5077 ms/op 5.9898 ms/op 0.92
MutableVector 250000 iterate all - get(i) 1.8173 ms/op 1.9932 ms/op 0.91
Array 250000 create 4.4153 ms/op 5.5609 ms/op 0.79
Array 250000 clone - spread 3.1987 ms/op 5.2783 ms/op 0.61
Array 250000 get(125000) 0.48400 ns/op 0.58700 ns/op 0.82
Array 250000 set(125000) 0.57500 ns/op 0.61400 ns/op 0.94
Array 250000 iterate all - loop 115.87 us/op 92.960 us/op 1.25
effectiveBalanceIncrements clone Uint8Array 300000 80.243 us/op 87.075 us/op 0.92
effectiveBalanceIncrements clone MutableVector 300000 153.00 ns/op 142.00 ns/op 1.08
effectiveBalanceIncrements rw all Uint8Array 300000 229.69 us/op 212.93 us/op 1.08
effectiveBalanceIncrements rw all MutableVector 300000 151.01 ms/op 187.34 ms/op 0.81
phase0 afterProcessEpoch - 250000 vs - 7PWei 101.73 ms/op 102.22 ms/op 1.00
phase0 beforeProcessEpoch - 250000 vs - 7PWei 70.805 ms/op 60.311 ms/op 1.17
altair processEpoch - mainnet_e81889 521.47 ms/op 490.51 ms/op 1.06
mainnet_e81889 - altair beforeProcessEpoch 95.868 ms/op 84.889 ms/op 1.13
mainnet_e81889 - altair processJustificationAndFinalization 21.155 us/op 25.557 us/op 0.83
mainnet_e81889 - altair processInactivityUpdates 7.4156 ms/op 8.3884 ms/op 0.88
mainnet_e81889 - altair processRewardsAndPenalties 62.673 ms/op 53.686 ms/op 1.17
mainnet_e81889 - altair processRegistryUpdates 3.2420 us/op 3.5460 us/op 0.91
mainnet_e81889 - altair processSlashings 867.00 ns/op 1.1440 us/op 0.76
mainnet_e81889 - altair processEth1DataReset 607.00 ns/op 1.0920 us/op 0.56
mainnet_e81889 - altair processEffectiveBalanceUpdates 4.4125 ms/op 2.0036 ms/op 2.20
mainnet_e81889 - altair processSlashingsReset 6.1570 us/op 9.0620 us/op 0.68
mainnet_e81889 - altair processRandaoMixesReset 6.5040 us/op 7.4890 us/op 0.87
mainnet_e81889 - altair processHistoricalRootsUpdate 410.00 ns/op 1.3060 us/op 0.31
mainnet_e81889 - altair processParticipationFlagUpdates 2.3210 us/op 4.3000 us/op 0.54
mainnet_e81889 - altair processSyncCommitteeUpdates 626.00 ns/op 1.2530 us/op 0.50
mainnet_e81889 - altair afterProcessEpoch 106.73 ms/op 111.91 ms/op 0.95
capella processEpoch - mainnet_e217614 2.1985 s/op 1.5051 s/op 1.46
mainnet_e217614 - capella beforeProcessEpoch 385.47 ms/op 288.52 ms/op 1.34
mainnet_e217614 - capella processJustificationAndFinalization 32.033 us/op 23.564 us/op 1.36
mainnet_e217614 - capella processInactivityUpdates 20.595 ms/op 17.527 ms/op 1.18
mainnet_e217614 - capella processRewardsAndPenalties 299.66 ms/op 230.35 ms/op 1.30
mainnet_e217614 - capella processRegistryUpdates 20.124 us/op 13.083 us/op 1.54
mainnet_e217614 - capella processSlashings 837.00 ns/op 447.00 ns/op 1.87
mainnet_e217614 - capella processEth1DataReset 840.00 ns/op 298.00 ns/op 2.82
mainnet_e217614 - capella processEffectiveBalanceUpdates 13.296 ms/op 13.447 ms/op 0.99
mainnet_e217614 - capella processSlashingsReset 3.4290 us/op 2.5440 us/op 1.35
mainnet_e217614 - capella processRandaoMixesReset 6.0120 us/op 4.1840 us/op 1.44
mainnet_e217614 - capella processHistoricalRootsUpdate 474.00 ns/op 619.00 ns/op 0.77
mainnet_e217614 - capella processParticipationFlagUpdates 3.8220 us/op 2.0570 us/op 1.86
mainnet_e217614 - capella afterProcessEpoch 278.81 ms/op 272.09 ms/op 1.02
phase0 processEpoch - mainnet_e58758 399.15 ms/op 399.62 ms/op 1.00
mainnet_e58758 - phase0 beforeProcessEpoch 120.86 ms/op 121.68 ms/op 0.99
mainnet_e58758 - phase0 processJustificationAndFinalization 20.971 us/op 14.037 us/op 1.49
mainnet_e58758 - phase0 processRewardsAndPenalties 23.543 ms/op 32.445 ms/op 0.73
mainnet_e58758 - phase0 processRegistryUpdates 9.6660 us/op 7.6440 us/op 1.26
mainnet_e58758 - phase0 processSlashings 320.00 ns/op 296.00 ns/op 1.08
mainnet_e58758 - phase0 processEth1DataReset 355.00 ns/op 307.00 ns/op 1.16
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 931.28 us/op 1.1615 ms/op 0.80
mainnet_e58758 - phase0 processSlashingsReset 3.6390 us/op 3.4100 us/op 1.07
mainnet_e58758 - phase0 processRandaoMixesReset 4.9880 us/op 4.3310 us/op 1.15
mainnet_e58758 - phase0 processHistoricalRootsUpdate 846.00 ns/op 347.00 ns/op 2.44
mainnet_e58758 - phase0 processParticipationRecordUpdates 5.0670 us/op 2.5660 us/op 1.97
mainnet_e58758 - phase0 afterProcessEpoch 84.687 ms/op 76.197 ms/op 1.11
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.2256 ms/op 1.5782 ms/op 0.78
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.9843 ms/op 1.9410 ms/op 1.02
altair processInactivityUpdates - 250000 normalcase 21.792 ms/op 16.953 ms/op 1.29
altair processInactivityUpdates - 250000 worstcase 22.399 ms/op 16.998 ms/op 1.32
phase0 processRegistryUpdates - 250000 normalcase 8.0740 us/op 6.7890 us/op 1.19
phase0 processRegistryUpdates - 250000 badcase_full_deposits 301.35 us/op 246.19 us/op 1.22
phase0 processRegistryUpdates - 250000 worstcase 0.5 142.41 ms/op 111.08 ms/op 1.28
altair processRewardsAndPenalties - 250000 normalcase 46.326 ms/op 36.539 ms/op 1.27
altair processRewardsAndPenalties - 250000 worstcase 36.682 ms/op 37.121 ms/op 0.99
phase0 getAttestationDeltas - 250000 normalcase 8.6396 ms/op 7.1051 ms/op 1.22
phase0 getAttestationDeltas - 250000 worstcase 11.928 ms/op 7.9287 ms/op 1.50
phase0 processSlashings - 250000 worstcase 101.93 us/op 90.725 us/op 1.12
altair processSyncCommitteeUpdates - 250000 145.75 ms/op 117.08 ms/op 1.24
BeaconState.hashTreeRoot - No change 409.00 ns/op 263.00 ns/op 1.56
BeaconState.hashTreeRoot - 1 full validator 122.83 us/op 82.365 us/op 1.49
BeaconState.hashTreeRoot - 32 full validator 1.2922 ms/op 838.21 us/op 1.54
BeaconState.hashTreeRoot - 512 full validator 13.798 ms/op 8.7771 ms/op 1.57
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 158.24 us/op 105.69 us/op 1.50
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.8373 ms/op 1.3975 ms/op 2.03
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 23.692 ms/op 19.268 ms/op 1.23
BeaconState.hashTreeRoot - 1 balances 135.63 us/op 127.62 us/op 1.06
BeaconState.hashTreeRoot - 32 balances 1.0586 ms/op 1.2048 ms/op 0.88
BeaconState.hashTreeRoot - 512 balances 10.537 ms/op 11.261 ms/op 0.94
BeaconState.hashTreeRoot - 250000 balances 241.52 ms/op 176.66 ms/op 1.37
aggregationBits - 2048 els - zipIndexesInBitList 40.172 us/op 25.913 us/op 1.55
byteArrayEquals 32 64.278 ns/op 56.093 ns/op 1.15
Buffer.compare 32 56.688 ns/op 47.647 ns/op 1.19
byteArrayEquals 1024 1.8199 us/op 1.6017 us/op 1.14
Buffer.compare 1024 65.925 ns/op 53.919 ns/op 1.22
byteArrayEquals 16384 29.106 us/op 25.769 us/op 1.13
Buffer.compare 16384 281.25 ns/op 241.29 ns/op 1.17
byteArrayEquals 123687377 224.77 ms/op 196.07 ms/op 1.15
Buffer.compare 123687377 10.345 ms/op 8.1746 ms/op 1.27
byteArrayEquals 32 - diff last byte 60.539 ns/op 52.777 ns/op 1.15
Buffer.compare 32 - diff last byte 55.244 ns/op 48.522 ns/op 1.14
byteArrayEquals 1024 - diff last byte 1.7674 us/op 1.6212 us/op 1.09
Buffer.compare 1024 - diff last byte 62.710 ns/op 55.385 ns/op 1.13
byteArrayEquals 16384 - diff last byte 28.019 us/op 25.307 us/op 1.11
Buffer.compare 16384 - diff last byte 247.49 ns/op 229.25 ns/op 1.08
byteArrayEquals 123687377 - diff last byte 201.57 ms/op 192.03 ms/op 1.05
Buffer.compare 123687377 - diff last byte 11.055 ms/op 6.8805 ms/op 1.61
byteArrayEquals 32 - random bytes 5.9800 ns/op 5.3420 ns/op 1.12
Buffer.compare 32 - random bytes 55.184 ns/op 50.527 ns/op 1.09
byteArrayEquals 1024 - random bytes 6.2700 ns/op 5.3770 ns/op 1.17
Buffer.compare 1024 - random bytes 52.685 ns/op 45.995 ns/op 1.15
byteArrayEquals 16384 - random bytes 6.0080 ns/op 5.1080 ns/op 1.18
Buffer.compare 16384 - random bytes 52.020 ns/op 45.922 ns/op 1.13
byteArrayEquals 123687377 - random bytes 7.3300 ns/op 6.4000 ns/op 1.15
Buffer.compare 123687377 - random bytes 54.360 ns/op 47.330 ns/op 1.15
regular array get 100000 times 37.052 us/op 32.941 us/op 1.12
wrappedArray get 100000 times 37.579 us/op 39.111 us/op 0.96
arrayWithProxy get 100000 times 14.697 ms/op 13.474 ms/op 1.09
ssz.Root.equals 52.930 ns/op 46.219 ns/op 1.15
byteArrayEquals 56.516 ns/op 45.501 ns/op 1.24
Buffer.compare 13.789 ns/op 10.373 ns/op 1.33
shuffle list - 16384 els 7.8805 ms/op 6.3347 ms/op 1.24
shuffle list - 250000 els 125.21 ms/op 93.903 ms/op 1.33
processSlot - 1 slots 19.377 us/op 12.914 us/op 1.50
processSlot - 32 slots 3.8024 ms/op 2.2428 ms/op 1.70
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 50.033 ms/op 37.272 ms/op 1.34
getCommitteeAssignments - req 1 vs - 250000 vc 2.5755 ms/op 2.1759 ms/op 1.18
getCommitteeAssignments - req 100 vs - 250000 vc 5.0563 ms/op 4.1876 ms/op 1.21
getCommitteeAssignments - req 1000 vs - 250000 vc 5.3950 ms/op 4.5842 ms/op 1.18
findModifiedValidators - 10000 modified validators 741.10 ms/op 272.30 ms/op 2.72
findModifiedValidators - 1000 modified validators 420.14 ms/op 190.20 ms/op 2.21
findModifiedValidators - 100 modified validators 387.61 ms/op 178.11 ms/op 2.18
findModifiedValidators - 10 modified validators 218.67 ms/op 177.39 ms/op 1.23
findModifiedValidators - 1 modified validators 231.17 ms/op 146.14 ms/op 1.58
findModifiedValidators - no difference 256.25 ms/op 184.97 ms/op 1.39
compare ViewDUs 3.6943 s/op 3.2297 s/op 1.14
compare each validator Uint8Array 2.1220 s/op 1.7034 s/op 1.25
compare ViewDU to Uint8Array 1.8292 s/op 1.3033 s/op 1.40
migrate state 1000000 validators, 24 modified, 0 new 892.38 ms/op 586.73 ms/op 1.52
migrate state 1000000 validators, 1700 modified, 1000 new 1.1437 s/op 864.09 ms/op 1.32
migrate state 1000000 validators, 3400 modified, 2000 new 1.4353 s/op 1.0345 s/op 1.39
migrate state 1500000 validators, 24 modified, 0 new 849.04 ms/op 621.22 ms/op 1.37
migrate state 1500000 validators, 1700 modified, 1000 new 1.2118 s/op 949.37 ms/op 1.28
migrate state 1500000 validators, 3400 modified, 2000 new 1.4304 s/op 1.1819 s/op 1.21
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 6.2700 ns/op 5.1900 ns/op 1.21
state getBlockRootAtSlot - 250000 vs - 7PWei 833.28 ns/op 791.40 ns/op 1.05
computeProposers - vc 250000 11.368 ms/op 8.8450 ms/op 1.29
computeEpochShuffling - vc 250000 115.90 ms/op 96.919 ms/op 1.20
getNextSyncCommittee - vc 250000 203.00 ms/op 137.27 ms/op 1.48
computeSigningRoot for AttestationData 31.200 us/op 22.538 us/op 1.38
hash AttestationData serialized data then Buffer.toString(base64) 1.8998 us/op 1.6464 us/op 1.15
toHexString serialized data 1.6904 us/op 1.0125 us/op 1.67
Buffer.toString(base64) 283.21 ns/op 195.07 ns/op 1.45

Please sign in to comment.