Skip to content

Commit

Permalink
chore: update chainsafe dependencies (#6380)
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain authored Feb 1, 2024
1 parent 6b732b0 commit 2374392
Show file tree
Hide file tree
Showing 9 changed files with 395 additions and 1,188 deletions.
10 changes: 5 additions & 5 deletions packages/beacon-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@
},
"dependencies": {
"@chainsafe/as-chacha20poly1305": "^0.1.0",
"@chainsafe/as-sha256": "^0.3.1",
"@chainsafe/as-sha256": "^0.4.1",
"@chainsafe/bls": "7.1.1",
"@chainsafe/blst": "^0.2.9",
"@chainsafe/discv5": "^7.1.0",
"@chainsafe/enr": "^2.0.2",
"@chainsafe/libp2p-gossipsub": "^11.1.0",
"@chainsafe/discv5": "^9.0.0",
"@chainsafe/enr": "^3.0.0",
"@chainsafe/libp2p-gossipsub": "^11.2.0",
"@chainsafe/libp2p-noise": "^14.1.0",
"@chainsafe/persistent-merkle-tree": "^0.6.1",
"@chainsafe/prometheus-gc-stats": "^1.0.0",
Expand Down Expand Up @@ -153,7 +153,7 @@
"systeminformation": "^5.17.12",
"uint8-varint": "^2.0.2",
"uint8arraylist": "^2.4.7",
"uint8arrays": "^4.0.9",
"uint8arrays": "^5.0.1",
"xxhash-wasm": "1.0.2"
},
"devDependencies": {
Expand Down
12 changes: 6 additions & 6 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@
"blockchain"
],
"dependencies": {
"@chainsafe/as-sha256": "^0.3.1",
"@chainsafe/as-sha256": "^0.4.1",
"@chainsafe/bls": "7.1.1",
"@chainsafe/bls-keygen": "^0.3.0",
"@chainsafe/bls-keystore": "^3.0.0",
"@chainsafe/bls-keygen": "^0.4.0",
"@chainsafe/bls-keystore": "^3.0.1",
"@chainsafe/blst": "^0.2.9",
"@chainsafe/discv5": "^7.1.0",
"@chainsafe/enr": "^2.0.2",
"@chainsafe/discv5": "^9.0.0",
"@chainsafe/enr": "^3.0.0",
"@chainsafe/persistent-merkle-tree": "^0.6.1",
"@chainsafe/ssz": "^0.14.0",
"@chainsafe/threads": "^1.11.1",
Expand Down Expand Up @@ -90,7 +90,7 @@
"proper-lockfile": "^4.1.2",
"rimraf": "^4.4.1",
"source-map-support": "^0.5.21",
"uint8arrays": "^4.0.9",
"uint8arrays": "^5.0.1",
"uuidv4": "^6.2.13",
"yargs": "^17.7.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/flare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
],
"dependencies": {
"@chainsafe/bls": "7.1.1",
"@chainsafe/bls-keygen": "^0.3.0",
"@chainsafe/bls-keygen": "^0.4.0",
"@lodestar/api": "^1.15.0",
"@lodestar/config": "^1.15.0",
"@lodestar/params": "^1.15.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/light-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@
"strict-event-emitter-types": "^2.0.0"
},
"devDependencies": {
"@chainsafe/as-sha256": "^0.3.1",
"@chainsafe/as-sha256": "^0.4.1",
"@types/qs": "^6.9.7",
"qs": "^6.11.1",
"uint8arrays": "^4.0.9"
"uint8arrays": "^5.0.1"
},
"keywords": [
"ethereum",
Expand Down
2 changes: 1 addition & 1 deletion packages/prover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"@lodestar/params": "^1.15.0",
"@lodestar/types": "^1.15.0",
"@lodestar/utils": "^1.15.0",
"ethereum-cryptography": "^1.2.0",
"ethereum-cryptography": "^2.0.0",
"find-up": "^6.3.0",
"http-proxy": "^1.18.1",
"js-yaml": "^4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/state-transition/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
"types": "lib/index.d.ts",
"dependencies": {
"@chainsafe/as-sha256": "^0.3.1",
"@chainsafe/as-sha256": "^0.4.1",
"@chainsafe/bls": "7.1.1",
"@chainsafe/blst": "^0.2.9",
"@chainsafe/persistent-merkle-tree": "^0.6.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
],
"dependencies": {
"@chainsafe/bls": "7.1.1",
"@chainsafe/bls-keystore": "^3.0.0",
"@chainsafe/bls-keystore": "^3.0.1",
"@lodestar/params": "^1.15.0",
"@lodestar/utils": "^1.15.0",
"axios": "^1.3.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"types": "lib/index.d.ts",
"dependencies": {
"@chainsafe/as-sha256": "^0.3.1",
"@chainsafe/as-sha256": "^0.4.1",
"any-signal": "3.0.1",
"bigint-buffer": "^1.1.5",
"case": "^1.6.3",
Expand Down
Loading

1 comment on commit 2374392

@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: 2374392 Previous: 6b732b0 Ratio
getSlashingsAndExits - default max 562.73 us/op 169.55 us/op 3.32
Full benchmark results
Benchmark suite Current: 2374392 Previous: 6b732b0 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 715.60 us/op 592.40 us/op 1.21
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 137.86 us/op 112.67 us/op 1.22
BLS verify - blst-native 1.3986 ms/op 1.3770 ms/op 1.02
BLS verifyMultipleSignatures 3 - blst-native 2.9148 ms/op 2.9032 ms/op 1.00
BLS verifyMultipleSignatures 8 - blst-native 6.3652 ms/op 6.3581 ms/op 1.00
BLS verifyMultipleSignatures 32 - blst-native 23.248 ms/op 23.301 ms/op 1.00
BLS verifyMultipleSignatures 64 - blst-native 52.702 ms/op 46.075 ms/op 1.14
BLS verifyMultipleSignatures 128 - blst-native 92.174 ms/op 91.004 ms/op 1.01
BLS deserializing 10000 signatures 1.0407 s/op 969.00 ms/op 1.07
BLS deserializing 100000 signatures 9.9813 s/op 9.3956 s/op 1.06
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.4862 ms/op 1.4014 ms/op 1.06
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.7242 ms/op 1.6316 ms/op 1.06
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.6199 ms/op 2.4823 ms/op 1.06
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.9333 ms/op 3.5617 ms/op 1.10
BLS verifyMultipleSignatures - same message - 128 - blst-native 6.7784 ms/op 5.8767 ms/op 1.15
BLS aggregatePubkeys 32 - blst-native 29.808 us/op 29.462 us/op 1.01
BLS aggregatePubkeys 128 - blst-native 113.76 us/op 110.56 us/op 1.03
getAttestationsForBlock 80.426 ms/op 70.314 ms/op 1.14
getSlashingsAndExits - default max 562.73 us/op 169.55 us/op 3.32
getSlashingsAndExits - 2k 1.0126 ms/op 485.26 us/op 2.09
proposeBlockBody type=full, size=empty 7.4562 ms/op 7.0040 ms/op 1.06
isKnown best case - 1 super set check 621.00 ns/op 517.00 ns/op 1.20
isKnown normal case - 2 super set checks 655.00 ns/op 503.00 ns/op 1.30
isKnown worse case - 16 super set checks 709.00 ns/op 476.00 ns/op 1.49
CheckpointStateCache - add get delete 7.2040 us/op 6.8970 us/op 1.04
validate api signedAggregateAndProof - struct 3.0315 ms/op 3.1508 ms/op 0.96
validate gossip signedAggregateAndProof - struct 3.0697 ms/op 3.0971 ms/op 0.99
validate gossip attestation - vc 640000 1.5754 ms/op 1.5673 ms/op 1.01
batch validate gossip attestation - vc 640000 - chunk 32 186.63 us/op 199.78 us/op 0.93
batch validate gossip attestation - vc 640000 - chunk 64 166.61 us/op 179.26 us/op 0.93
batch validate gossip attestation - vc 640000 - chunk 128 173.67 us/op 176.64 us/op 0.98
batch validate gossip attestation - vc 640000 - chunk 256 146.61 us/op 162.58 us/op 0.90
pickEth1Vote - no votes 1.3639 ms/op 1.4718 ms/op 0.93
pickEth1Vote - max votes 10.595 ms/op 14.815 ms/op 0.72
pickEth1Vote - Eth1Data hashTreeRoot value x2048 20.709 ms/op 22.186 ms/op 0.93
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 26.221 ms/op 37.604 ms/op 0.70
pickEth1Vote - Eth1Data fastSerialize value x2048 650.49 us/op 792.34 us/op 0.82
pickEth1Vote - Eth1Data fastSerialize tree x2048 5.3082 ms/op 5.5274 ms/op 0.96
bytes32 toHexString 628.00 ns/op 658.00 ns/op 0.95
bytes32 Buffer.toString(hex) 307.00 ns/op 323.00 ns/op 0.95
bytes32 Buffer.toString(hex) from Uint8Array 531.00 ns/op 534.00 ns/op 0.99
bytes32 Buffer.toString(hex) + 0x 345.00 ns/op 321.00 ns/op 1.07
Object access 1 prop 0.21500 ns/op 0.21100 ns/op 1.02
Map access 1 prop 0.15900 ns/op 0.16300 ns/op 0.98
Object get x1000 8.4620 ns/op 8.2220 ns/op 1.03
Map get x1000 0.88900 ns/op 0.90100 ns/op 0.99
Object set x1000 67.201 ns/op 66.973 ns/op 1.00
Map set x1000 52.991 ns/op 51.855 ns/op 1.02
Return object 10000 times 0.26260 ns/op 0.26200 ns/op 1.00
Throw Error 10000 times 4.1465 us/op 4.2070 us/op 0.99
fastMsgIdFn sha256 / 200 bytes 3.5680 us/op 3.6270 us/op 0.98
fastMsgIdFn h32 xxhash / 200 bytes 362.00 ns/op 337.00 ns/op 1.07
fastMsgIdFn h64 xxhash / 200 bytes 403.00 ns/op 398.00 ns/op 1.01
fastMsgIdFn sha256 / 1000 bytes 12.232 us/op 12.508 us/op 0.98
fastMsgIdFn h32 xxhash / 1000 bytes 498.00 ns/op 485.00 ns/op 1.03
fastMsgIdFn h64 xxhash / 1000 bytes 497.00 ns/op 486.00 ns/op 1.02
fastMsgIdFn sha256 / 10000 bytes 109.72 us/op 112.10 us/op 0.98
fastMsgIdFn h32 xxhash / 10000 bytes 2.1530 us/op 2.0690 us/op 1.04
fastMsgIdFn h64 xxhash / 10000 bytes 1.4330 us/op 1.4460 us/op 0.99
send data - 1000 256B messages 22.733 ms/op 18.981 ms/op 1.20
send data - 1000 512B messages 31.538 ms/op 30.425 ms/op 1.04
send data - 1000 1024B messages 42.330 ms/op 41.497 ms/op 1.02
send data - 1000 1200B messages 41.641 ms/op 44.503 ms/op 0.94
send data - 1000 2048B messages 51.703 ms/op 54.561 ms/op 0.95
send data - 1000 4096B messages 51.312 ms/op 49.696 ms/op 1.03
send data - 1000 16384B messages 116.79 ms/op 127.92 ms/op 0.91
send data - 1000 65536B messages 465.03 ms/op 575.33 ms/op 0.81
enrSubnets - fastDeserialize 64 bits 1.3970 us/op 2.0090 us/op 0.70
enrSubnets - ssz BitVector 64 bits 504.00 ns/op 592.00 ns/op 0.85
enrSubnets - fastDeserialize 4 bits 215.00 ns/op 263.00 ns/op 0.82
enrSubnets - ssz BitVector 4 bits 479.00 ns/op 605.00 ns/op 0.79
prioritizePeers score -10:0 att 32-0.1 sync 2-0 108.27 us/op 130.81 us/op 0.83
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 146.44 us/op 173.88 us/op 0.84
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 195.44 us/op 239.17 us/op 0.82
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 368.97 us/op 397.44 us/op 0.93
prioritizePeers score 0:0 att 64-1 sync 4-1 399.77 us/op 432.32 us/op 0.92
array of 16000 items push then shift 1.7543 us/op 1.8297 us/op 0.96
LinkedList of 16000 items push then shift 9.6370 ns/op 10.589 ns/op 0.91
array of 16000 items push then pop 111.22 ns/op 111.30 ns/op 1.00
LinkedList of 16000 items push then pop 9.4920 ns/op 10.340 ns/op 0.92
array of 24000 items push then shift 2.7708 us/op 2.6955 us/op 1.03
LinkedList of 24000 items push then shift 9.6500 ns/op 11.529 ns/op 0.84
array of 24000 items push then pop 165.33 ns/op 168.21 ns/op 0.98
LinkedList of 24000 items push then pop 9.4730 ns/op 10.238 ns/op 0.93
intersect bitArray bitLen 8 6.9810 ns/op 7.2060 ns/op 0.97
intersect array and set length 8 88.607 ns/op 98.707 ns/op 0.90
intersect bitArray bitLen 128 35.595 ns/op 39.563 ns/op 0.90
intersect array and set length 128 1.2071 us/op 1.2224 us/op 0.99
bitArray.getTrueBitIndexes() bitLen 128 1.8540 us/op 2.1920 us/op 0.85
bitArray.getTrueBitIndexes() bitLen 248 3.0030 us/op 3.4550 us/op 0.87
bitArray.getTrueBitIndexes() bitLen 512 6.3260 us/op 7.0580 us/op 0.90
Buffer.concat 32 items 1.0810 us/op 1.3950 us/op 0.77
Uint8Array.set 32 items 1.8480 us/op 2.3070 us/op 0.80
Set add up to 64 items then delete first 4.9436 us/op 5.8204 us/op 0.85
OrderedSet add up to 64 items then delete first 6.6669 us/op 7.7852 us/op 0.86
Set add up to 64 items then delete last 5.6590 us/op 6.4300 us/op 0.88
OrderedSet add up to 64 items then delete last 7.3472 us/op 8.8856 us/op 0.83
Set add up to 64 items then delete middle 5.5768 us/op 6.4557 us/op 0.86
OrderedSet add up to 64 items then delete middle 8.7679 us/op 10.359 us/op 0.85
Set add up to 128 items then delete first 11.295 us/op 13.023 us/op 0.87
OrderedSet add up to 128 items then delete first 15.334 us/op 17.775 us/op 0.86
Set add up to 128 items then delete last 11.373 us/op 12.632 us/op 0.90
OrderedSet add up to 128 items then delete last 15.190 us/op 17.659 us/op 0.86
Set add up to 128 items then delete middle 11.134 us/op 12.714 us/op 0.88
OrderedSet add up to 128 items then delete middle 20.803 us/op 22.322 us/op 0.93
Set add up to 256 items then delete first 22.279 us/op 25.527 us/op 0.87
OrderedSet add up to 256 items then delete first 30.425 us/op 35.402 us/op 0.86
Set add up to 256 items then delete last 21.541 us/op 24.295 us/op 0.89
OrderedSet add up to 256 items then delete last 29.408 us/op 30.627 us/op 0.96
Set add up to 256 items then delete middle 21.849 us/op 23.267 us/op 0.94
OrderedSet add up to 256 items then delete middle 51.271 us/op 55.278 us/op 0.93
transfer serialized Status (84 B) 1.9770 us/op 2.0870 us/op 0.95
copy serialized Status (84 B) 1.5270 us/op 1.6510 us/op 0.92
transfer serialized SignedVoluntaryExit (112 B) 2.1220 us/op 2.2970 us/op 0.92
copy serialized SignedVoluntaryExit (112 B) 1.5990 us/op 1.6390 us/op 0.98
transfer serialized ProposerSlashing (416 B) 2.8480 us/op 2.5100 us/op 1.13
copy serialized ProposerSlashing (416 B) 2.6330 us/op 2.2730 us/op 1.16
transfer serialized Attestation (485 B) 2.9750 us/op 2.7080 us/op 1.10
copy serialized Attestation (485 B) 2.4950 us/op 2.2680 us/op 1.10
transfer serialized AttesterSlashing (33232 B) 2.4470 us/op 2.5730 us/op 0.95
copy serialized AttesterSlashing (33232 B) 9.1320 us/op 8.9540 us/op 1.02
transfer serialized Small SignedBeaconBlock (128000 B) 2.7450 us/op 2.8900 us/op 0.95
copy serialized Small SignedBeaconBlock (128000 B) 29.814 us/op 24.497 us/op 1.22
transfer serialized Avg SignedBeaconBlock (200000 B) 3.6250 us/op 3.7040 us/op 0.98
copy serialized Avg SignedBeaconBlock (200000 B) 35.015 us/op 41.565 us/op 0.84
transfer serialized BlobsSidecar (524380 B) 3.4900 us/op 3.3900 us/op 1.03
copy serialized BlobsSidecar (524380 B) 231.54 us/op 126.82 us/op 1.83
transfer serialized Big SignedBeaconBlock (1000000 B) 4.0590 us/op 4.5700 us/op 0.89
copy serialized Big SignedBeaconBlock (1000000 B) 295.33 us/op 203.58 us/op 1.45
pass gossip attestations to forkchoice per slot 4.0509 ms/op 3.9679 ms/op 1.02
forkChoice updateHead vc 100000 bc 64 eq 0 707.94 us/op 745.08 us/op 0.95
forkChoice updateHead vc 600000 bc 64 eq 0 6.1528 ms/op 4.5543 ms/op 1.35
forkChoice updateHead vc 1000000 bc 64 eq 0 7.7603 ms/op 8.0211 ms/op 0.97
forkChoice updateHead vc 600000 bc 320 eq 0 4.4353 ms/op 4.6489 ms/op 0.95
forkChoice updateHead vc 600000 bc 1200 eq 0 4.9548 ms/op 4.7691 ms/op 1.04
forkChoice updateHead vc 600000 bc 7200 eq 0 6.0482 ms/op 7.1617 ms/op 0.84
forkChoice updateHead vc 600000 bc 64 eq 1000 11.828 ms/op 12.097 ms/op 0.98
forkChoice updateHead vc 600000 bc 64 eq 10000 12.850 ms/op 13.065 ms/op 0.98
forkChoice updateHead vc 600000 bc 64 eq 300000 21.891 ms/op 17.074 ms/op 1.28
computeDeltas 500000 validators 300 proto nodes 7.4869 ms/op 6.8531 ms/op 1.09
computeDeltas 500000 validators 1200 proto nodes 7.2380 ms/op 6.4644 ms/op 1.12
computeDeltas 500000 validators 7200 proto nodes 7.0631 ms/op 6.3681 ms/op 1.11
computeDeltas 750000 validators 300 proto nodes 10.603 ms/op 9.5099 ms/op 1.11
computeDeltas 750000 validators 1200 proto nodes 10.508 ms/op 9.4280 ms/op 1.11
computeDeltas 750000 validators 7200 proto nodes 10.497 ms/op 9.6216 ms/op 1.09
computeDeltas 1400000 validators 300 proto nodes 20.203 ms/op 18.614 ms/op 1.09
computeDeltas 1400000 validators 1200 proto nodes 19.758 ms/op 19.456 ms/op 1.02
computeDeltas 1400000 validators 7200 proto nodes 19.479 ms/op 18.683 ms/op 1.04
computeDeltas 2100000 validators 300 proto nodes 30.457 ms/op 30.397 ms/op 1.00
computeDeltas 2100000 validators 1200 proto nodes 30.957 ms/op 30.364 ms/op 1.02
computeDeltas 2100000 validators 7200 proto nodes 31.350 ms/op 30.917 ms/op 1.01
altair processAttestation - 250000 vs - 7PWei normalcase 3.6373 ms/op 2.5182 ms/op 1.44
altair processAttestation - 250000 vs - 7PWei worstcase 5.6220 ms/op 3.5449 ms/op 1.59
altair processAttestation - setStatus - 1/6 committees join 209.99 us/op 199.20 us/op 1.05
altair processAttestation - setStatus - 1/3 committees join 410.40 us/op 365.23 us/op 1.12
altair processAttestation - setStatus - 1/2 committees join 564.61 us/op 485.86 us/op 1.16
altair processAttestation - setStatus - 2/3 committees join 726.26 us/op 627.22 us/op 1.16
altair processAttestation - setStatus - 4/5 committees join 967.81 us/op 853.01 us/op 1.13
altair processAttestation - setStatus - 100% committees join 1.1971 ms/op 984.96 us/op 1.22
altair processBlock - 250000 vs - 7PWei normalcase 17.394 ms/op 10.598 ms/op 1.64
altair processBlock - 250000 vs - 7PWei normalcase hashState 52.162 ms/op 37.983 ms/op 1.37
altair processBlock - 250000 vs - 7PWei worstcase 49.168 ms/op 40.467 ms/op 1.22
altair processBlock - 250000 vs - 7PWei worstcase hashState 112.69 ms/op 107.15 ms/op 1.05
phase0 processBlock - 250000 vs - 7PWei normalcase 3.9593 ms/op 2.6288 ms/op 1.51
phase0 processBlock - 250000 vs - 7PWei worstcase 36.066 ms/op 32.321 ms/op 1.12
altair processEth1Data - 250000 vs - 7PWei normalcase 667.23 us/op 650.63 us/op 1.03
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 16.376 us/op 12.301 us/op 1.33
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 72.923 us/op 69.109 us/op 1.06
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 29.825 us/op 22.135 us/op 1.35
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 14.757 us/op 13.500 us/op 1.09
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 214.32 us/op 199.72 us/op 1.07
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.5404 ms/op 1.5138 ms/op 1.02
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 3.0957 ms/op 1.5988 ms/op 1.94
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 2.5211 ms/op 1.8970 ms/op 1.33
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 5.1282 ms/op 4.1845 ms/op 1.23
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 3.3366 ms/op 2.4636 ms/op 1.35
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 8.1656 ms/op 5.5630 ms/op 1.47
Tree 40 250000 create 750.09 ms/op 410.50 ms/op 1.83
Tree 40 250000 get(125000) 229.84 ns/op 233.95 ns/op 0.98
Tree 40 250000 set(125000) 1.9227 us/op 1.1253 us/op 1.71
Tree 40 250000 toArray() 27.838 ms/op 24.366 ms/op 1.14
Tree 40 250000 iterate all - toArray() + loop 27.532 ms/op 25.393 ms/op 1.08
Tree 40 250000 iterate all - get(i) 94.124 ms/op 77.534 ms/op 1.21
MutableVector 250000 create 20.086 ms/op 16.234 ms/op 1.24
MutableVector 250000 get(125000) 7.2750 ns/op 8.1260 ns/op 0.90
MutableVector 250000 set(125000) 636.97 ns/op 301.17 ns/op 2.11
MutableVector 250000 toArray() 4.5106 ms/op 4.0237 ms/op 1.12
MutableVector 250000 iterate all - toArray() + loop 4.7226 ms/op 4.1044 ms/op 1.15
MutableVector 250000 iterate all - get(i) 1.6309 ms/op 1.6403 ms/op 0.99
Array 250000 create 4.4819 ms/op 3.6835 ms/op 1.22
Array 250000 clone - spread 3.0716 ms/op 1.3734 ms/op 2.24
Array 250000 get(125000) 2.8370 ns/op 1.2110 ns/op 2.34
Array 250000 set(125000) 5.8830 ns/op 5.0360 ns/op 1.17
Array 250000 iterate all - loop 197.00 us/op 187.28 us/op 1.05
effectiveBalanceIncrements clone Uint8Array 300000 87.691 us/op 42.115 us/op 2.08
effectiveBalanceIncrements clone MutableVector 300000 1.5460 us/op 377.00 ns/op 4.10
effectiveBalanceIncrements rw all Uint8Array 300000 285.13 us/op 224.15 us/op 1.27
effectiveBalanceIncrements rw all MutableVector 300000 175.41 ms/op 97.938 ms/op 1.79
phase0 afterProcessEpoch - 250000 vs - 7PWei 131.89 ms/op 126.22 ms/op 1.04
phase0 beforeProcessEpoch - 250000 vs - 7PWei 77.396 ms/op 57.167 ms/op 1.35
altair processEpoch - mainnet_e81889 652.46 ms/op 482.78 ms/op 1.35
mainnet_e81889 - altair beforeProcessEpoch 124.92 ms/op 83.486 ms/op 1.50
mainnet_e81889 - altair processJustificationAndFinalization 29.370 us/op 22.124 us/op 1.33
mainnet_e81889 - altair processInactivityUpdates 6.7405 ms/op 7.4861 ms/op 0.90
mainnet_e81889 - altair processRewardsAndPenalties 67.186 ms/op 64.607 ms/op 1.04
mainnet_e81889 - altair processRegistryUpdates 4.1940 us/op 2.9910 us/op 1.40
mainnet_e81889 - altair processSlashings 754.00 ns/op 509.00 ns/op 1.48
mainnet_e81889 - altair processEth1DataReset 933.00 ns/op 680.00 ns/op 1.37
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.8058 ms/op 1.4962 ms/op 1.21
mainnet_e81889 - altair processSlashingsReset 4.3490 us/op 4.1620 us/op 1.04
mainnet_e81889 - altair processRandaoMixesReset 6.2500 us/op 5.3180 us/op 1.18
mainnet_e81889 - altair processHistoricalRootsUpdate 1.7850 us/op 2.1590 us/op 0.83
mainnet_e81889 - altair processParticipationFlagUpdates 2.3510 us/op 2.5600 us/op 0.92
mainnet_e81889 - altair processSyncCommitteeUpdates 645.00 ns/op 932.00 ns/op 0.69
mainnet_e81889 - altair afterProcessEpoch 127.14 ms/op 136.07 ms/op 0.93
capella processEpoch - mainnet_e217614 2.7162 s/op 2.4278 s/op 1.12
mainnet_e217614 - capella beforeProcessEpoch 557.06 ms/op 574.30 ms/op 0.97
mainnet_e217614 - capella processJustificationAndFinalization 21.615 us/op 23.574 us/op 0.92
mainnet_e217614 - capella processInactivityUpdates 20.003 ms/op 25.313 ms/op 0.79
mainnet_e217614 - capella processRewardsAndPenalties 460.37 ms/op 486.71 ms/op 0.95
mainnet_e217614 - capella processRegistryUpdates 23.613 us/op 27.408 us/op 0.86
mainnet_e217614 - capella processSlashings 659.00 ns/op 614.00 ns/op 1.07
mainnet_e217614 - capella processEth1DataReset 409.00 ns/op 606.00 ns/op 0.67
mainnet_e217614 - capella processEffectiveBalanceUpdates 6.6598 ms/op 5.8836 ms/op 1.13
mainnet_e217614 - capella processSlashingsReset 3.2020 us/op 6.9950 us/op 0.46
mainnet_e217614 - capella processRandaoMixesReset 5.7300 us/op 7.2350 us/op 0.79
mainnet_e217614 - capella processHistoricalRootsUpdate 611.00 ns/op 807.00 ns/op 0.76
mainnet_e217614 - capella processParticipationFlagUpdates 1.9940 us/op 1.8570 us/op 1.07
mainnet_e217614 - capella afterProcessEpoch 333.28 ms/op 357.43 ms/op 0.93
phase0 processEpoch - mainnet_e58758 463.00 ms/op 566.83 ms/op 0.82
mainnet_e58758 - phase0 beforeProcessEpoch 150.18 ms/op 187.54 ms/op 0.80
mainnet_e58758 - phase0 processJustificationAndFinalization 18.199 us/op 18.301 us/op 0.99
mainnet_e58758 - phase0 processRewardsAndPenalties 55.220 ms/op 58.681 ms/op 0.94
mainnet_e58758 - phase0 processRegistryUpdates 10.619 us/op 14.310 us/op 0.74
mainnet_e58758 - phase0 processSlashings 492.00 ns/op 914.00 ns/op 0.54
mainnet_e58758 - phase0 processEth1DataReset 447.00 ns/op 496.00 ns/op 0.90
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.1923 ms/op 1.1810 ms/op 1.01
mainnet_e58758 - phase0 processSlashingsReset 3.1550 us/op 3.4220 us/op 0.92
mainnet_e58758 - phase0 processRandaoMixesReset 4.6690 us/op 3.9190 us/op 1.19
mainnet_e58758 - phase0 processHistoricalRootsUpdate 604.00 ns/op 731.00 ns/op 0.83
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.5310 us/op 6.9620 us/op 0.51
mainnet_e58758 - phase0 afterProcessEpoch 96.767 ms/op 109.50 ms/op 0.88
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.3670 ms/op 1.5396 ms/op 0.89
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.5373 ms/op 1.5846 ms/op 0.97
altair processInactivityUpdates - 250000 normalcase 28.007 ms/op 30.918 ms/op 0.91
altair processInactivityUpdates - 250000 worstcase 30.221 ms/op 38.043 ms/op 0.79
phase0 processRegistryUpdates - 250000 normalcase 8.2260 us/op 11.618 us/op 0.71
phase0 processRegistryUpdates - 250000 badcase_full_deposits 406.67 us/op 452.12 us/op 0.90
phase0 processRegistryUpdates - 250000 worstcase 0.5 163.77 ms/op 151.23 ms/op 1.08
altair processRewardsAndPenalties - 250000 normalcase 62.276 ms/op 69.363 ms/op 0.90
altair processRewardsAndPenalties - 250000 worstcase 59.349 ms/op 66.188 ms/op 0.90
phase0 getAttestationDeltas - 250000 normalcase 10.803 ms/op 12.197 ms/op 0.89
phase0 getAttestationDeltas - 250000 worstcase 10.238 ms/op 12.201 ms/op 0.84
phase0 processSlashings - 250000 worstcase 137.83 us/op 105.80 us/op 1.30
altair processSyncCommitteeUpdates - 250000 184.52 ms/op 190.84 ms/op 0.97
BeaconState.hashTreeRoot - No change 762.00 ns/op 602.00 ns/op 1.27
BeaconState.hashTreeRoot - 1 full validator 166.31 us/op 151.55 us/op 1.10
BeaconState.hashTreeRoot - 32 full validator 1.6900 ms/op 1.5466 ms/op 1.09
BeaconState.hashTreeRoot - 512 full validator 20.388 ms/op 21.110 ms/op 0.97
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 206.42 us/op 238.54 us/op 0.87
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 2.6819 ms/op 2.6876 ms/op 1.00
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 33.293 ms/op 30.692 ms/op 1.08
BeaconState.hashTreeRoot - 1 balances 153.33 us/op 137.06 us/op 1.12
BeaconState.hashTreeRoot - 32 balances 1.3890 ms/op 1.2534 ms/op 1.11
BeaconState.hashTreeRoot - 512 balances 13.258 ms/op 14.065 ms/op 0.94
BeaconState.hashTreeRoot - 250000 balances 243.06 ms/op 232.55 ms/op 1.05
aggregationBits - 2048 els - zipIndexesInBitList 22.268 us/op 21.219 us/op 1.05
byteArrayEquals 32 95.352 ns/op 82.511 ns/op 1.16
Buffer.compare 32 64.037 ns/op 61.491 ns/op 1.04
byteArrayEquals 1024 2.2549 us/op 2.3230 us/op 0.97
Buffer.compare 1024 76.501 ns/op 76.635 ns/op 1.00
byteArrayEquals 16384 35.015 us/op 35.328 us/op 0.99
Buffer.compare 16384 290.00 ns/op 285.37 ns/op 1.02
byteArrayEquals 123687377 281.82 ms/op 267.63 ms/op 1.05
Buffer.compare 123687377 8.6465 ms/op 7.0695 ms/op 1.22
byteArrayEquals 32 - diff last byte 88.469 ns/op 80.091 ns/op 1.10
Buffer.compare 32 - diff last byte 63.021 ns/op 57.384 ns/op 1.10
byteArrayEquals 1024 - diff last byte 2.6108 us/op 2.1625 us/op 1.21
Buffer.compare 1024 - diff last byte 83.060 ns/op 74.404 ns/op 1.12
byteArrayEquals 16384 - diff last byte 40.911 us/op 34.136 us/op 1.20
Buffer.compare 16384 - diff last byte 321.42 ns/op 286.57 ns/op 1.12
byteArrayEquals 123687377 - diff last byte 264.27 ms/op 267.13 ms/op 0.99
Buffer.compare 123687377 - diff last byte 9.1628 ms/op 8.7168 ms/op 1.05
byteArrayEquals 32 - random bytes 6.4770 ns/op 7.0050 ns/op 0.92
Buffer.compare 32 - random bytes 64.238 ns/op 69.508 ns/op 0.92
byteArrayEquals 1024 - random bytes 6.8650 ns/op 6.8600 ns/op 1.00
Buffer.compare 1024 - random bytes 64.472 ns/op 69.215 ns/op 0.93
byteArrayEquals 16384 - random bytes 6.9310 ns/op 6.8450 ns/op 1.01
Buffer.compare 16384 - random bytes 63.885 ns/op 69.511 ns/op 0.92
byteArrayEquals 123687377 - random bytes 10.520 ns/op 9.9500 ns/op 1.06
Buffer.compare 123687377 - random bytes 79.420 ns/op 81.630 ns/op 0.97
regular array get 100000 times 49.097 us/op 50.363 us/op 0.97
wrappedArray get 100000 times 49.068 us/op 50.970 us/op 0.96
arrayWithProxy get 100000 times 14.878 ms/op 18.089 ms/op 0.82
ssz.Root.equals 57.807 ns/op 62.424 ns/op 0.93
byteArrayEquals 57.164 ns/op 61.413 ns/op 0.93
Buffer.compare 13.309 ns/op 13.124 ns/op 1.01
shuffle list - 16384 els 7.4238 ms/op 7.7000 ms/op 0.96
shuffle list - 250000 els 108.01 ms/op 117.53 ms/op 0.92
processSlot - 1 slots 21.899 us/op 19.013 us/op 1.15
processSlot - 32 slots 4.3947 ms/op 4.4523 ms/op 0.99
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 64.275 ms/op 64.766 ms/op 0.99
getCommitteeAssignments - req 1 vs - 250000 vc 2.6190 ms/op 3.0760 ms/op 0.85
getCommitteeAssignments - req 100 vs - 250000 vc 3.7677 ms/op 4.2013 ms/op 0.90
getCommitteeAssignments - req 1000 vs - 250000 vc 4.1746 ms/op 4.6199 ms/op 0.90
findModifiedValidators - 10000 modified validators 534.77 ms/op 601.93 ms/op 0.89
findModifiedValidators - 1000 modified validators 426.21 ms/op 481.92 ms/op 0.88
findModifiedValidators - 100 modified validators 407.19 ms/op 477.60 ms/op 0.85
findModifiedValidators - 10 modified validators 408.52 ms/op 415.79 ms/op 0.98
findModifiedValidators - 1 modified validators 396.23 ms/op 436.52 ms/op 0.91
findModifiedValidators - no difference 419.26 ms/op 433.57 ms/op 0.97
compare ViewDUs 4.3257 s/op 4.5439 s/op 0.95
compare each validator Uint8Array 1.7294 s/op 1.8673 s/op 0.93
compare ViewDU to Uint8Array 1.1961 s/op 1.2011 s/op 1.00
migrate state 1000000 validators, 24 modified, 0 new 815.12 ms/op 786.67 ms/op 1.04
migrate state 1000000 validators, 1700 modified, 1000 new 1.1280 s/op 1.0778 s/op 1.05
migrate state 1000000 validators, 3400 modified, 2000 new 1.4420 s/op 1.3137 s/op 1.10
migrate state 1500000 validators, 24 modified, 0 new 940.32 ms/op 778.07 ms/op 1.21
migrate state 1500000 validators, 1700 modified, 1000 new 1.1545 s/op 1.0245 s/op 1.13
migrate state 1500000 validators, 3400 modified, 2000 new 1.3903 s/op 1.3016 s/op 1.07
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 5.0400 ns/op 5.0700 ns/op 0.99
state getBlockRootAtSlot - 250000 vs - 7PWei 688.51 ns/op 609.20 ns/op 1.13
computeProposers - vc 250000 9.5604 ms/op 9.6336 ms/op 0.99
computeEpochShuffling - vc 250000 108.91 ms/op 108.01 ms/op 1.01
getNextSyncCommittee - vc 250000 172.08 ms/op 159.10 ms/op 1.08
computeSigningRoot for AttestationData 27.725 us/op 24.671 us/op 1.12
hash AttestationData serialized data then Buffer.toString(base64) 2.4247 us/op 2.4559 us/op 0.99
toHexString serialized data 1.1574 us/op 1.1863 us/op 0.98
Buffer.toString(base64) 254.07 ns/op 237.91 ns/op 1.07

Please sign in to comment.