Skip to content

Commit

Permalink
chore: remove unused metricsRegistries (#6957)
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain authored Jul 16, 2024
1 parent bd20876 commit e57e4b7
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/cli/src/cmds/beacon/handler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import path from "node:path";
import {getHeapStatistics} from "node:v8";
import {Registry} from "prom-client";
import {ErrorAborted} from "@lodestar/utils";
import {LevelDbController} from "@lodestar/db";
import {BeaconNode, BeaconDb} from "@lodestar/beacon-node";
Expand Down Expand Up @@ -61,13 +60,6 @@ export async function beaconHandler(args: BeaconArgs & GlobalArgs): Promise<void

if (ACTIVE_PRESET === PresetName.minimal) logger.info("ACTIVE_PRESET == minimal preset");

// additional metrics registries
const metricsRegistries: Registry[] = [];
let networkRegistry: Registry | undefined;
if (options.metrics.enabled) {
networkRegistry = new Registry();
metricsRegistries.push(networkRegistry);
}
const db = new BeaconDb(config, await LevelDbController.create(options.db, {metrics: null, logger}));
logger.info("Connected to LevelDB database", {path: options.db.name});

Expand All @@ -92,7 +84,6 @@ export async function beaconHandler(args: BeaconArgs & GlobalArgs): Promise<void
peerStoreDir: beaconPaths.peerStoreDir,
anchorState,
wsCheckpoint,
metricsRegistries,
});

// dev debug option to have access to the BN instance
Expand Down

1 comment on commit e57e4b7

