Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: rename all sim test files to camelCase #6643

Merged
merged 5 commits into from
Apr 8, 2024
Merged

Conversation

nazarhussain
Copy link
Contributor

Motivation

Consistent codebase.

Description

Keep the file name pattern consistently every where.

Steps to test or reproduce

  • Run all tests

@nazarhussain nazarhussain requested a review from a team as a code owner April 5, 2024 18:56
@nazarhussain nazarhussain self-assigned this Apr 5, 2024
Copy link

codecov bot commented Apr 5, 2024

Codecov Report

Merging #6643 (47ff329) into unstable (f2ec0d4) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #6643   +/-   ##
=========================================
  Coverage     61.69%   61.69%           
=========================================
  Files           556      556           
  Lines         58820    58820           
  Branches       1887     1887           
=========================================
  Hits          36287    36287           
  Misses        22492    22492           
  Partials         41       41           

Copy link
Contributor

github-actions bot commented Apr 5, 2024

Performance Report

✔️ no performance regression detected

🚀🚀 Significant benchmark improvement detected

Benchmark suite Current: 8ef2215 Previous: f2ec0d4 Ratio
Map set x1000 17.528 ns/op 53.710 ns/op 0.33
Set add up to 64 items then delete first 1.7463 us/op 5.3774 us/op 0.32
Full benchmark results
Benchmark suite Current: 8ef2215 Previous: f2ec0d4 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 833.15 us/op 839.47 us/op 0.99
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 59.003 us/op 157.37 us/op 0.37
BLS verify - blst-native 1.1287 ms/op 1.3840 ms/op 0.82
BLS verifyMultipleSignatures 3 - blst-native 2.4311 ms/op 2.8584 ms/op 0.85
BLS verifyMultipleSignatures 8 - blst-native 5.3724 ms/op 6.4171 ms/op 0.84
BLS verifyMultipleSignatures 32 - blst-native 19.847 ms/op 23.014 ms/op 0.86
BLS verifyMultipleSignatures 64 - blst-native 39.496 ms/op 46.244 ms/op 0.85
BLS verifyMultipleSignatures 128 - blst-native 76.180 ms/op 96.080 ms/op 0.79
BLS deserializing 10000 signatures 835.17 ms/op 979.90 ms/op 0.85
BLS deserializing 100000 signatures 8.6186 s/op 9.9667 s/op 0.86
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.1698 ms/op 1.6826 ms/op 0.70
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.2908 ms/op 2.0471 ms/op 0.63
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.4567 ms/op 3.4702 ms/op 0.71
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.7928 ms/op 4.2924 ms/op 0.88
BLS verifyMultipleSignatures - same message - 128 - blst-native 5.2335 ms/op 9.5265 ms/op 0.55
BLS aggregatePubkeys 32 - blst-native 23.269 us/op 28.338 us/op 0.82
BLS aggregatePubkeys 128 - blst-native 90.893 us/op 108.53 us/op 0.84
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 51.083 ms/op 70.089 ms/op 0.73
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 46.209 ms/op 66.507 ms/op 0.69
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 25.519 ms/op 36.750 ms/op 0.69
getSlashingsAndExits - default max 167.83 us/op 189.62 us/op 0.89
getSlashingsAndExits - 2k 352.37 us/op 439.38 us/op 0.80
proposeBlockBody type=full, size=empty 4.4024 ms/op 5.9458 ms/op 0.74
isKnown best case - 1 super set check 605.00 ns/op 359.00 ns/op 1.69
isKnown normal case - 2 super set checks 358.00 ns/op 360.00 ns/op 0.99
isKnown worse case - 16 super set checks 350.00 ns/op 335.00 ns/op 1.04
InMemoryCheckpointStateCache - add get delete 7.3770 us/op 6.2180 us/op 1.19
validate api signedAggregateAndProof - struct 2.4813 ms/op 2.9645 ms/op 0.84
validate gossip signedAggregateAndProof - struct 2.4828 ms/op 2.9202 ms/op 0.85
validate gossip attestation - vc 640000 1.1986 ms/op 1.3979 ms/op 0.86
batch validate gossip attestation - vc 640000 - chunk 32 147.11 us/op 169.99 us/op 0.87
batch validate gossip attestation - vc 640000 - chunk 64 134.28 us/op 150.53 us/op 0.89
batch validate gossip attestation - vc 640000 - chunk 128 123.83 us/op 145.15 us/op 0.85
batch validate gossip attestation - vc 640000 - chunk 256 126.73 us/op 132.49 us/op 0.96
pickEth1Vote - no votes 1.0336 ms/op 1.3921 ms/op 0.74
pickEth1Vote - max votes 6.5161 ms/op 11.553 ms/op 0.56
pickEth1Vote - Eth1Data hashTreeRoot value x2048 12.709 ms/op 21.563 ms/op 0.59
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 33.600 ms/op 32.754 ms/op 1.03
pickEth1Vote - Eth1Data fastSerialize value x2048 441.83 us/op 710.54 us/op 0.62
pickEth1Vote - Eth1Data fastSerialize tree x2048 4.9250 ms/op 5.7697 ms/op 0.85
bytes32 toHexString 465.00 ns/op 742.00 ns/op 0.63
bytes32 Buffer.toString(hex) 321.00 ns/op 329.00 ns/op 0.98
bytes32 Buffer.toString(hex) from Uint8Array 422.00 ns/op 585.00 ns/op 0.72
bytes32 Buffer.toString(hex) + 0x 331.00 ns/op 359.00 ns/op 0.92
Object access 1 prop 0.21000 ns/op 0.23300 ns/op 0.90
Map access 1 prop 0.20200 ns/op 0.17100 ns/op 1.18
Object get x1000 5.4750 ns/op 8.9650 ns/op 0.61
Map get x1000 0.74400 ns/op 0.88700 ns/op 0.84
Object set x1000 25.341 ns/op 68.735 ns/op 0.37
Map set x1000 17.528 ns/op 53.710 ns/op 0.33
Return object 10000 times 0.23210 ns/op 0.27020 ns/op 0.86
Throw Error 10000 times 2.7885 us/op 3.9638 us/op 0.70
fastMsgIdFn sha256 / 200 bytes 1.9480 us/op 3.4640 us/op 0.56
fastMsgIdFn h32 xxhash / 200 bytes 317.00 ns/op 366.00 ns/op 0.87
fastMsgIdFn h64 xxhash / 200 bytes 385.00 ns/op 403.00 ns/op 0.96
fastMsgIdFn sha256 / 1000 bytes 6.4280 us/op 12.123 us/op 0.53
fastMsgIdFn h32 xxhash / 1000 bytes 441.00 ns/op 484.00 ns/op 0.91
fastMsgIdFn h64 xxhash / 1000 bytes 441.00 ns/op 471.00 ns/op 0.94
fastMsgIdFn sha256 / 10000 bytes 53.601 us/op 109.86 us/op 0.49
fastMsgIdFn h32 xxhash / 10000 bytes 1.9130 us/op 2.0550 us/op 0.93
fastMsgIdFn h64 xxhash / 10000 bytes 1.2940 us/op 1.4050 us/op 0.92
send data - 1000 256B messages 11.404 ms/op 20.178 ms/op 0.57
send data - 1000 512B messages 14.352 ms/op 29.876 ms/op 0.48
send data - 1000 1024B messages 28.667 ms/op 39.869 ms/op 0.72
send data - 1000 1200B messages 34.294 ms/op 43.239 ms/op 0.79
send data - 1000 2048B messages 41.773 ms/op 52.761 ms/op 0.79
send data - 1000 4096B messages 39.921 ms/op 30.843 ms/op 1.29
send data - 1000 16384B messages 103.42 ms/op 126.27 ms/op 0.82
send data - 1000 65536B messages 414.06 ms/op 505.27 ms/op 0.82
enrSubnets - fastDeserialize 64 bits 1.4720 us/op 1.5480 us/op 0.95
enrSubnets - ssz BitVector 64 bits 569.00 ns/op 564.00 ns/op 1.01
enrSubnets - fastDeserialize 4 bits 289.00 ns/op 232.00 ns/op 1.25
enrSubnets - ssz BitVector 4 bits 494.00 ns/op 514.00 ns/op 0.96
prioritizePeers score -10:0 att 32-0.1 sync 2-0 74.199 us/op 113.59 us/op 0.65
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 92.570 us/op 145.14 us/op 0.64
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 159.04 us/op 216.78 us/op 0.73
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 283.68 us/op 339.50 us/op 0.84
prioritizePeers score 0:0 att 64-1 sync 4-1 262.60 us/op 412.02 us/op 0.64
array of 16000 items push then shift 1.3459 us/op 1.7803 us/op 0.76
LinkedList of 16000 items push then shift 6.3230 ns/op 9.6350 ns/op 0.66
array of 16000 items push then pop 106.17 ns/op 105.03 ns/op 1.01
LinkedList of 16000 items push then pop 5.9140 ns/op 8.7720 ns/op 0.67
array of 24000 items push then shift 1.9643 us/op 2.5638 us/op 0.77
LinkedList of 24000 items push then shift 5.9170 ns/op 9.3580 ns/op 0.63
array of 24000 items push then pop 109.73 ns/op 140.64 ns/op 0.78
LinkedList of 24000 items push then pop 5.7400 ns/op 8.8100 ns/op 0.65
intersect bitArray bitLen 8 4.9040 ns/op 5.9340 ns/op 0.83
intersect array and set length 8 49.083 ns/op 72.278 ns/op 0.68
intersect bitArray bitLen 128 29.644 ns/op 37.705 ns/op 0.79
intersect array and set length 128 686.43 ns/op 976.02 ns/op 0.70
bitArray.getTrueBitIndexes() bitLen 128 1.1900 us/op 2.1380 us/op 0.56
bitArray.getTrueBitIndexes() bitLen 248 2.0520 us/op 3.2750 us/op 0.63
bitArray.getTrueBitIndexes() bitLen 512 3.5250 us/op 6.5310 us/op 0.54
Buffer.concat 32 items 861.00 ns/op 1.2290 us/op 0.70
Uint8Array.set 32 items 1.7000 us/op 2.2350 us/op 0.76
Set add up to 64 items then delete first 1.7463 us/op 5.3774 us/op 0.32
OrderedSet add up to 64 items then delete first 2.7116 us/op 7.0148 us/op 0.39
Set add up to 64 items then delete last 1.9788 us/op 5.7952 us/op 0.34
OrderedSet add up to 64 items then delete last 3.1672 us/op 6.9846 us/op 0.45
Set add up to 64 items then delete middle 2.0673 us/op 5.4493 us/op 0.38
OrderedSet add up to 64 items then delete middle 4.4290 us/op 8.6302 us/op 0.51
Set add up to 128 items then delete first 3.9660 us/op 11.739 us/op 0.34
OrderedSet add up to 128 items then delete first 6.5290 us/op 14.892 us/op 0.44
Set add up to 128 items then delete last 3.7792 us/op 11.001 us/op 0.34
OrderedSet add up to 128 items then delete last 5.7105 us/op 14.816 us/op 0.39
Set add up to 128 items then delete middle 3.8265 us/op 10.885 us/op 0.35
OrderedSet add up to 128 items then delete middle 11.246 us/op 21.124 us/op 0.53
Set add up to 256 items then delete first 7.7202 us/op 22.407 us/op 0.34
OrderedSet add up to 256 items then delete first 12.154 us/op 31.602 us/op 0.38
Set add up to 256 items then delete last 7.7868 us/op 21.545 us/op 0.36
OrderedSet add up to 256 items then delete last 11.486 us/op 27.147 us/op 0.42
Set add up to 256 items then delete middle 7.4375 us/op 21.785 us/op 0.34
OrderedSet add up to 256 items then delete middle 30.523 us/op 51.986 us/op 0.59
transfer serialized Status (84 B) 1.3550 us/op 2.0750 us/op 0.65
copy serialized Status (84 B) 1.1350 us/op 1.4980 us/op 0.76
transfer serialized SignedVoluntaryExit (112 B) 1.4650 us/op 2.2420 us/op 0.65
copy serialized SignedVoluntaryExit (112 B) 1.1970 us/op 1.5950 us/op 0.75
transfer serialized ProposerSlashing (416 B) 1.6820 us/op 3.3890 us/op 0.50
copy serialized ProposerSlashing (416 B) 1.4300 us/op 3.2010 us/op 0.45
transfer serialized Attestation (485 B) 2.2990 us/op 3.8750 us/op 0.59
copy serialized Attestation (485 B) 2.0320 us/op 3.2300 us/op 0.63
transfer serialized AttesterSlashing (33232 B) 2.0470 us/op 2.9380 us/op 0.70
copy serialized AttesterSlashing (33232 B) 4.3220 us/op 6.8700 us/op 0.63
transfer serialized Small SignedBeaconBlock (128000 B) 2.1730 us/op 3.5820 us/op 0.61
copy serialized Small SignedBeaconBlock (128000 B) 9.8650 us/op 22.009 us/op 0.45
transfer serialized Avg SignedBeaconBlock (200000 B) 2.3610 us/op 3.7790 us/op 0.62
copy serialized Avg SignedBeaconBlock (200000 B) 13.380 us/op 25.832 us/op 0.52
transfer serialized BlobsSidecar (524380 B) 2.5900 us/op 4.1310 us/op 0.63
copy serialized BlobsSidecar (524380 B) 99.347 us/op 151.12 us/op 0.66
transfer serialized Big SignedBeaconBlock (1000000 B) 2.8230 us/op 3.7370 us/op 0.76
copy serialized Big SignedBeaconBlock (1000000 B) 143.83 us/op 171.88 us/op 0.84
pass gossip attestations to forkchoice per slot 2.7471 ms/op 4.9037 ms/op 0.56
forkChoice updateHead vc 100000 bc 64 eq 0 527.63 us/op 727.56 us/op 0.73
forkChoice updateHead vc 600000 bc 64 eq 0 2.6134 ms/op 5.3574 ms/op 0.49
forkChoice updateHead vc 1000000 bc 64 eq 0 4.4695 ms/op 7.0819 ms/op 0.63
forkChoice updateHead vc 600000 bc 320 eq 0 2.6849 ms/op 4.2588 ms/op 0.63
forkChoice updateHead vc 600000 bc 1200 eq 0 2.7584 ms/op 4.3877 ms/op 0.63
forkChoice updateHead vc 600000 bc 7200 eq 0 3.5679 ms/op 5.9320 ms/op 0.60
forkChoice updateHead vc 600000 bc 64 eq 1000 9.9386 ms/op 11.347 ms/op 0.88
forkChoice updateHead vc 600000 bc 64 eq 10000 9.7914 ms/op 12.079 ms/op 0.81
forkChoice updateHead vc 600000 bc 64 eq 300000 12.112 ms/op 16.338 ms/op 0.74
computeDeltas 500000 validators 300 proto nodes 3.3156 ms/op 6.9595 ms/op 0.48
computeDeltas 500000 validators 1200 proto nodes 3.2218 ms/op 7.0278 ms/op 0.46
computeDeltas 500000 validators 7200 proto nodes 3.1071 ms/op 6.9576 ms/op 0.45
computeDeltas 750000 validators 300 proto nodes 4.4390 ms/op 10.723 ms/op 0.41
computeDeltas 750000 validators 1200 proto nodes 4.4585 ms/op 10.753 ms/op 0.41
computeDeltas 750000 validators 7200 proto nodes 4.4997 ms/op 10.465 ms/op 0.43
computeDeltas 1400000 validators 300 proto nodes 9.1232 ms/op 20.136 ms/op 0.45
computeDeltas 1400000 validators 1200 proto nodes 8.9521 ms/op 20.061 ms/op 0.45
computeDeltas 1400000 validators 7200 proto nodes 9.2324 ms/op 22.112 ms/op 0.42
computeDeltas 2100000 validators 300 proto nodes 12.923 ms/op 33.238 ms/op 0.39
computeDeltas 2100000 validators 1200 proto nodes 13.167 ms/op 31.109 ms/op 0.42
computeDeltas 2100000 validators 7200 proto nodes 13.420 ms/op 30.151 ms/op 0.45
altair processAttestation - 250000 vs - 7PWei normalcase 1.6057 ms/op 3.4027 ms/op 0.47
altair processAttestation - 250000 vs - 7PWei worstcase 2.4540 ms/op 5.5082 ms/op 0.45
altair processAttestation - setStatus - 1/6 committees join 94.582 us/op 266.78 us/op 0.35
altair processAttestation - setStatus - 1/3 committees join 188.87 us/op 441.46 us/op 0.43
altair processAttestation - setStatus - 1/2 committees join 278.83 us/op 579.97 us/op 0.48
altair processAttestation - setStatus - 2/3 committees join 380.09 us/op 711.79 us/op 0.53
altair processAttestation - setStatus - 4/5 committees join 479.00 us/op 991.91 us/op 0.48
altair processAttestation - setStatus - 100% committees join 586.01 us/op 1.0112 ms/op 0.58
altair processBlock - 250000 vs - 7PWei normalcase 6.4848 ms/op 8.8556 ms/op 0.73
altair processBlock - 250000 vs - 7PWei normalcase hashState 25.714 ms/op 38.524 ms/op 0.67
altair processBlock - 250000 vs - 7PWei worstcase 34.038 ms/op 43.424 ms/op 0.78
altair processBlock - 250000 vs - 7PWei worstcase hashState 69.350 ms/op 102.35 ms/op 0.68
phase0 processBlock - 250000 vs - 7PWei normalcase 1.7835 ms/op 3.2085 ms/op 0.56
phase0 processBlock - 250000 vs - 7PWei worstcase 28.902 ms/op 32.847 ms/op 0.88
altair processEth1Data - 250000 vs - 7PWei normalcase 276.02 us/op 458.88 us/op 0.60
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 7.0960 us/op 11.160 us/op 0.64
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 56.941 us/op 65.961 us/op 0.86
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 13.441 us/op 16.483 us/op 0.82
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 6.5690 us/op 19.243 us/op 0.34
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 159.41 us/op 158.68 us/op 1.00
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.0357 ms/op 1.5788 ms/op 0.66
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.1148 ms/op 1.7160 ms/op 0.65
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 939.23 us/op 1.8112 ms/op 0.52
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 2.0503 ms/op 4.0120 ms/op 0.51
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.5288 ms/op 2.7177 ms/op 0.56
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 3.5541 ms/op 5.9066 ms/op 0.60
Tree 40 250000 create 243.09 ms/op 402.08 ms/op 0.60
Tree 40 250000 get(125000) 116.72 ns/op 211.60 ns/op 0.55
Tree 40 250000 set(125000) 721.36 ns/op 1.2628 us/op 0.57
Tree 40 250000 toArray() 9.3174 ms/op 23.904 ms/op 0.39
Tree 40 250000 iterate all - toArray() + loop 9.4404 ms/op 24.795 ms/op 0.38
Tree 40 250000 iterate all - get(i) 38.996 ms/op 78.390 ms/op 0.50
MutableVector 250000 create 11.460 ms/op 14.414 ms/op 0.80
MutableVector 250000 get(125000) 5.3740 ns/op 7.5000 ns/op 0.72
MutableVector 250000 set(125000) 201.18 ns/op 302.08 ns/op 0.67
MutableVector 250000 toArray() 2.0381 ms/op 3.6971 ms/op 0.55
MutableVector 250000 iterate all - toArray() + loop 2.2122 ms/op 3.7769 ms/op 0.59
MutableVector 250000 iterate all - get(i) 1.3169 ms/op 1.5994 ms/op 0.82
Array 250000 create 2.0126 ms/op 3.4846 ms/op 0.58
Array 250000 clone - spread 1.1589 ms/op 1.4255 ms/op 0.81
Array 250000 get(125000) 1.0970 ns/op 1.2040 ns/op 0.91
Array 250000 set(125000) 1.2640 ns/op 4.5710 ns/op 0.28
Array 250000 iterate all - loop 155.27 us/op 181.21 us/op 0.86
effectiveBalanceIncrements clone Uint8Array 300000 14.513 us/op 43.226 us/op 0.34
effectiveBalanceIncrements clone MutableVector 300000 414.00 ns/op 451.00 ns/op 0.92
effectiveBalanceIncrements rw all Uint8Array 300000 182.91 us/op 217.07 us/op 0.84
effectiveBalanceIncrements rw all MutableVector 300000 105.44 ms/op 103.42 ms/op 1.02
phase0 afterProcessEpoch - 250000 vs - 7PWei 76.414 ms/op 122.12 ms/op 0.63
phase0 beforeProcessEpoch - 250000 vs - 7PWei 38.421 ms/op 54.827 ms/op 0.70
altair processEpoch - mainnet_e81889 384.27 ms/op 481.28 ms/op 0.80
mainnet_e81889 - altair beforeProcessEpoch 71.247 ms/op 83.478 ms/op 0.85
mainnet_e81889 - altair processJustificationAndFinalization 11.747 us/op 14.740 us/op 0.80
mainnet_e81889 - altair processInactivityUpdates 4.9829 ms/op 6.7491 ms/op 0.74
mainnet_e81889 - altair processRewardsAndPenalties 72.742 ms/op 59.639 ms/op 1.22
mainnet_e81889 - altair processRegistryUpdates 1.2040 us/op 2.0800 us/op 0.58
mainnet_e81889 - altair processSlashings 369.00 ns/op 411.00 ns/op 0.90
mainnet_e81889 - altair processEth1DataReset 370.00 ns/op 815.00 ns/op 0.45
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.0001 ms/op 1.4288 ms/op 0.70
mainnet_e81889 - altair processSlashingsReset 2.6340 us/op 3.6040 us/op 0.73
mainnet_e81889 - altair processRandaoMixesReset 2.8270 us/op 6.6300 us/op 0.43
mainnet_e81889 - altair processHistoricalRootsUpdate 708.00 ns/op 563.00 ns/op 1.26
mainnet_e81889 - altair processParticipationFlagUpdates 827.00 ns/op 2.5900 us/op 0.32
mainnet_e81889 - altair processSyncCommitteeUpdates 385.00 ns/op 734.00 ns/op 0.52
mainnet_e81889 - altair afterProcessEpoch 77.459 ms/op 138.14 ms/op 0.56
capella processEpoch - mainnet_e217614 1.6826 s/op 2.2131 s/op 0.76
mainnet_e217614 - capella beforeProcessEpoch 418.11 ms/op 526.32 ms/op 0.79
mainnet_e217614 - capella processJustificationAndFinalization 11.010 us/op 23.090 us/op 0.48
mainnet_e217614 - capella processInactivityUpdates 13.796 ms/op 27.008 ms/op 0.51
mainnet_e217614 - capella processRewardsAndPenalties 458.59 ms/op 633.66 ms/op 0.72
mainnet_e217614 - capella processRegistryUpdates 14.079 us/op 27.980 us/op 0.50
mainnet_e217614 - capella processSlashings 598.00 ns/op 488.00 ns/op 1.23
mainnet_e217614 - capella processEth1DataReset 579.00 ns/op 737.00 ns/op 0.79
mainnet_e217614 - capella processEffectiveBalanceUpdates 3.4500 ms/op 5.2362 ms/op 0.66
mainnet_e217614 - capella processSlashingsReset 1.5810 us/op 7.1330 us/op 0.22
mainnet_e217614 - capella processRandaoMixesReset 1.8670 us/op 14.076 us/op 0.13
mainnet_e217614 - capella processHistoricalRootsUpdate 399.00 ns/op 3.6630 us/op 0.11
mainnet_e217614 - capella processParticipationFlagUpdates 902.00 ns/op 6.0290 us/op 0.15
mainnet_e217614 - capella afterProcessEpoch 203.17 ms/op 453.90 ms/op 0.45
phase0 processEpoch - mainnet_e58758 386.30 ms/op 551.19 ms/op 0.70
mainnet_e58758 - phase0 beforeProcessEpoch 100.93 ms/op 190.68 ms/op 0.53
mainnet_e58758 - phase0 processJustificationAndFinalization 10.856 us/op 24.571 us/op 0.44
mainnet_e58758 - phase0 processRewardsAndPenalties 60.906 ms/op 75.055 ms/op 0.81
mainnet_e58758 - phase0 processRegistryUpdates 11.759 us/op 20.643 us/op 0.57
mainnet_e58758 - phase0 processSlashings 624.00 ns/op 1.3540 us/op 0.46
mainnet_e58758 - phase0 processEth1DataReset 565.00 ns/op 1.1220 us/op 0.50
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.3526 ms/op 1.6185 ms/op 0.84
mainnet_e58758 - phase0 processSlashingsReset 1.8490 us/op 7.4970 us/op 0.25
mainnet_e58758 - phase0 processRandaoMixesReset 2.6940 us/op 10.650 us/op 0.25
mainnet_e58758 - phase0 processHistoricalRootsUpdate 636.00 ns/op 1.2200 us/op 0.52
mainnet_e58758 - phase0 processParticipationRecordUpdates 2.8380 us/op 7.9620 us/op 0.36
mainnet_e58758 - phase0 afterProcessEpoch 63.860 ms/op 125.14 ms/op 0.51
phase0 processEffectiveBalanceUpdates - 250000 normalcase 994.11 us/op 1.7601 ms/op 0.56
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.0619 ms/op 1.9572 ms/op 0.54
altair processInactivityUpdates - 250000 normalcase 21.693 ms/op 36.797 ms/op 0.59
altair processInactivityUpdates - 250000 worstcase 25.733 ms/op 45.567 ms/op 0.56
phase0 processRegistryUpdates - 250000 normalcase 7.8160 us/op 12.931 us/op 0.60
phase0 processRegistryUpdates - 250000 badcase_full_deposits 410.96 us/op 519.40 us/op 0.79
phase0 processRegistryUpdates - 250000 worstcase 0.5 117.87 ms/op 190.24 ms/op 0.62
altair processRewardsAndPenalties - 250000 normalcase 69.837 ms/op 76.465 ms/op 0.91
altair processRewardsAndPenalties - 250000 worstcase 65.781 ms/op 74.612 ms/op 0.88
phase0 getAttestationDeltas - 250000 normalcase 5.6253 ms/op 11.393 ms/op 0.49
phase0 getAttestationDeltas - 250000 worstcase 5.7066 ms/op 10.102 ms/op 0.56
phase0 processSlashings - 250000 worstcase 48.454 us/op 96.048 us/op 0.50
altair processSyncCommitteeUpdates - 250000 109.76 ms/op 184.10 ms/op 0.60
BeaconState.hashTreeRoot - No change 381.00 ns/op 721.00 ns/op 0.53
BeaconState.hashTreeRoot - 1 full validator 118.34 us/op 146.23 us/op 0.81
BeaconState.hashTreeRoot - 32 full validator 1.2362 ms/op 1.4735 ms/op 0.84
BeaconState.hashTreeRoot - 512 full validator 13.734 ms/op 18.027 ms/op 0.76
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 151.57 us/op 184.00 us/op 0.82
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.9590 ms/op 2.4053 ms/op 0.81
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 25.781 ms/op 31.049 ms/op 0.83
BeaconState.hashTreeRoot - 1 balances 113.29 us/op 131.38 us/op 0.86
BeaconState.hashTreeRoot - 32 balances 1.2585 ms/op 1.2344 ms/op 1.02
BeaconState.hashTreeRoot - 512 balances 11.135 ms/op 13.823 ms/op 0.81
BeaconState.hashTreeRoot - 250000 balances 188.62 ms/op 210.06 ms/op 0.90
aggregationBits - 2048 els - zipIndexesInBitList 19.110 us/op 39.948 us/op 0.48
byteArrayEquals 32 63.825 ns/op 84.662 ns/op 0.75
Buffer.compare 32 39.418 ns/op 61.470 ns/op 0.64
byteArrayEquals 1024 1.7315 us/op 2.3873 us/op 0.73
Buffer.compare 1024 49.385 ns/op 81.432 ns/op 0.61
byteArrayEquals 16384 27.613 us/op 37.217 us/op 0.74
Buffer.compare 16384 225.55 ns/op 289.57 ns/op 0.78
byteArrayEquals 123687377 206.97 ms/op 269.44 ms/op 0.77
Buffer.compare 123687377 3.5874 ms/op 8.3763 ms/op 0.43
byteArrayEquals 32 - diff last byte 61.326 ns/op 77.513 ns/op 0.79
Buffer.compare 32 - diff last byte 39.124 ns/op 60.995 ns/op 0.64
byteArrayEquals 1024 - diff last byte 1.7283 us/op 2.1493 us/op 0.80
Buffer.compare 1024 - diff last byte 45.961 ns/op 74.296 ns/op 0.62
byteArrayEquals 16384 - diff last byte 24.918 us/op 33.576 us/op 0.74
Buffer.compare 16384 - diff last byte 207.78 ns/op 278.58 ns/op 0.75
byteArrayEquals 123687377 - diff last byte 192.20 ms/op 261.10 ms/op 0.74
Buffer.compare 123687377 - diff last byte 5.5531 ms/op 7.8111 ms/op 0.71
byteArrayEquals 32 - random bytes 4.5920 ns/op 5.5490 ns/op 0.83
Buffer.compare 32 - random bytes 39.863 ns/op 70.033 ns/op 0.57
byteArrayEquals 1024 - random bytes 4.5520 ns/op 5.7890 ns/op 0.79
Buffer.compare 1024 - random bytes 36.693 ns/op 63.902 ns/op 0.57
byteArrayEquals 16384 - random bytes 4.3540 ns/op 5.7400 ns/op 0.76
Buffer.compare 16384 - random bytes 37.066 ns/op 63.938 ns/op 0.58
byteArrayEquals 123687377 - random bytes 8.1600 ns/op 9.6200 ns/op 0.85
Buffer.compare 123687377 - random bytes 39.940 ns/op 74.010 ns/op 0.54
regular array get 100000 times 40.782 us/op 49.637 us/op 0.82
wrappedArray get 100000 times 43.872 us/op 50.982 us/op 0.86
arrayWithProxy get 100000 times 10.762 ms/op 16.404 ms/op 0.66
ssz.Root.equals 56.360 ns/op 62.031 ns/op 0.91
byteArrayEquals 55.346 ns/op 57.267 ns/op 0.97
Buffer.compare 9.5370 ns/op 12.651 ns/op 0.75
shuffle list - 16384 els 5.8816 ms/op 8.9699 ms/op 0.66
shuffle list - 250000 els 86.181 ms/op 133.06 ms/op 0.65
processSlot - 1 slots 18.140 us/op 16.678 us/op 1.09
processSlot - 32 slots 3.9041 ms/op 3.1542 ms/op 1.24
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 50.818 ms/op 62.660 ms/op 0.81
getCommitteeAssignments - req 1 vs - 250000 vc 2.4937 ms/op 2.7073 ms/op 0.92
getCommitteeAssignments - req 100 vs - 250000 vc 3.6063 ms/op 3.9165 ms/op 0.92
getCommitteeAssignments - req 1000 vs - 250000 vc 3.9256 ms/op 4.2026 ms/op 0.93
findModifiedValidators - 10000 modified validators 319.92 ms/op 417.15 ms/op 0.77
findModifiedValidators - 1000 modified validators 172.70 ms/op 235.66 ms/op 0.73
findModifiedValidators - 100 modified validators 169.60 ms/op 199.46 ms/op 0.85
findModifiedValidators - 10 modified validators 161.30 ms/op 205.08 ms/op 0.79
findModifiedValidators - 1 modified validators 166.85 ms/op 200.91 ms/op 0.83
findModifiedValidators - no difference 179.77 ms/op 224.08 ms/op 0.80
compare ViewDUs 4.9845 s/op 5.0112 s/op 0.99
compare each validator Uint8Array 1.4879 s/op 1.6131 s/op 0.92
compare ViewDU to Uint8Array 837.52 ms/op 1.5750 s/op 0.53
migrate state 1000000 validators, 24 modified, 0 new 654.85 ms/op 867.69 ms/op 0.75
migrate state 1000000 validators, 1700 modified, 1000 new 899.09 ms/op 1.1242 s/op 0.80
migrate state 1000000 validators, 3400 modified, 2000 new 1.1165 s/op 1.3942 s/op 0.80
migrate state 1500000 validators, 24 modified, 0 new 675.43 ms/op 912.38 ms/op 0.74
migrate state 1500000 validators, 1700 modified, 1000 new 797.63 ms/op 1.3541 s/op 0.59
migrate state 1500000 validators, 3400 modified, 2000 new 1.1168 s/op 1.4647 s/op 0.76
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.7200 ns/op 5.2500 ns/op 0.90
state getBlockRootAtSlot - 250000 vs - 7PWei 398.89 ns/op 744.36 ns/op 0.54
computeProposers - vc 250000 5.6935 ms/op 11.006 ms/op 0.52
computeEpochShuffling - vc 250000 82.808 ms/op 150.48 ms/op 0.55
getNextSyncCommittee - vc 250000 97.695 ms/op 165.32 ms/op 0.59
computeSigningRoot for AttestationData 16.601 us/op 23.829 us/op 0.70
hash AttestationData serialized data then Buffer.toString(base64) 1.2175 us/op 2.4996 us/op 0.49
toHexString serialized data 786.97 ns/op 1.1611 us/op 0.68
Buffer.toString(base64) 164.01 ns/op 220.67 ns/op 0.74

by benchmarkbot/action

@twoeths twoeths merged commit ef0641d into unstable Apr 8, 2024
18 of 20 checks passed
@twoeths twoeths deleted the nh/sim-file-rename branch April 8, 2024 03:50
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.18.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants