Skip to content

Commit

Permalink
feat: add EL sim utility fn to send big raw blob txs (#5661)
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech authored Jun 20, 2023
1 parent f677434 commit 5d9d86d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion packages/beacon-node/test/utils/runEl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {shell} from "../sim/shell.js";

/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable no-console */
let txRpcId = 1;

export enum ELStartMode {
PreMerge = "pre-merge",
Expand Down Expand Up @@ -219,10 +220,25 @@ export async function sendTransaction(url: string, transaction: Record<string, u
await shell(
`curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_sendTransaction","params":[${JSON.stringify(
transaction
)}],"id":67}' ${url}`
)}],"id":${txRpcId++}}' ${url}`
);
}

/**
* Send a big raw transaction by writing to the json file first and then curl post the file
*/
export async function sendRawTransactionBig(
url: string,
transactionRawHex: string,
dataFilePath: string
): Promise<void> {
fs.writeFileSync(
dataFilePath,
`{"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["${transactionRawHex}"],"id":${txRpcId++}}`
);
await shell(`curl -d @${dataFilePath} -H "Content-Type: application/json" -X POST ${url}; rm ${dataFilePath}`);
}

export async function getBalance(url: string, account: string): Promise<string> {
const response: string = await shell(
`curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBalance","params":["${account}","latest"],"id":67}' ${url}`
Expand Down

1 comment on commit 5d9d86d

@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: 5d9d86d Previous: 4bbe595 Ratio
forkChoice updateHead vc 600000 bc 64 eq 300000 100.25 ms/op 32.095 ms/op 3.12
Full benchmark results
Benchmark suite Current: 5d9d86d Previous: 4bbe595 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 656.28 us/op 775.11 us/op 0.85
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 45.639 us/op 47.102 us/op 0.97
BLS verify - blst-native 1.2321 ms/op 1.2291 ms/op 1.00
BLS verifyMultipleSignatures 3 - blst-native 2.5048 ms/op 2.4724 ms/op 1.01
BLS verifyMultipleSignatures 8 - blst-native 5.4084 ms/op 5.3352 ms/op 1.01
BLS verifyMultipleSignatures 32 - blst-native 19.439 ms/op 19.390 ms/op 1.00
BLS aggregatePubkeys 32 - blst-native 25.308 us/op 25.683 us/op 0.99
BLS aggregatePubkeys 128 - blst-native 101.93 us/op 101.02 us/op 1.01
getAttestationsForBlock 54.599 ms/op 63.153 ms/op 0.86
isKnown best case - 1 super set check 263.00 ns/op 275.00 ns/op 0.96
isKnown normal case - 2 super set checks 263.00 ns/op 269.00 ns/op 0.98
isKnown worse case - 16 super set checks 261.00 ns/op 269.00 ns/op 0.97
CheckpointStateCache - add get delete 5.5730 us/op 5.1300 us/op 1.09
validate gossip signedAggregateAndProof - struct 2.8649 ms/op 2.8007 ms/op 1.02
validate gossip attestation - struct 1.3410 ms/op 1.3137 ms/op 1.02
pickEth1Vote - no votes 1.3271 ms/op 1.2622 ms/op 1.05
pickEth1Vote - max votes 10.471 ms/op 10.621 ms/op 0.99
pickEth1Vote - Eth1Data hashTreeRoot value x2048 9.2531 ms/op 8.8614 ms/op 1.04
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 16.209 ms/op 17.569 ms/op 0.92
pickEth1Vote - Eth1Data fastSerialize value x2048 706.75 us/op 602.25 us/op 1.17
pickEth1Vote - Eth1Data fastSerialize tree x2048 5.6730 ms/op 9.1370 ms/op 0.62
bytes32 toHexString 534.00 ns/op 480.00 ns/op 1.11
bytes32 Buffer.toString(hex) 384.00 ns/op 346.00 ns/op 1.11
bytes32 Buffer.toString(hex) from Uint8Array 636.00 ns/op 563.00 ns/op 1.13
bytes32 Buffer.toString(hex) + 0x 377.00 ns/op 347.00 ns/op 1.09
Object access 1 prop 0.19100 ns/op 0.17400 ns/op 1.10
Map access 1 prop 0.16600 ns/op 0.16000 ns/op 1.04
Object get x1000 6.9690 ns/op 6.7700 ns/op 1.03
Map get x1000 0.72400 ns/op 0.59700 ns/op 1.21
Object set x1000 79.896 ns/op 51.289 ns/op 1.56
Map set x1000 60.012 ns/op 44.469 ns/op 1.35
Return object 10000 times 0.28140 ns/op 0.24360 ns/op 1.16
Throw Error 10000 times 4.5697 us/op 4.3268 us/op 1.06
fastMsgIdFn sha256 / 200 bytes 3.6560 us/op 3.5370 us/op 1.03
fastMsgIdFn h32 xxhash / 200 bytes 315.00 ns/op 288.00 ns/op 1.09
fastMsgIdFn h64 xxhash / 200 bytes 492.00 ns/op 416.00 ns/op 1.18
fastMsgIdFn sha256 / 1000 bytes 12.075 us/op 12.442 us/op 0.97
fastMsgIdFn h32 xxhash / 1000 bytes 447.00 ns/op 437.00 ns/op 1.02
fastMsgIdFn h64 xxhash / 1000 bytes 536.00 ns/op 479.00 ns/op 1.12
fastMsgIdFn sha256 / 10000 bytes 108.93 us/op 105.47 us/op 1.03
fastMsgIdFn h32 xxhash / 10000 bytes 2.0190 us/op 2.0090 us/op 1.00
fastMsgIdFn h64 xxhash / 10000 bytes 1.4680 us/op 1.4410 us/op 1.02
enrSubnets - fastDeserialize 64 bits 1.5850 us/op 1.2890 us/op 1.23
enrSubnets - ssz BitVector 64 bits 623.00 ns/op 498.00 ns/op 1.25
enrSubnets - fastDeserialize 4 bits 227.00 ns/op 170.00 ns/op 1.34
enrSubnets - ssz BitVector 4 bits 626.00 ns/op 516.00 ns/op 1.21
prioritizePeers score -10:0 att 32-0.1 sync 2-0 140.10 us/op 116.35 us/op 1.20
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 193.44 us/op 137.53 us/op 1.41
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 215.11 us/op 174.12 us/op 1.24
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 395.84 us/op 315.56 us/op 1.25
prioritizePeers score 0:0 att 64-1 sync 4-1 528.65 us/op 379.78 us/op 1.39
array of 16000 items push then shift 2.0038 us/op 1.6754 us/op 1.20
LinkedList of 16000 items push then shift 12.131 ns/op 9.1310 ns/op 1.33
array of 16000 items push then pop 116.13 ns/op 97.403 ns/op 1.19
LinkedList of 16000 items push then pop 11.703 ns/op 9.0140 ns/op 1.30
array of 24000 items push then shift 3.0874 us/op 2.4663 us/op 1.25
LinkedList of 24000 items push then shift 11.279 ns/op 11.758 ns/op 0.96
array of 24000 items push then pop 97.037 ns/op 79.156 ns/op 1.23
LinkedList of 24000 items push then pop 9.4630 ns/op 8.9340 ns/op 1.06
intersect bitArray bitLen 8 14.628 ns/op 14.112 ns/op 1.04
intersect array and set length 8 83.034 ns/op 82.724 ns/op 1.00
intersect bitArray bitLen 128 48.875 ns/op 47.445 ns/op 1.03
intersect array and set length 128 1.2648 us/op 1.1009 us/op 1.15
Buffer.concat 32 items 3.1110 us/op 2.8530 us/op 1.09
Uint8Array.set 32 items 2.6230 us/op 2.8370 us/op 0.92
transfer serialized Status (84 B) 2.3100 us/op 2.3320 us/op 0.99
copy serialized Status (84 B) 1.8550 us/op 1.9960 us/op 0.93
transfer serialized SignedVoluntaryExit (112 B) 2.3320 us/op 2.4510 us/op 0.95
copy serialized SignedVoluntaryExit (112 B) 2.1140 us/op 2.0560 us/op 1.03
transfer serialized ProposerSlashing (416 B) 3.0360 us/op 3.3280 us/op 0.91
copy serialized ProposerSlashing (416 B) 2.6210 us/op 3.2780 us/op 0.80
transfer serialized Attestation (485 B) 2.5520 us/op 3.5240 us/op 0.72
copy serialized Attestation (485 B) 2.4410 us/op 3.5420 us/op 0.69
transfer serialized AttesterSlashing (33232 B) 2.6140 us/op 3.7180 us/op 0.70
copy serialized AttesterSlashing (33232 B) 7.1980 us/op 7.2910 us/op 0.99
transfer serialized Small SignedBeaconBlock (128000 B) 3.4640 us/op 3.4870 us/op 0.99
copy serialized Small SignedBeaconBlock (128000 B) 21.838 us/op 14.788 us/op 1.48
transfer serialized Avg SignedBeaconBlock (200000 B) 3.7960 us/op 3.5850 us/op 1.06
copy serialized Avg SignedBeaconBlock (200000 B) 28.756 us/op 24.353 us/op 1.18
transfer serialized BlobsSidecar (524380 B) 4.2930 us/op 3.5360 us/op 1.21
copy serialized BlobsSidecar (524380 B) 157.33 us/op 192.28 us/op 0.82
transfer serialized Big SignedBeaconBlock (1000000 B) 3.9920 us/op 3.6400 us/op 1.10
copy serialized Big SignedBeaconBlock (1000000 B) 173.62 us/op 259.25 us/op 0.67
pass gossip attestations to forkchoice per slot 2.8672 ms/op 2.7079 ms/op 1.06
forkChoice updateHead vc 100000 bc 64 eq 0 2.3535 ms/op 2.1161 ms/op 1.11
forkChoice updateHead vc 600000 bc 64 eq 0 16.516 ms/op 11.521 ms/op 1.43
forkChoice updateHead vc 1000000 bc 64 eq 0 19.848 ms/op 18.837 ms/op 1.05
forkChoice updateHead vc 600000 bc 320 eq 0 17.846 ms/op 17.209 ms/op 1.04
forkChoice updateHead vc 600000 bc 1200 eq 0 94.881 ms/op 86.483 ms/op 1.10
forkChoice updateHead vc 600000 bc 64 eq 1000 22.395 ms/op 22.012 ms/op 1.02
forkChoice updateHead vc 600000 bc 64 eq 10000 26.611 ms/op 24.009 ms/op 1.11
forkChoice updateHead vc 600000 bc 64 eq 300000 100.25 ms/op 32.095 ms/op 3.12
computeDeltas 3.4854 ms/op 3.8855 ms/op 0.90
computeProposerBoostScoreFromBalances 1.9151 ms/op 1.8099 ms/op 1.06
altair processAttestation - 250000 vs - 7PWei normalcase 2.9638 ms/op 3.4779 ms/op 0.85
altair processAttestation - 250000 vs - 7PWei worstcase 4.7460 ms/op 4.0392 ms/op 1.17
altair processAttestation - setStatus - 1/6 committees join 148.29 us/op 151.72 us/op 0.98
altair processAttestation - setStatus - 1/3 committees join 304.08 us/op 306.26 us/op 0.99
altair processAttestation - setStatus - 1/2 committees join 395.36 us/op 402.82 us/op 0.98
altair processAttestation - setStatus - 2/3 committees join 492.58 us/op 499.40 us/op 0.99
altair processAttestation - setStatus - 4/5 committees join 684.03 us/op 708.89 us/op 0.96
altair processAttestation - setStatus - 100% committees join 811.86 us/op 835.33 us/op 0.97
altair processBlock - 250000 vs - 7PWei normalcase 16.459 ms/op 19.879 ms/op 0.83
altair processBlock - 250000 vs - 7PWei normalcase hashState 24.960 ms/op 27.593 ms/op 0.90
altair processBlock - 250000 vs - 7PWei worstcase 47.450 ms/op 55.711 ms/op 0.85
altair processBlock - 250000 vs - 7PWei worstcase hashState 69.204 ms/op 84.267 ms/op 0.82
phase0 processBlock - 250000 vs - 7PWei normalcase 2.2969 ms/op 2.0757 ms/op 1.11
phase0 processBlock - 250000 vs - 7PWei worstcase 28.723 ms/op 29.291 ms/op 0.98
altair processEth1Data - 250000 vs - 7PWei normalcase 481.90 us/op 489.33 us/op 0.98
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 12.941 us/op 8.6220 us/op 1.50
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 22.854 us/op 26.165 us/op 0.87
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 9.2170 us/op 8.1330 us/op 1.13
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 7.5430 us/op 10.625 us/op 0.71
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 87.205 us/op 74.723 us/op 1.17
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 676.41 us/op 1.1600 ms/op 0.58
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 928.42 us/op 1.6724 ms/op 0.56
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 908.13 us/op 1.6291 ms/op 0.56
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.4400 ms/op 2.2076 ms/op 1.11
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.5133 ms/op 2.4621 ms/op 0.61
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.9055 ms/op 3.8771 ms/op 1.01
Tree 40 250000 create 310.71 ms/op 315.50 ms/op 0.98
Tree 40 250000 get(125000) 187.73 ns/op 195.82 ns/op 0.96
Tree 40 250000 set(125000) 970.34 ns/op 974.66 ns/op 1.00
Tree 40 250000 toArray() 19.193 ms/op 21.801 ms/op 0.88
Tree 40 250000 iterate all - toArray() + loop 19.098 ms/op 19.373 ms/op 0.99
Tree 40 250000 iterate all - get(i) 77.561 ms/op 72.268 ms/op 1.07
MutableVector 250000 create 10.345 ms/op 15.229 ms/op 0.68
MutableVector 250000 get(125000) 6.3590 ns/op 6.5550 ns/op 0.97
MutableVector 250000 set(125000) 276.39 ns/op 250.02 ns/op 1.11
MutableVector 250000 toArray() 2.8917 ms/op 2.8389 ms/op 1.02
MutableVector 250000 iterate all - toArray() + loop 3.8788 ms/op 2.8790 ms/op 1.35
MutableVector 250000 iterate all - get(i) 1.4976 ms/op 1.5654 ms/op 0.96
Array 250000 create 3.0440 ms/op 2.5322 ms/op 1.20
Array 250000 clone - spread 1.2022 ms/op 1.1306 ms/op 1.06
Array 250000 get(125000) 0.56400 ns/op 0.58000 ns/op 0.97
Array 250000 set(125000) 0.65100 ns/op 0.66000 ns/op 0.99
Array 250000 iterate all - loop 109.57 us/op 84.784 us/op 1.29
effectiveBalanceIncrements clone Uint8Array 300000 31.115 us/op 26.581 us/op 1.17
effectiveBalanceIncrements clone MutableVector 300000 333.00 ns/op 374.00 ns/op 0.89
effectiveBalanceIncrements rw all Uint8Array 300000 172.55 us/op 175.51 us/op 0.98
effectiveBalanceIncrements rw all MutableVector 300000 83.700 ms/op 82.451 ms/op 1.02
phase0 afterProcessEpoch - 250000 vs - 7PWei 110.95 ms/op 118.09 ms/op 0.94
phase0 beforeProcessEpoch - 250000 vs - 7PWei 42.592 ms/op 47.821 ms/op 0.89
altair processEpoch - mainnet_e81889 337.31 ms/op 359.43 ms/op 0.94
mainnet_e81889 - altair beforeProcessEpoch 63.555 ms/op 73.650 ms/op 0.86
mainnet_e81889 - altair processJustificationAndFinalization 19.234 us/op 24.960 us/op 0.77
mainnet_e81889 - altair processInactivityUpdates 5.6335 ms/op 6.1032 ms/op 0.92
mainnet_e81889 - altair processRewardsAndPenalties 46.323 ms/op 83.712 ms/op 0.55
mainnet_e81889 - altair processRegistryUpdates 3.1410 us/op 6.6730 us/op 0.47
mainnet_e81889 - altair processSlashings 519.00 ns/op 922.00 ns/op 0.56
mainnet_e81889 - altair processEth1DataReset 549.00 ns/op 863.00 ns/op 0.64
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.2603 ms/op 1.7648 ms/op 0.71
mainnet_e81889 - altair processSlashingsReset 4.0570 us/op 5.1260 us/op 0.79
mainnet_e81889 - altair processRandaoMixesReset 7.3520 us/op 5.6860 us/op 1.29
mainnet_e81889 - altair processHistoricalRootsUpdate 1.1990 us/op 1.8480 us/op 0.65
mainnet_e81889 - altair processParticipationFlagUpdates 2.9010 us/op 3.8020 us/op 0.76
mainnet_e81889 - altair processSyncCommitteeUpdates 780.00 ns/op 778.00 ns/op 1.00
mainnet_e81889 - altair afterProcessEpoch 128.96 ms/op 136.88 ms/op 0.94
phase0 processEpoch - mainnet_e58758 362.82 ms/op 411.64 ms/op 0.88
mainnet_e58758 - phase0 beforeProcessEpoch 140.09 ms/op 159.13 ms/op 0.88
mainnet_e58758 - phase0 processJustificationAndFinalization 16.707 us/op 23.853 us/op 0.70
mainnet_e58758 - phase0 processRewardsAndPenalties 64.999 ms/op 76.126 ms/op 0.85
mainnet_e58758 - phase0 processRegistryUpdates 8.3700 us/op 10.008 us/op 0.84
mainnet_e58758 - phase0 processSlashings 490.00 ns/op 700.00 ns/op 0.70
mainnet_e58758 - phase0 processEth1DataReset 549.00 ns/op 663.00 ns/op 0.83
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 949.28 us/op 1.2842 ms/op 0.74
mainnet_e58758 - phase0 processSlashingsReset 4.2900 us/op 6.9920 us/op 0.61
mainnet_e58758 - phase0 processRandaoMixesReset 4.6640 us/op 7.4020 us/op 0.63
mainnet_e58758 - phase0 processHistoricalRootsUpdate 609.00 ns/op 891.00 ns/op 0.68
mainnet_e58758 - phase0 processParticipationRecordUpdates 4.3630 us/op 5.5030 us/op 0.79
mainnet_e58758 - phase0 afterProcessEpoch 96.898 ms/op 104.32 ms/op 0.93
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.2266 ms/op 1.5174 ms/op 0.81
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.5612 ms/op 1.9865 ms/op 0.79
altair processInactivityUpdates - 250000 normalcase 24.279 ms/op 27.596 ms/op 0.88
altair processInactivityUpdates - 250000 worstcase 26.174 ms/op 27.827 ms/op 0.94
phase0 processRegistryUpdates - 250000 normalcase 7.2830 us/op 8.0320 us/op 0.91
phase0 processRegistryUpdates - 250000 badcase_full_deposits 226.55 us/op 304.87 us/op 0.74
phase0 processRegistryUpdates - 250000 worstcase 0.5 124.78 ms/op 130.43 ms/op 0.96
altair processRewardsAndPenalties - 250000 normalcase 66.319 ms/op 75.140 ms/op 0.88
altair processRewardsAndPenalties - 250000 worstcase 69.283 ms/op 74.931 ms/op 0.92
phase0 getAttestationDeltas - 250000 normalcase 6.4788 ms/op 7.0340 ms/op 0.92
phase0 getAttestationDeltas - 250000 worstcase 6.3128 ms/op 10.325 ms/op 0.61
phase0 processSlashings - 250000 worstcase 3.4382 ms/op 3.7813 ms/op 0.91
altair processSyncCommitteeUpdates - 250000 170.94 ms/op 189.80 ms/op 0.90
BeaconState.hashTreeRoot - No change 272.00 ns/op 312.00 ns/op 0.87
BeaconState.hashTreeRoot - 1 full validator 53.789 us/op 57.587 us/op 0.93
BeaconState.hashTreeRoot - 32 full validator 499.00 us/op 632.32 us/op 0.79
BeaconState.hashTreeRoot - 512 full validator 5.4598 ms/op 6.8258 ms/op 0.80
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 59.902 us/op 75.821 us/op 0.79
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 900.21 us/op 935.86 us/op 0.96
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 11.391 ms/op 13.372 ms/op 0.85
BeaconState.hashTreeRoot - 1 balances 48.175 us/op 52.435 us/op 0.92
BeaconState.hashTreeRoot - 32 balances 444.47 us/op 488.18 us/op 0.91
BeaconState.hashTreeRoot - 512 balances 4.5113 ms/op 5.0601 ms/op 0.89
BeaconState.hashTreeRoot - 250000 balances 74.303 ms/op 82.249 ms/op 0.90
aggregationBits - 2048 els - zipIndexesInBitList 15.209 us/op 17.826 us/op 0.85
regular array get 100000 times 34.544 us/op 43.685 us/op 0.79
wrappedArray get 100000 times 32.253 us/op 33.954 us/op 0.95
arrayWithProxy get 100000 times 16.111 ms/op 16.376 ms/op 0.98
ssz.Root.equals 535.00 ns/op 592.00 ns/op 0.90
byteArrayEquals 526.00 ns/op 565.00 ns/op 0.93
shuffle list - 16384 els 6.7729 ms/op 7.3296 ms/op 0.92
shuffle list - 250000 els 99.397 ms/op 107.40 ms/op 0.93
processSlot - 1 slots 8.9900 us/op 9.7190 us/op 0.92
processSlot - 32 slots 1.3333 ms/op 1.4006 ms/op 0.95
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 35.082 ms/op 40.476 ms/op 0.87
getCommitteeAssignments - req 1 vs - 250000 vc 3.0387 ms/op 3.0602 ms/op 0.99
getCommitteeAssignments - req 100 vs - 250000 vc 4.2893 ms/op 4.3344 ms/op 0.99
getCommitteeAssignments - req 1000 vs - 250000 vc 4.6406 ms/op 4.8655 ms/op 0.95
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.6300 ns/op 5.4000 ns/op 0.86
state getBlockRootAtSlot - 250000 vs - 7PWei 607.76 ns/op 770.04 ns/op 0.79
computeProposers - vc 250000 10.416 ms/op 11.955 ms/op 0.87
computeEpochShuffling - vc 250000 105.74 ms/op 111.76 ms/op 0.95
getNextSyncCommittee - vc 250000 174.77 ms/op 183.34 ms/op 0.95
computeSigningRoot for AttestationData 13.826 us/op 14.616 us/op 0.95
hash AttestationData serialized data then Buffer.toString(base64) 2.5617 us/op 2.6362 us/op 0.97
toHexString serialized data 1.1183 us/op 1.1581 us/op 0.97
Buffer.toString(base64) 344.08 ns/op 353.97 ns/op 0.97

Please sign in to comment.