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

chore: use vs theme for docusaurus #6572

Merged
merged 1 commit into from
Mar 20, 2024
Merged

Conversation

jeluard
Copy link
Contributor

@jeluard jeluard commented Mar 20, 2024

Motivation

Use a more traditional code theme for docusaurus.

Capture d’écran 2024-03-20 à 15 39 24 Capture d’écran 2024-03-20 à 15 39 32

@jeluard jeluard requested a review from a team as a code owner March 20, 2024 14:40
Copy link

codecov bot commented Mar 20, 2024

Codecov Report

Merging #6572 (1e22d99) into unstable (f9676f1) will increase coverage by 0.02%.
Report is 4 commits behind head on unstable.
The diff coverage is n/a.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #6572      +/-   ##
============================================
+ Coverage     61.46%   61.48%   +0.02%     
============================================
  Files           556      556              
  Lines         58850    58891      +41     
  Branches       1850     1854       +4     
============================================
+ Hits          36171    36212      +41     
  Misses        22638    22638              
  Partials         41       41              

Copy link
Contributor

⚠️ 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: ddea1ac Previous: 31e04d6 Ratio
altair processAttestation - 250000 vs - 7PWei normalcase 5.2964 ms/op 1.6290 ms/op 3.25
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 60.023 us/op 18.678 us/op 3.21
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 30.707 us/op 8.5260 us/op 3.60

🚀🚀 Significant benchmark improvement detected

