Skip to content

Commit 85c9ce3

Browse files
committed
internal: Improve bench precision
1 parent b3b1b61 commit 85c9ce3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

docs/rest/shared/_entity_lifecycle_methods.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ static mergeMetaWithStore(
318318

319319
### static queryKey(args, queryKey, getEntity, getIndex): pk? {#queryKey}
320320

321-
This method enables `Entities` to be [Queryable](./schema.md#queryable) - allowing store access without an endpoint.
321+
This method enables `Entities` to be [Queryable](/rest/api/schema#queryable) - allowing store access without an endpoint.
322322

323323
Overriding can allow customization or disabling of this behavior altogether.
324324

@@ -361,7 +361,7 @@ Called when denormalizing an entity. This will create an instance of this class
361361
if it is deemed 'valid'.
362362

363363
`undefined` return will result in [Invalid expiry status](/docs/concepts/expiry-policy#expiry-status),
364-
like [Invalidate](./Invalidate.md).
364+
like [Invalidate](/rest/api/Invalidate).
365365

366366
[`Invalid`](/docs/concepts/expiry-policy#expiry-status) expiry generally means hooks will enter a loading state and attempt a new fetch.
367367

examples/benchmark-react/bench/scenarios.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ export const RUN_CONFIG: Record<ScenarioSize, RunProfile> = {
2323
small: {
2424
warmup: 2,
2525
minMeasurement: 3,
26-
maxMeasurement: process.env.CI ? 15 : 12,
27-
targetMarginPct: process.env.CI ? 5 : 10,
26+
maxMeasurement: 15,
27+
targetMarginPct: process.env.CI ? 4 : 6,
2828
opsPerRound: defaultOpsPerRound,
2929
},
3030
large: {
3131
warmup: 1,
3232
minMeasurement: 3,
33-
maxMeasurement: process.env.CI ? 12 : 6,
34-
targetMarginPct: process.env.CI ? 8 : 15,
33+
maxMeasurement: 10,
34+
targetMarginPct: process.env.CI ? 6 : 10,
3535
opsPerRound: defaultOpsPerRound,
3636
},
3737
};
@@ -50,13 +50,13 @@ export const CONVERGENT_CONFIG: Record<ScenarioSize, ConvergentProfile> = {
5050
warmup: 5,
5151
minMeasurement: 5,
5252
maxMeasurement: 50,
53-
targetMarginPct: process.env.CI ? 5 : 8,
53+
targetMarginPct: process.env.CI ? 4 : 6,
5454
},
5555
large: {
5656
warmup: 3,
5757
minMeasurement: 5,
5858
maxMeasurement: 40,
59-
targetMarginPct: process.env.CI ? 8 : 12,
59+
targetMarginPct: process.env.CI ? 6 : 10,
6060
},
6161
};
6262

0 commit comments

Comments
 (0)