Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Jan 30, 2024
1 parent 8b35974 commit 105f4b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ const vc = 1_500_000;

/**
* Jan 2024
* getAttestationsForBlock
βœ” notSeenSlots=1 numMissedVotes=1 numBadVotes=10 9.152280 ops/s 109.2624 ms/op - 48 runs 60.3 s
βœ” notSeenSlots=1 numMissedVotes=0 numBadVotes=4 9.173290 ops/s 109.0121 ms/op - 52 runs 38.1 s
βœ” notSeenSlots=2 numMissedVotes=1 numBadVotes=10 18.10215 ops/s 55.24205 ms/op - 18 runs 34.0 s βœ” notSeenSlots=2 numMissedVotes=1 numBadVotes=10 25.31025 ops/s 39.50969 ms/op - 15 runs 31.3 s
* getAttestationsForBlock vc=1500000
* βœ” notSeenSlots=1 numMissedVotes=1 numBadVotes=10 10.48105 ops/s 95.41024 ms/op - 12 runs 18.2 s
* βœ” notSeenSlots=1 numMissedVotes=0 numBadVotes=4 11.44517 ops/s 87.37307 ms/op - 13 runs 14.5 s
* βœ” notSeenSlots=2 numMissedVotes=1 numBadVotes=10 23.86144 ops/s 41.90862 ms/op - 18 runs 34.1 s
*/
describe(`getAttestationsForBlock vc=${vc}`, () => {
let originalState: CachedBeaconStateAltair;
Expand Down Expand Up @@ -165,6 +165,9 @@ describe(`getAttestationsForBlock vc=${vc}`, () => {
}
});

/**
* Fir dev purpose to find the best way to get not seen validators.
*/
describe.skip("getAttestationsForBlock aggregationBits intersectValues vs get", () => {
const runsFactor = 1000;
// As of Jan 2004
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import type {SecretKey} from "@chainsafe/bls/types";
import bls from "@chainsafe/bls";
import {BitArray, fromHexString, toHexString} from "@chainsafe/ssz";
import {describe, it, expect, beforeEach, beforeAll, afterEach, vi} from "vitest";
import {MockedForkChoice, getMockedForkChoice} from "../../../mocks/mockedBeaconChain.js";
import {CachedBeaconStateAllForks, newFilledArray} from "@lodestar/state-transition";
import {FAR_FUTURE_EPOCH, MAX_EFFECTIVE_BALANCE, SLOTS_PER_EPOCH} from "@lodestar/params";
import {ssz, phase0, ValidatorIndex} from "@lodestar/types";
import {ssz, phase0} from "@lodestar/types";
import {CachedBeaconStateAltair} from "@lodestar/state-transition/src/types.js";
import {MockedForkChoice, getMockedForkChoice} from "../../../mocks/mockedBeaconChain.js";
import {
AggregatedAttestationPool,
aggregateInto,
Expand Down

0 comments on commit 105f4b4

Please sign in to comment.