Skip to main content

benchStore

@webda/bench


Function: benchStore()

benchStore(harness, options?): Promise<BenchResult[]>

Defined in: packages/bench/src/suites/store.ts:132

Benchmark a store through the Repository API, the path used by applications

For each document size, the suite seeds profile.dataset documents then runs, for each concurrency level: get, exists, update, patch, setAttribute, incrementAttribute, upsert, queries (equality, range, IN, ORDER BY), create, delete and a contention scenario (concurrent increments of one document, checking the final counter). Then once: paginated scan, iterate and, in the full profile, updateMany / deleteMany.

Parameters​

harness​

StoreBenchHarness

creates the store under test

options?​

StoreBenchOptions = {}

profile, filter and reporters

Returns​

Promise<BenchResult[]>

the results