Skip to content

Commit b2fb04a

Browse files
Update client defaults in keynote bench (#4745)
# Description of Changes Updates ts client defaults for keynote-2 bench to optimize throughput. These numbers were derived from runs on an apple m2, but I'd be surprised if this configuration was sub-optimal on other platforms. # API and ABI breaking changes None # Expected complexity level and risk 1 # Testing Manual
1 parent 2043bc9 commit b2fb04a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/keynote-2/src/connectors/spacetimedb.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function spacetimedb(config: SpacetimeConnectorConfig): ReducerConnector
7878

7979
return {
8080
name: 'spacetimedb',
81-
maxInflightPerWorker: 16384,
81+
maxInflightPerWorker: 512,
8282

8383
async open() {
8484
try {

templates/keynote-2/src/opts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ export function parseBenchOptions(argv: string[] = process.argv): BenchOptions {
380380
testName: args[0] ?? defaultBenchTestName,
381381
seconds: options.seconds ?? 1,
382382
concurrency:
383-
contentionTests?.concurrency ?? options.concurrency ?? 10,
383+
contentionTests?.concurrency ?? options.concurrency ?? 50,
384384
alpha: concurrencyTests?.alpha ?? options.alpha ?? 1.5,
385385
connectors: options.connectors ?? options.systems ?? null,
386386
contentionTests,

0 commit comments

Comments
 (0)