Benchmark suite Current: ddea1ac Previous: 31e04d6 Ratio
forkChoice updateHead vc 600000 bc 64 eq 300000 11.817 ms/op 59.214 ms/op 0.20
Full benchmark results
Benchmark suite Current: ddea1ac Previous: 31e04d6 Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 954.81 us/op 655.04 us/op 1.46
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 51.582 us/op 102.82 us/op 0.50
BLS verify - blst-native 1.1148 ms/op 1.1545 ms/op 0.97
BLS verifyMultipleSignatures 3 - blst-native 2.3823 ms/op 2.4589 ms/op 0.97
BLS verifyMultipleSignatures 8 - blst-native 5.2872 ms/op 5.6791 ms/op 0.93
BLS verifyMultipleSignatures 32 - blst-native 19.465 ms/op 20.347 ms/op 0.96
BLS verifyMultipleSignatures 64 - blst-native 38.688 ms/op 39.865 ms/op 0.97
BLS verifyMultipleSignatures 128 - blst-native 77.545 ms/op 81.306 ms/op 0.95
BLS deserializing 10000 signatures 808.90 ms/op 864.08 ms/op 0.94
BLS deserializing 100000 signatures 8.3613 s/op 8.3925 s/op 1.00
BLS verifyMultipleSignatures - same message - 3 - blst-native 1.2000 ms/op 1.1456 ms/op 1.05
BLS verifyMultipleSignatures - same message - 8 - blst-native 1.3090 ms/op 1.2907 ms/op 1.01
BLS verifyMultipleSignatures - same message - 32 - blst-native 2.0741 ms/op 2.0928 ms/op 0.99
BLS verifyMultipleSignatures - same message - 64 - blst-native 3.9769 ms/op 3.9769 ms/op 1.00
BLS verifyMultipleSignatures - same message - 128 - blst-native 6.8707 ms/op 5.1605 ms/op 1.33
BLS aggregatePubkeys 32 - blst-native 25.485 us/op 25.121 us/op 1.01
BLS aggregatePubkeys 128 - blst-native 90.757 us/op 90.089 us/op 1.01
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 50.985 ms/op 60.698 ms/op 0.84
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 51.074 ms/op 54.568 ms/op 0.94
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 29.112 ms/op 27.661 ms/op 1.05
getSlashingsAndExits - default max 142.49 us/op 149.28 us/op 0.95
getSlashingsAndExits - 2k 371.59 us/op 584.47 us/op 0.64
proposeBlockBody type=full, size=empty 4.6427 ms/op 4.6913 ms/op 0.99
isKnown best case - 1 super set check 316.00 ns/op 511.00 ns/op 0.62
isKnown normal case - 2 super set checks 327.00 ns/op 409.00 ns/op 0.80
isKnown worse case - 16 super set checks 328.00 ns/op 441.00 ns/op 0.74
CheckpointStateCache - add get delete 4.7410 us/op 7.8840 us/op 0.60
validate api signedAggregateAndProof - struct 2.4530 ms/op 2.4009 ms/op 1.02
validate gossip signedAggregateAndProof - struct 2.4743 ms/op 2.4144 ms/op 1.02
validate gossip attestation - vc 640000 1.1837 ms/op 1.1691 ms/op 1.01
batch validate gossip attestation - vc 640000 - chunk 32 141.70 us/op 146.53 us/op 0.97
batch validate gossip attestation - vc 640000 - chunk 64 121.43 us/op 125.74 us/op 0.97
batch validate gossip attestation - vc 640000 - chunk 128 117.22 us/op 114.99 us/op 1.02
batch validate gossip attestation - vc 640000 - chunk 256 109.98 us/op 109.27 us/op 1.01
pickEth1Vote - no votes 918.54 us/op 878.65 us/op 1.05
pickEth1Vote - max votes 7.4862 ms/op 7.7163 ms/op 0.97
pickEth1Vote - Eth1Data hashTreeRoot value x2048 20.675 ms/op 14.278 ms/op 1.45
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 29.037 ms/op 16.881 ms/op 1.72
pickEth1Vote - Eth1Data fastSerialize value x2048 486.49 us/op 464.21 us/op 1.05
pickEth1Vote - Eth1Data fastSerialize tree x2048 5.2948 ms/op 3.7505 ms/op 1.41
bytes32 toHexString 510.00 ns/op 489.00 ns/op 1.04
bytes32 Buffer.toString(hex) 348.00 ns/op 331.00 ns/op 1.05
bytes32 Buffer.toString(hex) from Uint8Array 496.00 ns/op 445.00 ns/op 1.11
bytes32 Buffer.toString(hex) + 0x 360.00 ns/op 321.00 ns/op 1.12
Object access 1 prop 0.24200 ns/op 0.20200 ns/op 1.20
Map access 1 prop 0.21000 ns/op 0.19200 ns/op 1.09
Object get x1000 5.1410 ns/op 5.1410 ns/op 1.00
Map get x1000 0.78200 ns/op 0.76400 ns/op 1.02
Object set x1000 33.543 ns/op 26.503 ns/op 1.27
Map set x1000 19.933 ns/op 17.438 ns/op 1.14
Return object 10000 times 0.23780 ns/op 0.21560 ns/op 1.10
Throw Error 10000 times 2.8640 us/op 2.5992 us/op 1.10
fastMsgIdFn sha256 / 200 bytes 2.1610 us/op 1.9850 us/op 1.09
fastMsgIdFn h32 xxhash / 200 bytes 385.00 ns/op 305.00 ns/op 1.26
fastMsgIdFn h64 xxhash / 200 bytes 397.00 ns/op 345.00 ns/op 1.15
fastMsgIdFn sha256 / 1000 bytes 6.0800 us/op 6.0890 us/op 1.00
fastMsgIdFn h32 xxhash / 1000 bytes 486.00 ns/op 412.00 ns/op 1.18
fastMsgIdFn h64 xxhash / 1000 bytes 480.00 ns/op 411.00 ns/op 1.17
fastMsgIdFn sha256 / 10000 bytes 51.082 us/op 50.849 us/op 1.00
fastMsgIdFn h32 xxhash / 10000 bytes 1.8430 us/op 1.7650 us/op 1.04
fastMsgIdFn h64 xxhash / 10000 bytes 1.2800 us/op 1.2020 us/op 1.06
send data - 1000 256B messages 13.702 ms/op 13.018 ms/op 1.05
send data - 1000 512B messages 16.758 ms/op 15.660 ms/op 1.07
send data - 1000 1024B messages 21.624 ms/op 30.675 ms/op 0.70
send data - 1000 1200B messages 31.627 ms/op 30.418 ms/op 1.04
send data - 1000 2048B messages 39.044 ms/op 36.566 ms/op 1.07
send data - 1000 4096B messages 39.409 ms/op 32.311 ms/op 1.22
send data - 1000 16384B messages 109.69 ms/op 92.805 ms/op 1.18
send data - 1000 65536B messages 421.45 ms/op 411.90 ms/op 1.02
enrSubnets - fastDeserialize 64 bits 1.0950 us/op 1.0060 us/op 1.09
enrSubnets - ssz BitVector 64 bits 545.00 ns/op 422.00 ns/op 1.29
enrSubnets - fastDeserialize 4 bits 254.00 ns/op 206.00 ns/op 1.23
enrSubnets - ssz BitVector 4 bits 537.00 ns/op 425.00 ns/op 1.26
prioritizePeers score -10:0 att 32-0.1 sync 2-0 77.955 us/op 78.089 us/op 1.00
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 97.253 us/op 89.797 us/op 1.08
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 155.30 us/op 113.62 us/op 1.37
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 227.22 us/op 206.80 us/op 1.10
prioritizePeers score 0:0 att 64-1 sync 4-1 244.47 us/op 231.94 us/op 1.05
array of 16000 items push then shift 1.2777 us/op 1.4422 us/op 0.89
LinkedList of 16000 items push then shift 7.4560 ns/op 6.5220 ns/op 1.14
array of 16000 items push then pop 108.32 ns/op 89.738 ns/op 1.21
LinkedList of 16000 items push then pop 6.9640 ns/op 5.9260 ns/op 1.18
array of 24000 items push then shift 1.9035 us/op 2.1031 us/op 0.91
LinkedList of 24000 items push then shift 7.0700 ns/op 7.3230 ns/op 0.97
array of 24000 items push then pop 93.131 ns/op 124.27 ns/op 0.75
LinkedList of 24000 items push then pop 5.6880 ns/op 5.8430 ns/op 0.97
intersect bitArray bitLen 8 4.7830 ns/op 4.8580 ns/op 0.98
intersect array and set length 8 48.580 ns/op 61.358 ns/op 0.79
intersect bitArray bitLen 128 29.399 ns/op 28.968 ns/op 1.01
intersect array and set length 128 688.59 ns/op 773.14 ns/op 0.89
bitArray.getTrueBitIndexes() bitLen 128 1.3110 us/op 1.4550 us/op 0.90
bitArray.getTrueBitIndexes() bitLen 248 2.1720 us/op 2.6550 us/op 0.82
bitArray.getTrueBitIndexes() bitLen 512 4.1730 us/op 4.9810 us/op 0.84
Buffer.concat 32 items 895.00 ns/op 1.0850 us/op 0.82
Uint8Array.set 32 items 1.7050 us/op 2.3040 us/op 0.74
Set add up to 64 items then delete first 1.7467 us/op 1.9567 us/op 0.89
OrderedSet add up to 64 items then delete first 2.6820 us/op 4.7050 us/op 0.57
Set add up to 64 items then delete last 1.9968 us/op 3.1813 us/op 0.63
OrderedSet add up to 64 items then delete last 2.9563 us/op 4.5609 us/op 0.65
Set add up to 64 items then delete middle 1.9817 us/op 2.4026 us/op 0.82
OrderedSet add up to 64 items then delete middle 4.2096 us/op 4.6042 us/op 0.91
Set add up to 128 items then delete first 3.9413 us/op 6.2744 us/op 0.63
OrderedSet add up to 128 items then delete first 6.1860 us/op 10.392 us/op 0.60
Set add up to 128 items then delete last 3.8011 us/op 4.8421 us/op 0.79
OrderedSet add up to 128 items then delete last 5.7275 us/op 6.1513 us/op 0.93
Set add up to 128 items then delete middle 3.7809 us/op 3.9473 us/op 0.96
OrderedSet add up to 128 items then delete middle 10.644 us/op 11.254 us/op 0.95
Set add up to 256 items then delete first 7.7630 us/op 9.7965 us/op 0.79
OrderedSet add up to 256 items then delete first 12.301 us/op 14.483 us/op 0.85
Set add up to 256 items then delete last 7.4332 us/op 8.4578 us/op 0.88
OrderedSet add up to 256 items then delete last 11.411 us/op 16.892 us/op 0.68
Set add up to 256 items then delete middle 7.5938 us/op 9.5291 us/op 0.80
OrderedSet add up to 256 items then delete middle 33.863 us/op 32.803 us/op 1.03
transfer serialized Status (84 B) 1.5180 us/op 1.3820 us/op 1.10
copy serialized Status (84 B) 1.2640 us/op 1.0720 us/op 1.18
transfer serialized SignedVoluntaryExit (112 B) 1.4640 us/op 1.4280 us/op 1.03
copy serialized SignedVoluntaryExit (112 B) 1.3070 us/op 1.1120 us/op 1.18
transfer serialized ProposerSlashing (416 B) 2.2580 us/op 1.5160 us/op 1.49
copy serialized ProposerSlashing (416 B) 2.6770 us/op 1.3330 us/op 2.01
transfer serialized Attestation (485 B) 2.0140 us/op 2.0140 us/op 1.00
copy serialized Attestation (485 B) 2.1750 us/op 2.6340 us/op 0.83
transfer serialized AttesterSlashing (33232 B) 2.3730 us/op 3.2670 us/op 0.73
copy serialized AttesterSlashing (33232 B) 7.1540 us/op 8.3160 us/op 0.86
transfer serialized Small SignedBeaconBlock (128000 B) 2.1860 us/op 2.3850 us/op 0.92
copy serialized Small SignedBeaconBlock (128000 B) 17.006 us/op 24.005 us/op 0.71
transfer serialized Avg SignedBeaconBlock (200000 B) 2.5930 us/op 2.7140 us/op 0.96
copy serialized Avg SignedBeaconBlock (200000 B) 23.048 us/op 60.715 us/op 0.38
transfer serialized BlobsSidecar (524380 B) 2.3570 us/op 4.5200 us/op 0.52
copy serialized BlobsSidecar (524380 B) 110.73 us/op 177.35 us/op 0.62
transfer serialized Big SignedBeaconBlock (1000000 B) 2.8580 us/op 7.7410 us/op 0.37
copy serialized Big SignedBeaconBlock (1000000 B) 213.52 us/op 347.14 us/op 0.62
pass gossip attestations to forkchoice per slot 2.7722 ms/op 4.0630 ms/op 0.68
forkChoice updateHead vc 100000 bc 64 eq 0 427.99 us/op 568.24 us/op 0.75
forkChoice updateHead vc 600000 bc 64 eq 0 2.5850 ms/op 4.8032 ms/op 0.54
forkChoice updateHead vc 1000000 bc 64 eq 0 4.2810 ms/op 9.5338 ms/op 0.45
forkChoice updateHead vc 600000 bc 320 eq 0 2.5808 ms/op 3.7481 ms/op 0.69
forkChoice updateHead vc 600000 bc 1200 eq 0 2.7009 ms/op 3.5696 ms/op 0.76
forkChoice updateHead vc 600000 bc 7200 eq 0 3.2053 ms/op 6.6443 ms/op 0.48
forkChoice updateHead vc 600000 bc 64 eq 1000 9.8765 ms/op 12.768 ms/op 0.77
forkChoice updateHead vc 600000 bc 64 eq 10000 9.6374 ms/op 11.591 ms/op 0.83
forkChoice updateHead vc 600000 bc 64 eq 300000 11.817 ms/op 59.214 ms/op 0.20
computeDeltas 500000 validators 300 proto nodes 3.2161 ms/op 4.0055 ms/op 0.80
computeDeltas 500000 validators 1200 proto nodes 3.0473 ms/op 3.2809 ms/op 0.93
computeDeltas 500000 validators 7200 proto nodes 3.0673 ms/op 3.1498 ms/op 0.97
computeDeltas 750000 validators 300 proto nodes 4.7897 ms/op 4.7212 ms/op 1.01
computeDeltas 750000 validators 1200 proto nodes 4.9125 ms/op 4.5432 ms/op 1.08
computeDeltas 750000 validators 7200 proto nodes 4.7238 ms/op 4.5487 ms/op 1.04
computeDeltas 1400000 validators 300 proto nodes 10.902 ms/op 8.9446 ms/op 1.22
computeDeltas 1400000 validators 1200 proto nodes 10.535 ms/op 9.0650 ms/op 1.16
computeDeltas 1400000 validators 7200 proto nodes 9.7640 ms/op 8.8131 ms/op 1.11
computeDeltas 2100000 validators 300 proto nodes 14.001 ms/op 12.932 ms/op 1.08
computeDeltas 2100000 validators 1200 proto nodes 14.336 ms/op 13.814 ms/op 1.04
computeDeltas 2100000 validators 7200 proto nodes 16.536 ms/op 13.518 ms/op 1.22
altair processAttestation - 250000 vs - 7PWei normalcase 5.2964 ms/op 1.6290 ms/op 3.25
altair processAttestation - 250000 vs - 7PWei worstcase 3.5799 ms/op 2.4398 ms/op 1.47
altair processAttestation - setStatus - 1/6 committees join 165.88 us/op 97.963 us/op 1.69
altair processAttestation - setStatus - 1/3 committees join 331.22 us/op 192.30 us/op 1.72
altair processAttestation - setStatus - 1/2 committees join 444.46 us/op 274.68 us/op 1.62
altair processAttestation - setStatus - 2/3 committees join 468.20 us/op 364.14 us/op 1.29
altair processAttestation - setStatus - 4/5 committees join 549.01 us/op 499.44 us/op 1.10
altair processAttestation - setStatus - 100% committees join 701.52 us/op 597.82 us/op 1.17
altair processBlock - 250000 vs - 7PWei normalcase 11.973 ms/op 8.3672 ms/op 1.43
altair processBlock - 250000 vs - 7PWei normalcase hashState 38.000 ms/op 32.126 ms/op 1.18
altair processBlock - 250000 vs - 7PWei worstcase 50.256 ms/op 31.224 ms/op 1.61
altair processBlock - 250000 vs - 7PWei worstcase hashState 114.93 ms/op 81.230 ms/op 1.41
phase0 processBlock - 250000 vs - 7PWei normalcase 3.1355 ms/op 2.0255 ms/op 1.55
phase0 processBlock - 250000 vs - 7PWei worstcase 38.160 ms/op 23.915 ms/op 1.60
altair processEth1Data - 250000 vs - 7PWei normalcase 449.87 us/op 306.63 us/op 1.47
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 17.534 us/op 9.3140 us/op 1.88
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 60.023 us/op 18.678 us/op 3.21
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 30.707 us/op 8.5260 us/op 3.60
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 14.740 us/op 12.769 us/op 1.15
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 196.62 us/op 164.49 us/op 1.20
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 858.18 us/op 1.2354 ms/op 0.69
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.7382 ms/op 968.26 us/op 1.80
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.6365 ms/op 1.0200 ms/op 1.60
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.4342 ms/op 2.0884 ms/op 1.64
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.8485 ms/op 1.5349 ms/op 1.20
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.6470 ms/op 3.9060 ms/op 1.19
Tree 40 250000 create 441.52 ms/op 260.53 ms/op 1.69
Tree 40 250000 get(125000) 125.63 ns/op 117.25 ns/op 1.07
Tree 40 250000 set(125000) 950.89 ns/op 765.33 ns/op 1.24
Tree 40 250000 toArray() 22.462 ms/op 12.031 ms/op 1.87
Tree 40 250000 iterate all - toArray() + loop 22.443 ms/op 10.111 ms/op 2.22
Tree 40 250000 iterate all - get(i) 57.168 ms/op 41.320 ms/op 1.38
MutableVector 250000 create 15.212 ms/op 12.859 ms/op 1.18
MutableVector 250000 get(125000) 5.9010 ns/op 5.6440 ns/op 1.05
MutableVector 250000 set(125000) 468.10 ns/op 201.06 ns/op 2.33
MutableVector 250000 toArray() 3.1934 ms/op 2.0603 ms/op 1.55
MutableVector 250000 iterate all - toArray() + loop 3.1611 ms/op 2.2351 ms/op 1.41
MutableVector 250000 iterate all - get(i) 1.3659 ms/op 1.3810 ms/op 0.99
Array 250000 create 2.8116 ms/op 2.3054 ms/op 1.22
Array 250000 clone - spread 1.2065 ms/op 1.0476 ms/op 1.15
Array 250000 get(125000) 1.0930 ns/op 1.0230 ns/op 1.07
Array 250000 set(125000) 1.2880 ns/op 1.2140 ns/op 1.06
Array 250000 iterate all - loop 157.63 us/op 149.96 us/op 1.05
effectiveBalanceIncrements clone Uint8Array 300000 17.714 us/op 20.457 us/op 0.87
effectiveBalanceIncrements clone MutableVector 300000 468.00 ns/op 400.00 ns/op 1.17
effectiveBalanceIncrements rw all Uint8Array 300000 189.13 us/op 181.81 us/op 1.04
effectiveBalanceIncrements rw all MutableVector 300000 70.159 ms/op 66.588 ms/op 1.05
phase0 afterProcessEpoch - 250000 vs - 7PWei 79.149 ms/op 74.149 ms/op 1.07
phase0 beforeProcessEpoch - 250000 vs - 7PWei 54.298 ms/op 44.427 ms/op 1.22
altair processEpoch - mainnet_e81889 520.48 ms/op 410.23 ms/op 1.27
mainnet_e81889 - altair beforeProcessEpoch 94.485 ms/op 64.155 ms/op 1.47
mainnet_e81889 - altair processJustificationAndFinalization 17.270 us/op 11.287 us/op 1.53
mainnet_e81889 - altair processInactivityUpdates 5.7504 ms/op 5.3321 ms/op 1.08
mainnet_e81889 - altair processRewardsAndPenalties 70.552 ms/op 74.234 ms/op 0.95
mainnet_e81889 - altair processRegistryUpdates 4.3910 us/op 1.8510 us/op 2.37
mainnet_e81889 - altair processSlashings 1.1850 us/op 507.00 ns/op 2.34
mainnet_e81889 - altair processEth1DataReset 1.2230 us/op 599.00 ns/op 2.04
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.1143 ms/op 1.6906 ms/op 0.66
mainnet_e81889 - altair processSlashingsReset 4.9920 us/op 3.5000 us/op 1.43
mainnet_e81889 - altair processRandaoMixesReset 7.3840 us/op 3.1310 us/op 2.36
mainnet_e81889 - altair processHistoricalRootsUpdate 1.1960 us/op 943.00 ns/op 1.27
mainnet_e81889 - altair processParticipationFlagUpdates 4.5860 us/op 3.2140 us/op 1.43
mainnet_e81889 - altair processSyncCommitteeUpdates 1.2780 us/op 680.00 ns/op 1.88
mainnet_e81889 - altair afterProcessEpoch 84.624 ms/op 78.255 ms/op 1.08
capella processEpoch - mainnet_e217614 2.2061 s/op 1.6375 s/op 1.35
mainnet_e217614 - capella beforeProcessEpoch 461.70 ms/op 413.98 ms/op 1.12
mainnet_e217614 - capella processJustificationAndFinalization 18.549 us/op 9.1030 us/op 2.04
mainnet_e217614 - capella processInactivityUpdates 17.771 ms/op 15.245 ms/op 1.17
mainnet_e217614 - capella processRewardsAndPenalties 545.92 ms/op 444.87 ms/op 1.23
mainnet_e217614 - capella processRegistryUpdates 29.625 us/op 19.887 us/op 1.49
mainnet_e217614 - capella processSlashings 1.0130 us/op 590.00 ns/op 1.72
mainnet_e217614 - capella processEth1DataReset 952.00 ns/op 611.00 ns/op 1.56
mainnet_e217614 - capella processEffectiveBalanceUpdates 3.4265 ms/op 3.5907 ms/op 0.95
mainnet_e217614 - capella processSlashingsReset 3.9740 us/op 2.4000 us/op 1.66
mainnet_e217614 - capella processRandaoMixesReset 4.9900 us/op 5.5910 us/op 0.89
mainnet_e217614 - capella processHistoricalRootsUpdate 1.0760 us/op 749.00 ns/op 1.44
mainnet_e217614 - capella processParticipationFlagUpdates 2.7960 us/op 1.2300 us/op 2.27
mainnet_e217614 - capella afterProcessEpoch 217.54 ms/op 207.94 ms/op 1.05
phase0 processEpoch - mainnet_e58758 381.54 ms/op 343.23 ms/op 1.11
mainnet_e58758 - phase0 beforeProcessEpoch 120.92 ms/op 119.78 ms/op 1.01
mainnet_e58758 - phase0 processJustificationAndFinalization 22.525 us/op 11.762 us/op 1.92
mainnet_e58758 - phase0 processRewardsAndPenalties 57.535 ms/op 58.581 ms/op 0.98
mainnet_e58758 - phase0 processRegistryUpdates 18.084 us/op 7.6900 us/op 2.35
mainnet_e58758 - phase0 processSlashings 942.00 ns/op 577.00 ns/op 1.63
mainnet_e58758 - phase0 processEth1DataReset 798.00 ns/op 554.00 ns/op 1.44
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 861.52 us/op 1.3599 ms/op 0.63
mainnet_e58758 - phase0 processSlashingsReset 4.7160 us/op 2.1020 us/op 2.24
mainnet_e58758 - phase0 processRandaoMixesReset 6.5920 us/op 2.4540 us/op 2.69
mainnet_e58758 - phase0 processHistoricalRootsUpdate 1.0590 us/op 497.00 ns/op 2.13
mainnet_e58758 - phase0 processParticipationRecordUpdates 6.5630 us/op 2.6370 us/op 2.49
mainnet_e58758 - phase0 afterProcessEpoch 71.521 ms/op 67.215 ms/op 1.06
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.0452 ms/op 1.0095 ms/op 1.04
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.1392 ms/op 1.1282 ms/op 1.01
altair processInactivityUpdates - 250000 normalcase 24.168 ms/op 20.671 ms/op 1.17
altair processInactivityUpdates - 250000 worstcase 24.438 ms/op 21.783 ms/op 1.12
phase0 processRegistryUpdates - 250000 normalcase 9.5310 us/op 6.4220 us/op 1.48
phase0 processRegistryUpdates - 250000 badcase_full_deposits 399.96 us/op 432.78 us/op 0.92
phase0 processRegistryUpdates - 250000 worstcase 0.5 103.33 ms/op 118.35 ms/op 0.87
altair processRewardsAndPenalties - 250000 normalcase 56.674 ms/op 69.343 ms/op 0.82
altair processRewardsAndPenalties - 250000 worstcase 64.824 ms/op 70.257 ms/op 0.92
phase0 getAttestationDeltas - 250000 normalcase 6.0347 ms/op 6.4004 ms/op 0.94
phase0 getAttestationDeltas - 250000 worstcase 5.9896 ms/op 6.7724 ms/op 0.88
phase0 processSlashings - 250000 worstcase 94.017 us/op 89.880 us/op 1.05
altair processSyncCommitteeUpdates - 250000 98.952 ms/op 116.39 ms/op 0.85
BeaconState.hashTreeRoot - No change 368.00 ns/op 628.00 ns/op 0.59
BeaconState.hashTreeRoot - 1 full validator 98.731 us/op 123.61 us/op 0.80
BeaconState.hashTreeRoot - 32 full validator 1.0114 ms/op 1.3237 ms/op 0.76
BeaconState.hashTreeRoot - 512 full validator 11.842 ms/op 14.777 ms/op 0.80
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 117.57 us/op 131.64 us/op 0.89
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.4809 ms/op 1.4432 ms/op 1.03
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 22.828 ms/op 18.334 ms/op 1.25
BeaconState.hashTreeRoot - 1 balances 98.488 us/op 83.747 us/op 1.18
BeaconState.hashTreeRoot - 32 balances 1.1573 ms/op 748.06 us/op 1.55
BeaconState.hashTreeRoot - 512 balances 14.347 ms/op 7.0207 ms/op 2.04
BeaconState.hashTreeRoot - 250000 balances 171.97 ms/op 147.56 ms/op 1.17
aggregationBits - 2048 els - zipIndexesInBitList 25.803 us/op 20.057 us/op 1.29
byteArrayEquals 32 62.333 ns/op 64.915 ns/op 0.96
Buffer.compare 32 35.911 ns/op 38.359 ns/op 0.94
byteArrayEquals 1024 1.6694 us/op 1.6665 us/op 1.00
Buffer.compare 1024 45.085 ns/op 42.537 ns/op 1.06
byteArrayEquals 16384 26.286 us/op 27.096 us/op 0.97
Buffer.compare 16384 217.85 ns/op 190.32 ns/op 1.14
byteArrayEquals 123687377 215.12 ms/op 211.32 ms/op 1.02
Buffer.compare 123687377 4.3090 ms/op 4.2127 ms/op 1.02
byteArrayEquals 32 - diff last byte 64.121 ns/op 62.585 ns/op 1.02
Buffer.compare 32 - diff last byte 39.576 ns/op 38.198 ns/op 1.04
byteArrayEquals 1024 - diff last byte 1.7770 us/op 1.6123 us/op 1.10
Buffer.compare 1024 - diff last byte 46.451 ns/op 43.034 ns/op 1.08
byteArrayEquals 16384 - diff last byte 27.695 us/op 25.872 us/op 1.07
Buffer.compare 16384 - diff last byte 227.29 ns/op 229.72 ns/op 0.99
byteArrayEquals 123687377 - diff last byte 207.42 ms/op 210.15 ms/op 0.99
Buffer.compare 123687377 - diff last byte 4.7110 ms/op 4.1371 ms/op 1.14
byteArrayEquals 32 - random bytes 4.6050 ns/op 4.6120 ns/op 1.00
Buffer.compare 32 - random bytes 40.391 ns/op 40.007 ns/op 1.01
byteArrayEquals 1024 - random bytes 4.5360 ns/op 4.4760 ns/op 1.01
Buffer.compare 1024 - random bytes 38.046 ns/op 38.197 ns/op 1.00
byteArrayEquals 16384 - random bytes 4.4880 ns/op 4.4790 ns/op 1.00
Buffer.compare 16384 - random bytes 38.189 ns/op 38.381 ns/op 0.99
byteArrayEquals 123687377 - random bytes 8.2500 ns/op 7.9200 ns/op 1.04
Buffer.compare 123687377 - random bytes 43.470 ns/op 41.690 ns/op 1.04
regular array get 100000 times 41.873 us/op 41.857 us/op 1.00
wrappedArray get 100000 times 41.733 us/op 42.140 us/op 0.99
arrayWithProxy get 100000 times 10.503 ms/op 10.386 ms/op 1.01
ssz.Root.equals 55.942 ns/op 56.014 ns/op 1.00
byteArrayEquals 55.272 ns/op 55.338 ns/op 1.00
Buffer.compare 9.5330 ns/op 9.9430 ns/op 0.96
shuffle list - 16384 els 5.8855 ms/op 5.8929 ms/op 1.00
shuffle list - 250000 els 86.516 ms/op 87.269 ms/op 0.99
processSlot - 1 slots 14.197 us/op 13.467 us/op 1.05
processSlot - 32 slots 2.3584 ms/op 3.4089 ms/op 0.69
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 45.546 ms/op 55.362 ms/op 0.82
getCommitteeAssignments - req 1 vs - 250000 vc 2.3831 ms/op 2.4290 ms/op 0.98
getCommitteeAssignments - req 100 vs - 250000 vc 3.5333 ms/op 3.5513 ms/op 0.99
getCommitteeAssignments - req 1000 vs - 250000 vc 3.8540 ms/op 3.8182 ms/op 1.01
findModifiedValidators - 10000 modified validators 432.50 ms/op 421.22 ms/op 1.03
findModifiedValidators - 1000 modified validators 341.97 ms/op 352.11 ms/op 0.97
findModifiedValidators - 100 modified validators 315.66 ms/op 310.96 ms/op 1.02
findModifiedValidators - 10 modified validators 338.33 ms/op 320.55 ms/op 1.06
findModifiedValidators - 1 modified validators 308.12 ms/op 317.55 ms/op 0.97
findModifiedValidators - no difference 325.66 ms/op 306.28 ms/op 1.06
compare ViewDUs 4.4423 s/op 3.9640 s/op 1.12
compare each validator Uint8Array 1.6399 s/op 1.7532 s/op 0.94
compare ViewDU to Uint8Array 1.3343 s/op 1.1657 s/op 1.14
migrate state 1000000 validators, 24 modified, 0 new 672.74 ms/op 780.62 ms/op 0.86
migrate state 1000000 validators, 1700 modified, 1000 new 998.77 ms/op 1.0638 s/op 0.94
migrate state 1000000 validators, 3400 modified, 2000 new 1.2611 s/op 1.2005 s/op 1.05
migrate state 1500000 validators, 24 modified, 0 new 794.63 ms/op 678.28 ms/op 1.17
migrate state 1500000 validators, 1700 modified, 1000 new 1.0266 s/op 1.0772 s/op 0.95
migrate state 1500000 validators, 3400 modified, 2000 new 1.2116 s/op 1.4564 s/op 0.83
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 5.5200 ns/op 6.1100 ns/op 0.90
state getBlockRootAtSlot - 250000 vs - 7PWei 667.08 ns/op 1.5321 us/op 0.44
computeProposers - vc 250000 6.3845 ms/op 8.9609 ms/op 0.71
computeEpochShuffling - vc 250000 91.231 ms/op 91.373 ms/op 1.00
getNextSyncCommittee - vc 250000 113.35 ms/op 181.34 ms/op 0.63
computeSigningRoot for AttestationData 24.631 us/op 28.112 us/op 0.88
hash AttestationData serialized data then Buffer.toString(base64) 1.3168 us/op 1.5094 us/op 0.87
toHexString serialized data 860.81 ns/op 1.0534 us/op 0.82
Buffer.toString(base64) 160.50 ns/op 175.14 ns/op 0.92

by benchmarkbot/action

@jeluard jeluard merged commit da69a7b into unstable Mar 20, 2024
18 of 20 checks passed
@jeluard jeluard deleted the jeluard/docusaurus-theme branch March 20, 2024 20:53
@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.

3 participants