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: fix import head late (> 4 sec) rate panel #7323

Merged
merged 2 commits into from
Dec 23, 2024

Conversation

nflaig
Copy link
Member

@nflaig nflaig commented Dec 20, 2024

Motivation

Panel does not show any data right now, need to update the bucket

image

Description

le needs to match 4.0 instead of 4 for some reason

image

@nflaig nflaig requested a review from a team as a code owner December 20, 2024 10:54
@@ -1570,7 +1598,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "rate(lodestar_gossip_block_elapsed_time_till_processed_count[$rate_interval])\n- on(instance)\nrate(lodestar_gossip_block_elapsed_time_till_processed_bucket{le=\"4\"}[$rate_interval])",
"expr": "rate(lodestar_gossip_block_elapsed_time_till_processed_count[$rate_interval])\n- on(instance)\nrate(lodestar_gossip_block_elapsed_time_till_processed_bucket{le=\"4.0\"}[$rate_interval])",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the actual change, other changes are due to new schema version

Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.75%. Comparing base (d0340bd) to head (30a2962).
Report is 1 commits behind head on unstable.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #7323   +/-   ##
=========================================
  Coverage     48.75%   48.75%           
=========================================
  Files           601      601           
  Lines         40222    40222           
  Branches       2061     2061           
=========================================
  Hits          19609    19609           
  Misses        20575    20575           
  Partials         38       38           

Copy link
Contributor

github-actions bot commented Dec 20, 2024

Performance Report

✔️ no performance regression detected