@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: e57e4b7 Previous: bd20876 Ratio
Array.fill - length 1000000 8.0721 ms/op 2.5278 ms/op 3.19
Full benchmark results
Benchmark suite Current: e57e4b7 Previous: bd20876 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 797.37 us/op 462.34 us/op 1.72
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 78.703 us/op 42.148 us/op 1.87
BLS verify - blst-native 1.4024 ms/op 1.0754 ms/op 1.30
BLS verifyMultipleSignatures 3 - blst-native 2.8354 ms/op 2.2552 ms/op 1.26
BLS verifyMultipleSignatures 8 - blst-native 6.2535 ms/op 4.9839 ms/op 1.25
BLS verifyMultipleSignatures 32 - blst-native 23.107 ms/op 18.632 ms/op 1.24
BLS verifyMultipleSignatures 64 - blst-native 45.457 ms/op 36.747 ms/op 1.24
BLS verifyMultipleSignatures 128 - blst-native 93.015 ms/op 73.686 ms/op 1.26
BLS deserializing 10000 signatures 928.59 ms/op 753.21 ms/op 1.23
BLS deserializing 100000 signatures 9.2382 s/op 7.7125 s/op 1.20
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.4299 ms/op 1.1547 ms/op 1.24
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.5140 ms/op 1.2828 ms/op 1.18
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.3638 ms/op 2.0093 ms/op 1.18
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.4993 ms/op 3.0044 ms/op 1.16
BLS verifyMultipleSignatures - same message - 128 - blst-native 7.0991 ms/op 5.7848 ms/op 1.23
BLS aggregatePubkeys 32 - blst-native 28.226 us/op 23.381 us/op 1.21
BLS aggregatePubkeys 128 - blst-native 105.20 us/op 86.907 us/op 1.21
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 72.206 ms/op 47.945 ms/op 1.51
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 65.167 ms/op 54.557 ms/op 1.19
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 45.241 ms/op 28.833 ms/op 1.57
getSlashingsAndExits - default max 145.70 us/op 99.113 us/op 1.47
getSlashingsAndExits - 2k 342.13 us/op 242.22 us/op 1.41
proposeBlockBody type=full, size=empty 6.1757 ms/op 4.7829 ms/op 1.29
isKnown best case - 1 super set check 323.00 ns/op 475.00 ns/op 0.68
isKnown normal case - 2 super set checks 391.00 ns/op 442.00 ns/op 0.88
isKnown worse case - 16 super set checks 451.00 ns/op 442.00 ns/op 1.02
InMemoryCheckpointStateCache - add get delete 6.0510 us/op 4.4130 us/op 1.37
validate api signedAggregateAndProof - struct 2.8229 ms/op 2.3442 ms/op 1.20
validate gossip signedAggregateAndProof - struct 2.7530 ms/op 2.3540 ms/op 1.17
validate gossip attestation - vc 640000 1.3341 ms/op 1.1273 ms/op 1.18
batch validate gossip attestation - vc 640000 - chunk 32 165.23 us/op 128.24 us/op 1.29
batch validate gossip attestation - vc 640000 - chunk 64 145.68 us/op 116.13 us/op 1.25
batch validate gossip attestation - vc 640000 - chunk 128 131.71 us/op 110.45 us/op 1.19
batch validate gossip attestation - vc 640000 - chunk 256 121.78 us/op 104.34 us/op 1.17
pickEth1Vote - no votes 1.1927 ms/op 813.20 us/op 1.47
pickEth1Vote - max votes 11.439 ms/op 7.6236 ms/op 1.50
pickEth1Vote - Eth1Data hashTreeRoot value x2048 17.309 ms/op 14.460 ms/op 1.20
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 23.183 ms/op 17.743 ms/op 1.31
pickEth1Vote - Eth1Data fastSerialize value x2048 518.76 us/op 346.79 us/op 1.50
pickEth1Vote - Eth1Data fastSerialize tree x2048 3.7013 ms/op 5.5905 ms/op 0.66
bytes32 toHexString 458.00 ns/op 573.00 ns/op 0.80
bytes32 Buffer.toString(hex) 266.00 ns/op 429.00 ns/op 0.62
bytes32 Buffer.toString(hex) from Uint8Array 442.00 ns/op 521.00 ns/op 0.85
bytes32 Buffer.toString(hex) + 0x 254.00 ns/op 418.00 ns/op 0.61
Object access 1 prop 0.17100 ns/op 0.30000 ns/op 0.57
Map access 1 prop 0.14100 ns/op 0.30700 ns/op 0.46
Object get x1000 6.6840 ns/op 4.7940 ns/op 1.39
Map get x1000 6.6580 ns/op 5.4860 ns/op 1.21
Object set x1000 44.347 ns/op 22.261 ns/op 1.99
Map set x1000 29.362 ns/op 18.473 ns/op 1.59
Return object 10000 times 0.31240 ns/op 0.27970 ns/op 1.12
Throw Error 10000 times 3.4468 us/op 2.5416 us/op 1.36
fastMsgIdFn sha256 / 200 bytes 2.3910 us/op 1.9330 us/op 1.24
fastMsgIdFn h32 xxhash / 200 bytes 262.00 ns/op 420.00 ns/op 0.62
fastMsgIdFn h64 xxhash / 200 bytes 284.00 ns/op 427.00 ns/op 0.67
fastMsgIdFn sha256 / 1000 bytes 7.2730 us/op 5.6390 us/op 1.29
fastMsgIdFn h32 xxhash / 1000 bytes 411.00 ns/op 515.00 ns/op 0.80
fastMsgIdFn h64 xxhash / 1000 bytes 354.00 ns/op 488.00 ns/op 0.73
fastMsgIdFn sha256 / 10000 bytes 65.480 us/op 47.357 us/op 1.38
fastMsgIdFn h32 xxhash / 10000 bytes 1.8840 us/op 1.8850 us/op 1.00
fastMsgIdFn h64 xxhash / 10000 bytes 1.2270 us/op 1.3350 us/op 0.92
send data - 1000 256B messages 14.006 ms/op 9.6678 ms/op 1.45
send data - 1000 512B messages 18.946 ms/op 12.926 ms/op 1.47
send data - 1000 1024B messages 29.684 ms/op 22.468 ms/op 1.32
send data - 1000 1200B messages 28.853 ms/op 23.196 ms/op 1.24
send data - 1000 2048B messages 34.559 ms/op 28.092 ms/op 1.23
send data - 1000 4096B messages 33.735 ms/op 25.438 ms/op 1.33
send data - 1000 16384B messages 77.696 ms/op 63.543 ms/op 1.22
send data - 1000 65536B messages 232.72 ms/op 245.74 ms/op 0.95
enrSubnets - fastDeserialize 64 bits 1.1520 us/op 1.1780 us/op 0.98
enrSubnets - ssz BitVector 64 bits 377.00 ns/op 498.00 ns/op 0.76
enrSubnets - fastDeserialize 4 bits 167.00 ns/op 322.00 ns/op 0.52
enrSubnets - ssz BitVector 4 bits 372.00 ns/op 497.00 ns/op 0.75
prioritizePeers score -10:0 att 32-0.1 sync 2-0 192.86 us/op 121.61 us/op 1.59
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 200.85 us/op 161.33 us/op 1.25
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 288.45 us/op 254.91 us/op 1.13
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 507.26 us/op 455.00 us/op 1.11
prioritizePeers score 0:0 att 64-1 sync 4-1 916.43 us/op 729.74 us/op 1.26
array of 16000 items push then shift 1.6812 us/op 1.2556 us/op 1.34
LinkedList of 16000 items push then shift 7.6360 ns/op 6.2050 ns/op 1.23
array of 16000 items push then pop 132.62 ns/op 72.726 ns/op 1.82
LinkedList of 16000 items push then pop 7.9100 ns/op 6.1160 ns/op 1.29
array of 24000 items push then shift 2.5450 us/op 1.8519 us/op 1.37
LinkedList of 24000 items push then shift 7.8860 ns/op 6.2280 ns/op 1.27
array of 24000 items push then pop 168.29 ns/op 103.20 ns/op 1.63
LinkedList of 24000 items push then pop 7.5610 ns/op 6.0830 ns/op 1.24
intersect bitArray bitLen 8 6.7670 ns/op 5.3350 ns/op 1.27
intersect array and set length 8 53.879 ns/op 38.378 ns/op 1.40
intersect bitArray bitLen 128 30.858 ns/op 25.913 ns/op 1.19
intersect array and set length 128 920.49 ns/op 569.78 ns/op 1.62
bitArray.getTrueBitIndexes() bitLen 128 2.5640 us/op 1.7010 us/op 1.51
bitArray.getTrueBitIndexes() bitLen 248 3.8360 us/op 3.1220 us/op 1.23
bitArray.getTrueBitIndexes() bitLen 512 9.8580 us/op 6.9440 us/op 1.42
Buffer.concat 32 items 957.00 ns/op 1.0760 us/op 0.89
Uint8Array.set 32 items 1.4270 us/op 1.7340 us/op 0.82
Buffer.copy 1.5970 us/op 1.8760 us/op 0.85
Uint8Array.set - with subarray 2.2900 us/op 2.4610 us/op 0.93
Uint8Array.set - without subarray 1.2480 us/op 1.6320 us/op 0.76
getUint32 - dataview 248.00 ns/op 409.00 ns/op 0.61
getUint32 - manual 163.00 ns/op 345.00 ns/op 0.47
Set add up to 64 items then delete first 2.2445 us/op 1.8526 us/op 1.21
OrderedSet add up to 64 items then delete first 3.4371 us/op 2.8576 us/op 1.20
Set add up to 64 items then delete last 2.5727 us/op 2.1660 us/op 1.19
OrderedSet add up to 64 items then delete last 3.7818 us/op 3.2453 us/op 1.17
Set add up to 64 items then delete middle 2.5434 us/op 2.1052 us/op 1.21
OrderedSet add up to 64 items then delete middle 5.3735 us/op 4.6065 us/op 1.17
Set add up to 128 items then delete first 5.3769 us/op 4.0191 us/op 1.34
OrderedSet add up to 128 items then delete first 8.3411 us/op 6.0557 us/op 1.38
Set add up to 128 items then delete last 5.2355 us/op 3.9980 us/op 1.31
OrderedSet add up to 128 items then delete last 7.8236 us/op 6.2443 us/op 1.25
Set add up to 128 items then delete middle 5.0110 us/op 4.0243 us/op 1.25
OrderedSet add up to 128 items then delete middle 14.032 us/op 11.572 us/op 1.21
Set add up to 256 items then delete first 11.225 us/op 7.9789 us/op 1.41
OrderedSet add up to 256 items then delete first 16.564 us/op 11.993 us/op 1.38
Set add up to 256 items then delete last 10.622 us/op 7.9601 us/op 1.33
OrderedSet add up to 256 items then delete last 16.025 us/op 12.338 us/op 1.30
Set add up to 256 items then delete middle 10.538 us/op 7.9580 us/op 1.32
OrderedSet add up to 256 items then delete middle 46.675 us/op 34.060 us/op 1.37
transfer serialized Status (84 B) 1.5940 us/op 1.4150 us/op 1.13
copy serialized Status (84 B) 1.4060 us/op 1.1940 us/op 1.18
transfer serialized SignedVoluntaryExit (112 B) 1.7810 us/op 1.5040 us/op 1.18
copy serialized SignedVoluntaryExit (112 B) 1.4840 us/op 1.2400 us/op 1.20
transfer serialized ProposerSlashing (416 B) 2.7030 us/op 1.9130 us/op 1.41
copy serialized ProposerSlashing (416 B) 2.8800 us/op 1.8280 us/op 1.58
transfer serialized Attestation (485 B) 2.8050 us/op 2.3240 us/op 1.21
copy serialized Attestation (485 B) 2.8200 us/op 2.0750 us/op 1.36
transfer serialized AttesterSlashing (33232 B) 3.1350 us/op 2.2990 us/op 1.36
copy serialized AttesterSlashing (33232 B) 7.4090 us/op 10.026 us/op 0.74
transfer serialized Small SignedBeaconBlock (128000 B) 3.6460 us/op 3.0390 us/op 1.20
copy serialized Small SignedBeaconBlock (128000 B) 18.217 us/op 9.9610 us/op 1.83
transfer serialized Avg SignedBeaconBlock (200000 B) 4.0690 us/op 3.0010 us/op 1.36
copy serialized Avg SignedBeaconBlock (200000 B) 24.592 us/op 13.646 us/op 1.80
transfer serialized BlobsSidecar (524380 B) 3.8420 us/op 3.3120 us/op 1.16
copy serialized BlobsSidecar (524380 B) 86.664 us/op 68.710 us/op 1.26
transfer serialized Big SignedBeaconBlock (1000000 B) 3.9680 us/op 3.6060 us/op 1.10
copy serialized Big SignedBeaconBlock (1000000 B) 311.07 us/op 201.37 us/op 1.54
pass gossip attestations to forkchoice per slot 3.5966 ms/op 2.7347 ms/op 1.32
forkChoice updateHead vc 100000 bc 64 eq 0 603.91 us/op 386.36 us/op 1.56
forkChoice updateHead vc 600000 bc 64 eq 0 3.1926 ms/op 2.7015 ms/op 1.18
forkChoice updateHead vc 1000000 bc 64 eq 0 5.5697 ms/op 4.2578 ms/op 1.31
forkChoice updateHead vc 600000 bc 320 eq 0 3.2359 ms/op 2.3364 ms/op 1.38
forkChoice updateHead vc 600000 bc 1200 eq 0 3.2432 ms/op 2.4490 ms/op 1.32
forkChoice updateHead vc 600000 bc 7200 eq 0 3.7960 ms/op 2.8927 ms/op 1.31
forkChoice updateHead vc 600000 bc 64 eq 1000 11.082 ms/op 9.4118 ms/op 1.18
forkChoice updateHead vc 600000 bc 64 eq 10000 11.051 ms/op 8.9291 ms/op 1.24
forkChoice updateHead vc 600000 bc 64 eq 300000 16.121 ms/op 11.869 ms/op 1.36
computeDeltas 500000 validators 300 proto nodes 3.7689 ms/op 2.9922 ms/op 1.26
computeDeltas 500000 validators 1200 proto nodes 3.8563 ms/op 3.0081 ms/op 1.28
computeDeltas 500000 validators 7200 proto nodes 3.9569 ms/op 2.9636 ms/op 1.34
computeDeltas 750000 validators 300 proto nodes 6.0859 ms/op 4.4721 ms/op 1.36
computeDeltas 750000 validators 1200 proto nodes 5.9880 ms/op 4.4705 ms/op 1.34
computeDeltas 750000 validators 7200 proto nodes 6.4523 ms/op 4.7542 ms/op 1.36
computeDeltas 1400000 validators 300 proto nodes 12.078 ms/op 10.162 ms/op 1.19
computeDeltas 1400000 validators 1200 proto nodes 11.524 ms/op 8.4556 ms/op 1.36
computeDeltas 1400000 validators 7200 proto nodes 10.151 ms/op 8.2988 ms/op 1.22
computeDeltas 2100000 validators 300 proto nodes 16.472 ms/op 12.051 ms/op 1.37
computeDeltas 2100000 validators 1200 proto nodes 17.149 ms/op 12.059 ms/op 1.42
computeDeltas 2100000 validators 7200 proto nodes 17.378 ms/op 12.300 ms/op 1.41
altair processAttestation - 250000 vs - 7PWei normalcase 2.7185 ms/op 1.3314 ms/op 2.04
altair processAttestation - 250000 vs - 7PWei worstcase 3.6891 ms/op 2.0197 ms/op 1.83
altair processAttestation - setStatus - 1/6 committees join 124.54 us/op 65.833 us/op 1.89
altair processAttestation - setStatus - 1/3 committees join 217.85 us/op 129.85 us/op 1.68
altair processAttestation - setStatus - 1/2 committees join 281.32 us/op 194.22 us/op 1.45
altair processAttestation - setStatus - 2/3 committees join 375.42 us/op 261.01 us/op 1.44
altair processAttestation - setStatus - 4/5 committees join 537.23 us/op 376.89 us/op 1.43
altair processAttestation - setStatus - 100% committees join 674.03 us/op 451.69 us/op 1.49
altair processBlock - 250000 vs - 7PWei normalcase 5.0291 ms/op 3.5439 ms/op 1.42
altair processBlock - 250000 vs - 7PWei normalcase hashState 33.155 ms/op 28.704 ms/op 1.16
altair processBlock - 250000 vs - 7PWei worstcase 45.585 ms/op 40.621 ms/op 1.12
altair processBlock - 250000 vs - 7PWei worstcase hashState 99.847 ms/op 82.192 ms/op 1.21
phase0 processBlock - 250000 vs - 7PWei normalcase 2.6532 ms/op 1.9194 ms/op 1.38
phase0 processBlock - 250000 vs - 7PWei worstcase 32.179 ms/op 23.908 ms/op 1.35
altair processEth1Data - 250000 vs - 7PWei normalcase 545.55 us/op 263.54 us/op 2.07
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 9.8520 us/op 5.0450 us/op 1.95
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 36.375 us/op 19.272 us/op 1.89
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 13.437 us/op 7.2980 us/op 1.84
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 9.2470 us/op 5.3270 us/op 1.74
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 116.98 us/op 73.819 us/op 1.58
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 966.01 us/op 752.11 us/op 1.28
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.1944 ms/op 699.23 us/op 1.71
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.1036 ms/op 1.0498 ms/op 1.05
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.0078 ms/op 2.0448 ms/op 1.47
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 2.1763 ms/op 1.1635 ms/op 1.87
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.9174 ms/op 2.9860 ms/op 1.65
Tree 40 250000 create 505.17 ms/op 195.20 ms/op 2.59
Tree 40 250000 get(125000) 171.72 ns/op 114.14 ns/op 1.50
Tree 40 250000 set(125000) 1.7105 us/op 519.07 ns/op 3.30
Tree 40 250000 toArray() 25.815 ms/op 10.675 ms/op 2.42
Tree 40 250000 iterate all - toArray() + loop 28.323 ms/op 10.956 ms/op 2.59
Tree 40 250000 iterate all - get(i) 65.922 ms/op 43.751 ms/op 1.51
MutableVector 250000 create 15.137 ms/op 9.6944 ms/op 1.56
MutableVector 250000 get(125000) 7.5130 ns/op 5.9340 ns/op 1.27
MutableVector 250000 set(125000) 306.24 ns/op 158.82 ns/op 1.93
MutableVector 250000 toArray() 4.7663 ms/op 2.6266 ms/op 1.81
MutableVector 250000 iterate all - toArray() + loop 5.0132 ms/op 2.7007 ms/op 1.86
MutableVector 250000 iterate all - get(i) 1.6990 ms/op 1.4106 ms/op 1.20
Array 250000 create 4.9342 ms/op 2.2675 ms/op 2.18
Array 250000 clone - spread 5.5321 ms/op 1.1701 ms/op 4.73
Array 250000 get(125000) 0.58800 ns/op 0.56000 ns/op 1.05
Array 250000 set(125000) 0.69900 ns/op 0.57400 ns/op 1.22
Array 250000 iterate all - loop 95.237 us/op 75.670 us/op 1.26
effectiveBalanceIncrements clone Uint8Array 300000 91.081 us/op 13.243 us/op 6.88
effectiveBalanceIncrements clone MutableVector 300000 154.00 ns/op 306.00 ns/op 0.50
effectiveBalanceIncrements rw all Uint8Array 300000 231.20 us/op 164.40 us/op 1.41
effectiveBalanceIncrements rw all MutableVector 300000 228.58 ms/op 52.651 ms/op 4.34
phase0 afterProcessEpoch - 250000 vs - 7PWei 111.27 ms/op 76.443 ms/op 1.46
Array.fill - length 1000000 8.0721 ms/op 2.5278 ms/op 3.19
Array push - length 1000000 30.176 ms/op 14.660 ms/op 2.06
Array.get 0.36882 ns/op 0.25962 ns/op 1.42
Uint8Array.get 0.51192 ns/op 0.33862 ns/op 1.51
phase0 beforeProcessEpoch - 250000 vs - 7PWei 42.557 ms/op 16.434 ms/op 2.59
altair processEpoch - mainnet_e81889 560.97 ms/op 318.53 ms/op 1.76
mainnet_e81889 - altair beforeProcessEpoch 51.070 ms/op 21.722 ms/op 2.35
mainnet_e81889 - altair processJustificationAndFinalization 30.118 us/op 10.433 us/op 2.89
mainnet_e81889 - altair processInactivityUpdates 9.2147 ms/op 4.6927 ms/op 1.96
mainnet_e81889 - altair processRewardsAndPenalties 73.143 ms/op 48.277 ms/op 1.52
mainnet_e81889 - altair processRegistryUpdates 5.5650 us/op 1.9410 us/op 2.87
mainnet_e81889 - altair processSlashings 1.3890 us/op 704.00 ns/op 1.97
mainnet_e81889 - altair processEth1DataReset 1.2690 us/op 687.00 ns/op 1.85
mainnet_e81889 - altair processEffectiveBalanceUpdates 2.0433 ms/op 1.3190 ms/op 1.55
mainnet_e81889 - altair processSlashingsReset 7.4050 us/op 2.2550 us/op 3.28
mainnet_e81889 - altair processRandaoMixesReset 13.770 us/op 3.2030 us/op 4.30
mainnet_e81889 - altair processHistoricalRootsUpdate 1.6750 us/op 704.00 ns/op 2.38
mainnet_e81889 - altair processParticipationFlagUpdates 5.8560 us/op 2.6300 us/op 2.23
mainnet_e81889 - altair processSyncCommitteeUpdates 1.5340 us/op 550.00 ns/op 2.79
mainnet_e81889 - altair afterProcessEpoch 119.04 ms/op 78.824 ms/op 1.51
capella processEpoch - mainnet_e217614 1.5146 s/op 1.1197 s/op 1.35
mainnet_e217614 - capella beforeProcessEpoch 146.49 ms/op 108.06 ms/op 1.36
mainnet_e217614 - capella processJustificationAndFinalization 20.361 us/op 7.1240 us/op 2.86
mainnet_e217614 - capella processInactivityUpdates 17.493 ms/op 15.302 ms/op 1.14
mainnet_e217614 - capella processRewardsAndPenalties 254.77 ms/op 257.69 ms/op 0.99
mainnet_e217614 - capella processRegistryUpdates 18.023 us/op 11.975 us/op 1.51
mainnet_e217614 - capella processSlashings 631.00 ns/op 743.00 ns/op 0.85
mainnet_e217614 - capella processEth1DataReset 677.00 ns/op 709.00 ns/op 0.95
mainnet_e217614 - capella processEffectiveBalanceUpdates 18.549 ms/op 13.981 ms/op 1.33
mainnet_e217614 - capella processSlashingsReset 4.5520 us/op 2.8930 us/op 1.57
mainnet_e217614 - capella processRandaoMixesReset 5.7990 us/op 5.0700 us/op 1.14
mainnet_e217614 - capella processHistoricalRootsUpdate 1.5860 us/op 941.00 ns/op 1.69
mainnet_e217614 - capella processParticipationFlagUpdates 3.9940 us/op 1.9450 us/op 2.05
mainnet_e217614 - capella afterProcessEpoch 304.70 ms/op 238.83 ms/op 1.28
phase0 processEpoch - mainnet_e58758 388.49 ms/op 305.45 ms/op 1.27
mainnet_e58758 - phase0 beforeProcessEpoch 97.639 ms/op 65.674 ms/op 1.49
mainnet_e58758 - phase0 processJustificationAndFinalization 15.506 us/op 11.844 us/op 1.31
mainnet_e58758 - phase0 processRewardsAndPenalties 32.894 ms/op 36.957 ms/op 0.89
mainnet_e58758 - phase0 processRegistryUpdates 10.209 us/op 6.2680 us/op 1.63
mainnet_e58758 - phase0 processSlashings 422.00 ns/op 801.00 ns/op 0.53
mainnet_e58758 - phase0 processEth1DataReset 393.00 ns/op 702.00 ns/op 0.56
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.8644 ms/op 1.1271 ms/op 1.65
mainnet_e58758 - phase0 processSlashingsReset 8.6870 us/op 3.2860 us/op 2.64
mainnet_e58758 - phase0 processRandaoMixesReset 3.6520 us/op 3.5810 us/op 1.02
mainnet_e58758 - phase0 processHistoricalRootsUpdate 1.0650 us/op 848.00 ns/op 1.26
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.7510 us/op 2.7050 us/op 1.39
mainnet_e58758 - phase0 afterProcessEpoch 85.865 ms/op 65.497 ms/op 1.31
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.4899 ms/op 756.21 us/op 1.97
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 2.2160 ms/op 1.4984 ms/op 1.48
altair processInactivityUpdates - 250000 normalcase 20.785 ms/op 16.486 ms/op 1.26
altair processInactivityUpdates - 250000 worstcase 20.755 ms/op 17.014 ms/op 1.22
phase0 processRegistryUpdates - 250000 normalcase 8.7460 us/op 3.3300 us/op 2.63
phase0 processRegistryUpdates - 250000 badcase_full_deposits 354.35 us/op 302.11 us/op 1.17
phase0 processRegistryUpdates - 250000 worstcase 0.5 139.77 ms/op 113.38 ms/op 1.23
altair processRewardsAndPenalties - 250000 normalcase 39.511 ms/op 44.358 ms/op 0.89
altair processRewardsAndPenalties - 250000 worstcase 34.972 ms/op 43.315 ms/op 0.81
phase0 getAttestationDeltas - 250000 normalcase 11.551 ms/op 5.6576 ms/op 2.04
phase0 getAttestationDeltas - 250000 worstcase 11.723 ms/op 5.6151 ms/op 2.09
phase0 processSlashings - 250000 worstcase 133.09 us/op 85.157 us/op 1.56
altair processSyncCommitteeUpdates - 250000 145.86 ms/op 97.693 ms/op 1.49
BeaconState.hashTreeRoot - No change 463.00 ns/op 467.00 ns/op 0.99
BeaconState.hashTreeRoot - 1 full validator 116.97 us/op 107.85 us/op 1.08
BeaconState.hashTreeRoot - 32 full validator 1.7087 ms/op 930.68 us/op 1.84
BeaconState.hashTreeRoot - 512 full validator 17.506 ms/op 12.215 ms/op 1.43
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 155.76 us/op 141.76 us/op 1.10
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.6189 ms/op 1.8326 ms/op 1.43
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 30.478 ms/op 25.032 ms/op 1.22
BeaconState.hashTreeRoot - 1 balances 124.74 us/op 107.94 us/op 1.16
BeaconState.hashTreeRoot - 32 balances 1.0177 ms/op 1.0810 ms/op 0.94
BeaconState.hashTreeRoot - 512 balances 10.150 ms/op 11.818 ms/op 0.86
BeaconState.hashTreeRoot - 250000 balances 257.15 ms/op 167.74 ms/op 1.53
aggregationBits - 2048 els - zipIndexesInBitList 41.624 us/op 19.283 us/op 2.16
byteArrayEquals 32 56.503 ns/op 47.496 ns/op 1.19
Buffer.compare 32 18.794 ns/op 16.294 ns/op 1.15
byteArrayEquals 1024 1.6872 us/op 1.2463 us/op 1.35
Buffer.compare 1024 26.371 ns/op 23.458 ns/op 1.12
byteArrayEquals 16384 26.835 us/op 19.776 us/op 1.36
Buffer.compare 16384 211.40 ns/op 199.97 ns/op 1.06
byteArrayEquals 123687377 196.52 ms/op 148.25 ms/op 1.33
Buffer.compare 123687377 7.5079 ms/op 3.5621 ms/op 2.11
byteArrayEquals 32 - diff last byte 53.907 ns/op 46.180 ns/op 1.17
Buffer.compare 32 - diff last byte 17.412 ns/op 16.344 ns/op 1.07
byteArrayEquals 1024 - diff last byte 1.6175 us/op 1.2308 us/op 1.31
Buffer.compare 1024 - diff last byte 26.532 ns/op 24.493 ns/op 1.08
byteArrayEquals 16384 - diff last byte 25.719 us/op 19.558 us/op 1.32
Buffer.compare 16384 - diff last byte 200.62 ns/op 162.15 ns/op 1.24
byteArrayEquals 123687377 - diff last byte 202.72 ms/op 147.57 ms/op 1.37
Buffer.compare 123687377 - diff last byte 10.960 ms/op 3.7477 ms/op 2.92
byteArrayEquals 32 - random bytes 5.8790 ns/op 4.7120 ns/op 1.25
Buffer.compare 32 - random bytes 22.295 ns/op 16.571 ns/op 1.35
byteArrayEquals 1024 - random bytes 5.8400 ns/op 4.7540 ns/op 1.23
Buffer.compare 1024 - random bytes 19.185 ns/op 16.085 ns/op 1.19
byteArrayEquals 16384 - random bytes 5.9970 ns/op 4.7400 ns/op 1.27
Buffer.compare 16384 - random bytes 19.135 ns/op 16.215 ns/op 1.18
byteArrayEquals 123687377 - random bytes 6.9400 ns/op 7.6100 ns/op 0.91
Buffer.compare 123687377 - random bytes 20.360 ns/op 19.500 ns/op 1.04
regular array get 100000 times 34.569 us/op 30.018 us/op 1.15
wrappedArray get 100000 times 40.058 us/op 29.940 us/op 1.34
arrayWithProxy get 100000 times 17.564 ms/op 9.5889 ms/op 1.83
ssz.Root.equals 51.865 ns/op 43.288 ns/op 1.20
byteArrayEquals 51.400 ns/op 42.941 ns/op 1.20
Buffer.compare 12.542 ns/op 9.7080 ns/op 1.29
shuffle list - 16384 els 7.4780 ms/op 5.1482 ms/op 1.45
shuffle list - 250000 els 105.29 ms/op 74.225 ms/op 1.42
processSlot - 1 slots 18.307 us/op 14.420 us/op 1.27
processSlot - 32 slots 3.7296 ms/op 2.0207 ms/op 1.85
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 42.421 ms/op 43.833 ms/op 0.97
getCommitteeAssignments - req 1 vs - 250000 vc 2.2869 ms/op 1.6650 ms/op 1.37
getCommitteeAssignments - req 100 vs - 250000 vc 4.4243 ms/op 3.2824 ms/op 1.35
getCommitteeAssignments - req 1000 vs - 250000 vc 4.7581 ms/op 3.5407 ms/op 1.34
findModifiedValidators - 10000 modified validators 373.47 ms/op 220.15 ms/op 1.70
findModifiedValidators - 1000 modified validators 223.19 ms/op 151.67 ms/op 1.47
findModifiedValidators - 100 modified validators 255.14 ms/op 156.89 ms/op 1.63
findModifiedValidators - 10 modified validators 204.00 ms/op 140.35 ms/op 1.45
findModifiedValidators - 1 modified validators 239.11 ms/op 137.63 ms/op 1.74
findModifiedValidators - no difference 206.86 ms/op 139.83 ms/op 1.48
compare ViewDUs 3.5730 s/op 3.0217 s/op 1.18
compare each validator Uint8Array 1.5813 s/op 1.5816 s/op 1.00
compare ViewDU to Uint8Array 1.3369 s/op 659.26 ms/op 2.03
migrate state 1000000 validators, 24 modified, 0 new 633.36 ms/op 579.25 ms/op 1.09
migrate state 1000000 validators, 1700 modified, 1000 new 993.69 ms/op 814.57 ms/op 1.22
migrate state 1000000 validators, 3400 modified, 2000 new 1.2216 s/op 999.75 ms/op 1.22
migrate state 1500000 validators, 24 modified, 0 new 622.37 ms/op 583.31 ms/op 1.07
migrate state 1500000 validators, 1700 modified, 1000 new 923.82 ms/op 793.70 ms/op 1.16
migrate state 1500000 validators, 3400 modified, 2000 new 1.0408 s/op 1.0114 s/op 1.03
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.6900 ns/op 5.8500 ns/op 0.80
state getBlockRootAtSlot - 250000 vs - 7PWei 833.37 ns/op 612.20 ns/op 1.36
computeProposers - vc 250000 7.2787 ms/op 6.1398 ms/op 1.19
computeEpochShuffling - vc 250000 93.383 ms/op 80.891 ms/op 1.15
getNextSyncCommittee - vc 250000 125.28 ms/op 100.44 ms/op 1.25
computeSigningRoot for AttestationData 21.464 us/op 19.516 us/op 1.10
hash AttestationData serialized data then Buffer.toString(base64) 1.5782 us/op 1.1545 us/op 1.37
toHexString serialized data 933.60 ns/op 765.28 ns/op 1.22
Buffer.toString(base64) 186.86 ns/op 133.41 ns/op 1.40

Please sign in to comment.