Full benchmark results
Benchmark suite Current: cef9913 Previous: d0340bd Ratio
getPubkeys - index2pubkey - req 1000 vs - 250000 vc 1.2418 ms/op 1.8100 ms/op 0.69
getPubkeys - validatorsArr - req 1000 vs - 250000 vc 59.188 us/op 60.632 us/op 0.98
BLS verify - blst 827.43 us/op 961.40 us/op 0.86
BLS verifyMultipleSignatures 3 - blst 1.2563 ms/op 1.3506 ms/op 0.93
BLS verifyMultipleSignatures 8 - blst 1.6297 ms/op 1.9519 ms/op 0.83
BLS verifyMultipleSignatures 32 - blst 4.8727 ms/op 5.7342 ms/op 0.85
BLS verifyMultipleSignatures 64 - blst 8.9464 ms/op 10.823 ms/op 0.83
BLS verifyMultipleSignatures 128 - blst 17.266 ms/op 17.466 ms/op 0.99
BLS deserializing 10000 signatures 682.15 ms/op 694.26 ms/op 0.98
BLS deserializing 100000 signatures 6.8193 s/op 7.0072 s/op 0.97
BLS verifyMultipleSignatures - same message - 3 - blst 864.72 us/op 1.2176 ms/op 0.71
BLS verifyMultipleSignatures - same message - 8 - blst 1.0084 ms/op 1.1431 ms/op 0.88
BLS verifyMultipleSignatures - same message - 32 - blst 1.6623 ms/op 1.7248 ms/op 0.96
BLS verifyMultipleSignatures - same message - 64 - blst 2.5355 ms/op 2.6073 ms/op 0.97
BLS verifyMultipleSignatures - same message - 128 - blst 4.3242 ms/op 4.5509 ms/op 0.95
BLS aggregatePubkeys 32 - blst 19.492 us/op 20.955 us/op 0.93
BLS aggregatePubkeys 128 - blst 69.929 us/op 76.282 us/op 0.92
notSeenSlots=1 numMissedVotes=1 numBadVotes=10 57.566 ms/op 107.03 ms/op 0.54
notSeenSlots=1 numMissedVotes=0 numBadVotes=4 53.574 ms/op 63.043 ms/op 0.85
notSeenSlots=2 numMissedVotes=1 numBadVotes=10 43.193 ms/op 49.819 ms/op 0.87
getSlashingsAndExits - default max 165.27 us/op 157.40 us/op 1.05
getSlashingsAndExits - 2k 618.42 us/op 544.67 us/op 1.14
proposeBlockBody type=full, size=empty 6.6499 ms/op 6.4915 ms/op 1.02
isKnown best case - 1 super set check 294.00 ns/op 316.00 ns/op 0.93
isKnown normal case - 2 super set checks 298.00 ns/op 300.00 ns/op 0.99
isKnown worse case - 16 super set checks 286.00 ns/op 284.00 ns/op 1.01
InMemoryCheckpointStateCache - add get delete 3.1630 us/op 3.0620 us/op 1.03
validate api signedAggregateAndProof - struct 1.3340 ms/op 1.4794 ms/op 0.90
validate gossip signedAggregateAndProof - struct 1.3867 ms/op 1.5452 ms/op 0.90
batch validate gossip attestation - vc 640000 - chunk 32 119.64 us/op 138.53 us/op 0.86
batch validate gossip attestation - vc 640000 - chunk 64 106.92 us/op 121.81 us/op 0.88
batch validate gossip attestation - vc 640000 - chunk 128 100.65 us/op 110.76 us/op 0.91
batch validate gossip attestation - vc 640000 - chunk 256 97.908 us/op 109.00 us/op 0.90
pickEth1Vote - no votes 1.1188 ms/op 1.0864 ms/op 1.03
pickEth1Vote - max votes 6.1052 ms/op 6.4546 ms/op 0.95
pickEth1Vote - Eth1Data hashTreeRoot value x2048 17.366 ms/op 12.612 ms/op 1.38
pickEth1Vote - Eth1Data hashTreeRoot tree x2048 18.468 ms/op 23.062 ms/op 0.80
pickEth1Vote - Eth1Data fastSerialize value x2048 485.55 us/op 460.01 us/op 1.06
pickEth1Vote - Eth1Data fastSerialize tree x2048 2.6974 ms/op 2.6799 ms/op 1.01
bytes32 toHexString 432.00 ns/op 425.00 ns/op 1.02
bytes32 Buffer.toString(hex) 224.00 ns/op 230.00 ns/op 0.97
bytes32 Buffer.toString(hex) from Uint8Array 345.00 ns/op 368.00 ns/op 0.94
bytes32 Buffer.toString(hex) + 0x 227.00 ns/op 227.00 ns/op 1.00
Object access 1 prop 0.14800 ns/op 0.13600 ns/op 1.09
Map access 1 prop 0.12500 ns/op 0.14100 ns/op 0.89
Object get x1000 5.7280 ns/op 5.7540 ns/op 1.00
Map get x1000 6.5700 ns/op 6.4110 ns/op 1.02
Object set x1000 35.718 ns/op 33.607 ns/op 1.06
Map set x1000 22.369 ns/op 24.405 ns/op 0.92
Return object 10000 times 0.29020 ns/op 0.29520 ns/op 0.98
Throw Error 10000 times 3.3036 us/op 3.3630 us/op 0.98
toHex 133.16 ns/op 155.60 ns/op 0.86
Buffer.from 133.55 ns/op 129.35 ns/op 1.03
shared Buffer 82.740 ns/op 80.574 ns/op 1.03
fastMsgIdFn sha256 / 200 bytes 2.2190 us/op 2.2480 us/op 0.99
fastMsgIdFn h32 xxhash / 200 bytes 233.00 ns/op 263.00 ns/op 0.89
fastMsgIdFn h64 xxhash / 200 bytes 267.00 ns/op 293.00 ns/op 0.91
fastMsgIdFn sha256 / 1000 bytes 7.4630 us/op 7.5160 us/op 0.99
fastMsgIdFn h32 xxhash / 1000 bytes 405.00 ns/op 406.00 ns/op 1.00
fastMsgIdFn h64 xxhash / 1000 bytes 343.00 ns/op 367.00 ns/op 0.93
fastMsgIdFn sha256 / 10000 bytes 63.672 us/op 69.701 us/op 0.91
fastMsgIdFn h32 xxhash / 10000 bytes 1.9010 us/op 1.9810 us/op 0.96
fastMsgIdFn h64 xxhash / 10000 bytes 1.2690 us/op 1.3170 us/op 0.96
send data - 1000 256B messages 13.419 ms/op 15.020 ms/op 0.89
send data - 1000 512B messages 18.184 ms/op 19.810 ms/op 0.92
send data - 1000 1024B messages 26.202 ms/op 26.756 ms/op 0.98
send data - 1000 1200B messages 25.187 ms/op 20.852 ms/op 1.21
send data - 1000 2048B messages 33.783 ms/op 37.288 ms/op 0.91
send data - 1000 4096B messages 34.281 ms/op 36.256 ms/op 0.95
send data - 1000 16384B messages 69.940 ms/op 73.505 ms/op 0.95
send data - 1000 65536B messages 213.36 ms/op 247.38 ms/op 0.86
enrSubnets - fastDeserialize 64 bits 1.0860 us/op 1.2110 us/op 0.90
enrSubnets - ssz BitVector 64 bits 343.00 ns/op 473.00 ns/op 0.73
enrSubnets - fastDeserialize 4 bits 146.00 ns/op 211.00 ns/op 0.69
enrSubnets - ssz BitVector 4 bits 353.00 ns/op 451.00 ns/op 0.78
prioritizePeers score -10:0 att 32-0.1 sync 2-0 140.06 us/op 206.01 us/op 0.68
prioritizePeers score 0:0 att 32-0.25 sync 2-0.25 154.05 us/op 226.26 us/op 0.68
prioritizePeers score 0:0 att 32-0.5 sync 2-0.5 225.83 us/op 273.59 us/op 0.83
prioritizePeers score 0:0 att 64-0.75 sync 4-0.75 402.09 us/op 499.94 us/op 0.80
prioritizePeers score 0:0 att 64-1 sync 4-1 501.38 us/op 633.96 us/op 0.79
array of 16000 items push then shift 1.6195 us/op 1.7127 us/op 0.95
LinkedList of 16000 items push then shift 6.9890 ns/op 7.8450 ns/op 0.89
array of 16000 items push then pop 106.64 ns/op 125.50 ns/op 0.85
LinkedList of 16000 items push then pop 6.8390 ns/op 7.2970 ns/op 0.94
array of 24000 items push then shift 2.3614 us/op 2.5925 us/op 0.91
LinkedList of 24000 items push then shift 6.9710 ns/op 8.3760 ns/op 0.83
array of 24000 items push then pop 131.63 ns/op 166.95 ns/op 0.79
LinkedList of 24000 items push then pop 6.7680 ns/op 7.5810 ns/op 0.89
intersect bitArray bitLen 8 6.3130 ns/op 6.5970 ns/op 0.96
intersect array and set length 8 42.957 ns/op 49.675 ns/op 0.86
intersect bitArray bitLen 128 29.916 ns/op 30.566 ns/op 0.98
intersect array and set length 128 654.96 ns/op 703.75 ns/op 0.93
bitArray.getTrueBitIndexes() bitLen 128 1.2080 us/op 1.5610 us/op 0.77
bitArray.getTrueBitIndexes() bitLen 248 2.1480 us/op 2.8490 us/op 0.75
bitArray.getTrueBitIndexes() bitLen 512 4.2770 us/op 5.0500 us/op 0.85
Buffer.concat 32 items 722.00 ns/op 915.00 ns/op 0.79
Uint8Array.set 32 items 1.3240 us/op 2.0500 us/op 0.65
Buffer.copy 2.4090 us/op 3.1610 us/op 0.76
Uint8Array.set - with subarray 2.8310 us/op 2.9720 us/op 0.95
Uint8Array.set - without subarray 1.5940 us/op 1.7610 us/op 0.91
getUint32 - dataview 219.00 ns/op 237.00 ns/op 0.92
getUint32 - manual 152.00 ns/op 170.00 ns/op 0.89
Set add up to 64 items then delete first 2.1634 us/op 2.1648 us/op 1.00
OrderedSet add up to 64 items then delete first 3.1139 us/op 3.4551 us/op 0.90
Set add up to 64 items then delete last 2.4124 us/op 2.5210 us/op 0.96
OrderedSet add up to 64 items then delete last 3.4635 us/op 3.6192 us/op 0.96
Set add up to 64 items then delete middle 2.4598 us/op 2.4962 us/op 0.99
OrderedSet add up to 64 items then delete middle 5.0351 us/op 5.3229 us/op 0.95
Set add up to 128 items then delete first 4.9500 us/op 5.3516 us/op 0.92
OrderedSet add up to 128 items then delete first 7.4817 us/op 7.9424 us/op 0.94
Set add up to 128 items then delete last 4.7149 us/op 5.0204 us/op 0.94
OrderedSet add up to 128 items then delete last 6.8997 us/op 7.5979 us/op 0.91
Set add up to 128 items then delete middle 4.6479 us/op 4.9164 us/op 0.95
OrderedSet add up to 128 items then delete middle 13.050 us/op 13.535 us/op 0.96
Set add up to 256 items then delete first 9.8385 us/op 10.473 us/op 0.94
OrderedSet add up to 256 items then delete first 15.676 us/op 16.163 us/op 0.97
Set add up to 256 items then delete last 9.3704 us/op 9.5849 us/op 0.98
OrderedSet add up to 256 items then delete last 13.696 us/op 15.177 us/op 0.90
Set add up to 256 items then delete middle 9.1717 us/op 9.7411 us/op 0.94
OrderedSet add up to 256 items then delete middle 39.436 us/op 42.575 us/op 0.93
transfer serialized Status (84 B) 2.2660 us/op 2.9550 us/op 0.77
copy serialized Status (84 B) 1.2990 us/op 1.4630 us/op 0.89
transfer serialized SignedVoluntaryExit (112 B) 2.6890 us/op 2.7350 us/op 0.98
copy serialized SignedVoluntaryExit (112 B) 1.4810 us/op 1.3880 us/op 1.07
transfer serialized ProposerSlashing (416 B) 3.5280 us/op 3.1680 us/op 1.11
copy serialized ProposerSlashing (416 B) 2.6070 us/op 2.0430 us/op 1.28
transfer serialized Attestation (485 B) 3.4380 us/op 3.3610 us/op 1.02
copy serialized Attestation (485 B) 2.6380 us/op 1.8940 us/op 1.39
transfer serialized AttesterSlashing (33232 B) 3.6780 us/op 3.2280 us/op 1.14
copy serialized AttesterSlashing (33232 B) 5.8940 us/op 5.6230 us/op 1.05
transfer serialized Small SignedBeaconBlock (128000 B) 4.5850 us/op 3.7300 us/op 1.23
copy serialized Small SignedBeaconBlock (128000 B) 14.709 us/op 17.628 us/op 0.83
transfer serialized Avg SignedBeaconBlock (200000 B) 4.9550 us/op 4.2250 us/op 1.17
copy serialized Avg SignedBeaconBlock (200000 B) 20.129 us/op 22.432 us/op 0.90
transfer serialized BlobsSidecar (524380 B) 4.4820 us/op 4.1540 us/op 1.08
copy serialized BlobsSidecar (524380 B) 109.65 us/op 84.400 us/op 1.30
transfer serialized Big SignedBeaconBlock (1000000 B) 4.6880 us/op 4.5840 us/op 1.02
copy serialized Big SignedBeaconBlock (1000000 B) 176.57 us/op 212.22 us/op 0.83
pass gossip attestations to forkchoice per slot 2.7287 ms/op 2.7663 ms/op 0.99
forkChoice updateHead vc 100000 bc 64 eq 0 449.16 us/op 455.14 us/op 0.99
forkChoice updateHead vc 600000 bc 64 eq 0 3.0823 ms/op 3.7834 ms/op 0.81
forkChoice updateHead vc 1000000 bc 64 eq 0 4.7434 ms/op 5.0156 ms/op 0.95
forkChoice updateHead vc 600000 bc 320 eq 0 2.7037 ms/op 2.8007 ms/op 0.97
forkChoice updateHead vc 600000 bc 1200 eq 0 2.7621 ms/op 3.0726 ms/op 0.90
forkChoice updateHead vc 600000 bc 7200 eq 0 3.5537 ms/op 3.9623 ms/op 0.90
forkChoice updateHead vc 600000 bc 64 eq 1000 10.202 ms/op 10.815 ms/op 0.94
forkChoice updateHead vc 600000 bc 64 eq 10000 9.6735 ms/op 10.292 ms/op 0.94
forkChoice updateHead vc 600000 bc 64 eq 300000 11.209 ms/op 13.262 ms/op 0.85
computeDeltas 500000 validators 300 proto nodes 3.9082 ms/op 4.0234 ms/op 0.97
computeDeltas 500000 validators 1200 proto nodes 3.9196 ms/op 4.2298 ms/op 0.93
computeDeltas 500000 validators 7200 proto nodes 3.9400 ms/op 4.2466 ms/op 0.93
computeDeltas 750000 validators 300 proto nodes 5.8272 ms/op 6.2663 ms/op 0.93
computeDeltas 750000 validators 1200 proto nodes 5.8302 ms/op 6.4065 ms/op 0.91
computeDeltas 750000 validators 7200 proto nodes 5.8104 ms/op 6.4333 ms/op 0.90
computeDeltas 1400000 validators 300 proto nodes 10.999 ms/op 11.693 ms/op 0.94
computeDeltas 1400000 validators 1200 proto nodes 10.876 ms/op 12.241 ms/op 0.89
computeDeltas 1400000 validators 7200 proto nodes 10.876 ms/op 12.379 ms/op 0.88
computeDeltas 2100000 validators 300 proto nodes 16.440 ms/op 18.518 ms/op 0.89
computeDeltas 2100000 validators 1200 proto nodes 16.505 ms/op 19.101 ms/op 0.86
computeDeltas 2100000 validators 7200 proto nodes 16.873 ms/op 19.131 ms/op 0.88
altair processAttestation - 250000 vs - 7PWei normalcase 1.8192 ms/op 2.4632 ms/op 0.74
altair processAttestation - 250000 vs - 7PWei worstcase 2.5905 ms/op 3.1888 ms/op 0.81
altair processAttestation - setStatus - 1/6 committees join 115.05 us/op 136.48 us/op 0.84
altair processAttestation - setStatus - 1/3 committees join 217.12 us/op 262.16 us/op 0.83
altair processAttestation - setStatus - 1/2 committees join 303.84 us/op 354.95 us/op 0.86
altair processAttestation - setStatus - 2/3 committees join 390.99 us/op 485.68 us/op 0.81
altair processAttestation - setStatus - 4/5 committees join 560.29 us/op 647.28 us/op 0.87
altair processAttestation - setStatus - 100% committees join 660.51 us/op 772.05 us/op 0.86
altair processBlock - 250000 vs - 7PWei normalcase 3.8537 ms/op 7.0825 ms/op 0.54
altair processBlock - 250000 vs - 7PWei normalcase hashState 29.662 ms/op 29.662 ms/op 1.00
altair processBlock - 250000 vs - 7PWei worstcase 32.533 ms/op 40.975 ms/op 0.79
altair processBlock - 250000 vs - 7PWei worstcase hashState 73.723 ms/op 81.350 ms/op 0.91
phase0 processBlock - 250000 vs - 7PWei normalcase 1.5995 ms/op 3.0491 ms/op 0.52
phase0 processBlock - 250000 vs - 7PWei worstcase 19.121 ms/op 28.593 ms/op 0.67
altair processEth1Data - 250000 vs - 7PWei normalcase 297.33 us/op 455.93 us/op 0.65
getExpectedWithdrawals 250000 eb:1,eth1:1,we:0,wn:0,smpl:15 6.1500 us/op 7.9800 us/op 0.77
getExpectedWithdrawals 250000 eb:0.95,eth1:0.1,we:0.05,wn:0,smpl:219 43.190 us/op 62.338 us/op 0.69
getExpectedWithdrawals 250000 eb:0.95,eth1:0.3,we:0.05,wn:0,smpl:42 8.2470 us/op 16.659 us/op 0.50
getExpectedWithdrawals 250000 eb:0.95,eth1:0.7,we:0.05,wn:0,smpl:18 6.3360 us/op 8.4700 us/op 0.75
getExpectedWithdrawals 250000 eb:0.1,eth1:0.1,we:0,wn:0,smpl:1020 145.56 us/op 180.97 us/op 0.80
getExpectedWithdrawals 250000 eb:0.03,eth1:0.03,we:0,wn:0,smpl:11777 1.2385 ms/op 1.0648 ms/op 1.16
getExpectedWithdrawals 250000 eb:0.01,eth1:0.01,we:0,wn:0,smpl:16384 1.5166 ms/op 1.7627 ms/op 0.86
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,smpl:16384 1.7217 ms/op 1.7471 ms/op 0.99
getExpectedWithdrawals 250000 eb:0,eth1:0,we:0,wn:0,nocache,smpl:16384 3.8360 ms/op 4.1669 ms/op 0.92
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,smpl:16384 1.5732 ms/op 1.6630 ms/op 0.95
getExpectedWithdrawals 250000 eb:0,eth1:1,we:0,wn:0,nocache,smpl:16384 4.2788 ms/op 4.6481 ms/op 0.92
Tree 40 250000 create 204.66 ms/op 281.59 ms/op 0.73
Tree 40 250000 get(125000) 145.63 ns/op 157.38 ns/op 0.93
Tree 40 250000 set(125000) 625.50 ns/op 800.05 ns/op 0.78
Tree 40 250000 toArray() 15.163 ms/op 22.657 ms/op 0.67
Tree 40 250000 iterate all - toArray() + loop 14.933 ms/op 21.367 ms/op 0.70
Tree 40 250000 iterate all - get(i) 48.384 ms/op 59.520 ms/op 0.81
Array 250000 create 2.8175 ms/op 3.8819 ms/op 0.73
Array 250000 clone - spread 1.4083 ms/op 1.5693 ms/op 0.90
Array 250000 get(125000) 0.40000 ns/op 0.42900 ns/op 0.93
Array 250000 set(125000) 0.42100 ns/op 0.45400 ns/op 0.93
Array 250000 iterate all - loop 101.22 us/op 92.081 us/op 1.10
phase0 afterProcessEpoch - 250000 vs - 7PWei 49.053 ms/op 53.788 ms/op 0.91
Array.fill - length 1000000 3.5322 ms/op 4.9667 ms/op 0.71
Array push - length 1000000 16.083 ms/op 20.793 ms/op 0.77
Array.get 0.26493 ns/op 0.29162 ns/op 0.91
Uint8Array.get 0.42389 ns/op 0.45658 ns/op 0.93
phase0 beforeProcessEpoch - 250000 vs - 7PWei 16.880 ms/op 20.851 ms/op 0.81
altair processEpoch - mainnet_e81889 277.52 ms/op 274.56 ms/op 1.01
mainnet_e81889 - altair beforeProcessEpoch 22.223 ms/op 19.764 ms/op 1.12
mainnet_e81889 - altair processJustificationAndFinalization 13.780 us/op 16.548 us/op 0.83
mainnet_e81889 - altair processInactivityUpdates 4.9055 ms/op 6.7441 ms/op 0.73
mainnet_e81889 - altair processRewardsAndPenalties 37.365 ms/op 47.591 ms/op 0.79
mainnet_e81889 - altair processRegistryUpdates 2.4200 us/op 3.0780 us/op 0.79
mainnet_e81889 - altair processSlashings 440.00 ns/op 1.1340 us/op 0.39
mainnet_e81889 - altair processEth1DataReset 490.00 ns/op 621.00 ns/op 0.79
mainnet_e81889 - altair processEffectiveBalanceUpdates 1.3836 ms/op 1.8136 ms/op 0.76
mainnet_e81889 - altair processSlashingsReset 3.4380 us/op 5.6060 us/op 0.61
mainnet_e81889 - altair processRandaoMixesReset 4.9090 us/op 6.0570 us/op 0.81
mainnet_e81889 - altair processHistoricalRootsUpdate 807.00 ns/op 1.0060 us/op 0.80
mainnet_e81889 - altair processParticipationFlagUpdates 2.1080 us/op 2.0570 us/op 1.02
mainnet_e81889 - altair processSyncCommitteeUpdates 671.00 ns/op 639.00 ns/op 1.05
mainnet_e81889 - altair afterProcessEpoch 48.604 ms/op 53.776 ms/op 0.90
capella processEpoch - mainnet_e217614 1.0113 s/op 1.0715 s/op 0.94
mainnet_e217614 - capella beforeProcessEpoch 68.084 ms/op 72.440 ms/op 0.94
mainnet_e217614 - capella processJustificationAndFinalization 12.009 us/op 15.860 us/op 0.76
mainnet_e217614 - capella processInactivityUpdates 17.320 ms/op 18.218 ms/op 0.95
mainnet_e217614 - capella processRewardsAndPenalties 207.34 ms/op 229.63 ms/op 0.90
mainnet_e217614 - capella processRegistryUpdates 18.809 us/op 17.083 us/op 1.10
mainnet_e217614 - capella processSlashings 586.00 ns/op 682.00 ns/op 0.86
mainnet_e217614 - capella processEth1DataReset 495.00 ns/op 458.00 ns/op 1.08
mainnet_e217614 - capella processEffectiveBalanceUpdates 12.083 ms/op 15.152 ms/op 0.80
mainnet_e217614 - capella processSlashingsReset 3.1830 us/op 4.8780 us/op 0.65
mainnet_e217614 - capella processRandaoMixesReset 4.6000 us/op 5.3970 us/op 0.85
mainnet_e217614 - capella processHistoricalRootsUpdate 645.00 ns/op 840.00 ns/op 0.77
mainnet_e217614 - capella processParticipationFlagUpdates 1.5150 us/op 2.7600 us/op 0.55
mainnet_e217614 - capella afterProcessEpoch 123.74 ms/op 126.23 ms/op 0.98
phase0 processEpoch - mainnet_e58758 302.43 ms/op 336.98 ms/op 0.90
mainnet_e58758 - phase0 beforeProcessEpoch 82.806 ms/op 85.309 ms/op 0.97
mainnet_e58758 - phase0 processJustificationAndFinalization 12.874 us/op 16.940 us/op 0.76
mainnet_e58758 - phase0 processRewardsAndPenalties 29.253 ms/op 35.545 ms/op 0.82
mainnet_e58758 - phase0 processRegistryUpdates 8.8220 us/op 12.641 us/op 0.70
mainnet_e58758 - phase0 processSlashings 595.00 ns/op 1.2770 us/op 0.47
mainnet_e58758 - phase0 processEth1DataReset 428.00 ns/op 889.00 ns/op 0.48
mainnet_e58758 - phase0 processEffectiveBalanceUpdates 1.1532 ms/op 1.1862 ms/op 0.97
mainnet_e58758 - phase0 processSlashingsReset 2.1440 us/op 4.0790 us/op 0.53
mainnet_e58758 - phase0 processRandaoMixesReset 4.1600 us/op 5.2700 us/op 0.79
mainnet_e58758 - phase0 processHistoricalRootsUpdate 414.00 ns/op 477.00 ns/op 0.87
mainnet_e58758 - phase0 processParticipationRecordUpdates 3.5480 us/op 6.3550 us/op 0.56
mainnet_e58758 - phase0 afterProcessEpoch 42.362 ms/op 46.008 ms/op 0.92
phase0 processEffectiveBalanceUpdates - 250000 normalcase 1.3313 ms/op 1.6660 ms/op 0.80
phase0 processEffectiveBalanceUpdates - 250000 worstcase 0.5 1.7558 ms/op 2.7328 ms/op 0.64
altair processInactivityUpdates - 250000 normalcase 13.963 ms/op 18.764 ms/op 0.74
altair processInactivityUpdates - 250000 worstcase 14.839 ms/op 21.026 ms/op 0.71
phase0 processRegistryUpdates - 250000 normalcase 8.3440 us/op 9.2790 us/op 0.90
phase0 processRegistryUpdates - 250000 badcase_full_deposits 272.66 us/op 410.53 us/op 0.66
phase0 processRegistryUpdates - 250000 worstcase 0.5 99.790 ms/op 135.27 ms/op 0.74
altair processRewardsAndPenalties - 250000 normalcase 37.777 ms/op 43.425 ms/op 0.87
altair processRewardsAndPenalties - 250000 worstcase 37.780 ms/op 48.621 ms/op 0.78
phase0 getAttestationDeltas - 250000 normalcase 7.1122 ms/op 10.945 ms/op 0.65
phase0 getAttestationDeltas - 250000 worstcase 7.2024 ms/op 8.5721 ms/op 0.84
phase0 processSlashings - 250000 worstcase 83.368 us/op 98.586 us/op 0.85
altair processSyncCommitteeUpdates - 250000 119.36 ms/op 127.52 ms/op 0.94
BeaconState.hashTreeRoot - No change 237.00 ns/op 250.00 ns/op 0.95
BeaconState.hashTreeRoot - 1 full validator 90.044 us/op 122.53 us/op 0.73
BeaconState.hashTreeRoot - 32 full validator 831.68 us/op 1.1134 ms/op 0.75
BeaconState.hashTreeRoot - 512 full validator 8.6667 ms/op 9.4334 ms/op 0.92
BeaconState.hashTreeRoot - 1 validator.effectiveBalance 144.66 us/op 103.36 us/op 1.40
BeaconState.hashTreeRoot - 32 validator.effectiveBalance 1.7370 ms/op 1.8131 ms/op 0.96
BeaconState.hashTreeRoot - 512 validator.effectiveBalance 21.342 ms/op 20.268 ms/op 1.05
BeaconState.hashTreeRoot - 1 balances 116.72 us/op 107.42 us/op 1.09
BeaconState.hashTreeRoot - 32 balances 976.01 us/op 1.1399 ms/op 0.86
BeaconState.hashTreeRoot - 512 balances 9.3364 ms/op 8.5603 ms/op 1.09
BeaconState.hashTreeRoot - 250000 balances 175.42 ms/op 192.20 ms/op 0.91
aggregationBits - 2048 els - zipIndexesInBitList 25.712 us/op 35.576 us/op 0.72
byteArrayEquals 32 53.124 ns/op 56.390 ns/op 0.94
Buffer.compare 32 17.137 ns/op 18.503 ns/op 0.93
byteArrayEquals 1024 1.5972 us/op 1.6558 us/op 0.96
Buffer.compare 1024 25.753 ns/op 33.956 ns/op 0.76
byteArrayEquals 16384 25.177 us/op 26.358 us/op 0.96
Buffer.compare 16384 204.65 ns/op 211.93 ns/op 0.97
byteArrayEquals 123687377 201.64 ms/op 193.86 ms/op 1.04
Buffer.compare 123687377 13.741 ms/op 6.3369 ms/op 2.17
byteArrayEquals 32 - diff last byte 57.170 ns/op 52.270 ns/op 1.09
Buffer.compare 32 - diff last byte 22.944 ns/op 16.999 ns/op 1.35
byteArrayEquals 1024 - diff last byte 1.7363 us/op 1.5737 us/op 1.10
Buffer.compare 1024 - diff last byte 36.355 ns/op 28.587 ns/op 1.27
byteArrayEquals 16384 - diff last byte 29.415 us/op 25.023 us/op 1.18
Buffer.compare 16384 - diff last byte 300.10 ns/op 196.64 ns/op 1.53
byteArrayEquals 123687377 - diff last byte 220.52 ms/op 199.24 ms/op 1.11
Buffer.compare 123687377 - diff last byte 10.250 ms/op 9.8959 ms/op 1.04
byteArrayEquals 32 - random bytes 5.5340 ns/op 5.5670 ns/op 0.99
Buffer.compare 32 - random bytes 18.402 ns/op 18.585 ns/op 0.99
byteArrayEquals 1024 - random bytes 5.5060 ns/op 5.5820 ns/op 0.99
Buffer.compare 1024 - random bytes 18.332 ns/op 18.435 ns/op 0.99
byteArrayEquals 16384 - random bytes 5.9100 ns/op 5.5270 ns/op 1.07
Buffer.compare 16384 - random bytes 18.908 ns/op 18.469 ns/op 1.02
byteArrayEquals 123687377 - random bytes 7.2700 ns/op 7.1900 ns/op 1.01
Buffer.compare 123687377 - random bytes 20.630 ns/op 20.980 ns/op 0.98
regular array get 100000 times 46.221 us/op 35.377 us/op 1.31
wrappedArray get 100000 times 42.893 us/op 35.360 us/op 1.21
arrayWithProxy get 100000 times 13.931 ms/op 13.297 ms/op 1.05
ssz.Root.equals 49.654 ns/op 48.948 ns/op 1.01
byteArrayEquals 48.140 ns/op 48.254 ns/op 1.00
Buffer.compare 11.218 ns/op 11.442 ns/op 0.98
processSlot - 1 slots 14.039 us/op 16.223 us/op 0.87
processSlot - 32 slots 3.2431 ms/op 4.1720 ms/op 0.78
getEffectiveBalanceIncrementsZeroInactive - 250000 vs - 7PWei 37.916 ms/op 39.814 ms/op 0.95
getCommitteeAssignments - req 1 vs - 250000 vc 2.1870 ms/op 2.3321 ms/op 0.94
getCommitteeAssignments - req 100 vs - 250000 vc 4.2524 ms/op 4.4894 ms/op 0.95
getCommitteeAssignments - req 1000 vs - 250000 vc 4.5006 ms/op 4.7791 ms/op 0.94
findModifiedValidators - 10000 modified validators 301.37 ms/op 287.30 ms/op 1.05
findModifiedValidators - 1000 modified validators 242.29 ms/op 203.29 ms/op 1.19
findModifiedValidators - 100 modified validators 215.13 ms/op 207.98 ms/op 1.03
findModifiedValidators - 10 modified validators 204.50 ms/op 208.30 ms/op 0.98
findModifiedValidators - 1 modified validators 186.99 ms/op 219.00 ms/op 0.85
findModifiedValidators - no difference 172.48 ms/op 216.16 ms/op 0.80
compare ViewDUs 2.9473 s/op 3.9654 s/op 0.74
compare each validator Uint8Array 1.5836 s/op 1.9079 s/op 0.83
compare ViewDU to Uint8Array 907.27 ms/op 1.2330 s/op 0.74
migrate state 1000000 validators, 24 modified, 0 new 726.44 ms/op 890.05 ms/op 0.82
migrate state 1000000 validators, 1700 modified, 1000 new 931.47 ms/op 1.1928 s/op 0.78
migrate state 1000000 validators, 3400 modified, 2000 new 1.1509 s/op 1.2978 s/op 0.89
migrate state 1500000 validators, 24 modified, 0 new 740.24 ms/op 804.75 ms/op 0.92
migrate state 1500000 validators, 1700 modified, 1000 new 961.74 ms/op 1.0505 s/op 0.92
migrate state 1500000 validators, 3400 modified, 2000 new 1.1328 s/op 1.3981 s/op 0.81
RootCache.getBlockRootAtSlot - 250000 vs - 7PWei 4.1900 ns/op 7.9000 ns/op 0.53
state getBlockRootAtSlot - 250000 vs - 7PWei 644.96 ns/op 1.3921 us/op 0.46
computeProposers - vc 250000 6.3598 ms/op 18.918 ms/op 0.34
computeEpochShuffling - vc 250000 40.912 ms/op 50.334 ms/op 0.81
getNextSyncCommittee - vc 250000 113.36 ms/op 196.76 ms/op 0.58
computeSigningRoot for AttestationData 23.228 us/op 40.695 us/op 0.57
hash AttestationData serialized data then Buffer.toString(base64) 1.6005 us/op 1.9518 us/op 0.82
toHexString serialized data 867.64 ns/op 1.1358 us/op 0.76
Buffer.toString(base64) 162.99 ns/op 217.15 ns/op 0.75
nodejs block root to RootHex using toHex 147.46 ns/op 174.28 ns/op 0.85
nodejs block root to RootHex using toRootHex 84.948 ns/op 102.15 ns/op 0.83
browser block root to RootHex using the deprecated toHexString 222.72 ns/op 303.40 ns/op 0.73
browser block root to RootHex using toHex 180.68 ns/op 222.72 ns/op 0.81
browser block root to RootHex using toRootHex 162.94 ns/op 177.70 ns/op 0.92

by benchmarkbot/action

@twoeths twoeths enabled auto-merge (squash) December 23, 2024 01:10
@twoeths twoeths merged commit 5916e00 into unstable Dec 23, 2024
18 of 20 checks passed
@twoeths twoeths deleted the nflaig/fix-import-head-late branch December 23, 2024 10:26
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.

2 participants