pub fn run(
conn: &Connection,
config: &BenchConfig,
) -> Result<Vec<OperationResult>>Expand description
Run the bench workload and return per-operation results.
Each operation seeds its own data inside the supplied connection so callers can hand in either a fresh in-memory DB (for tests) or a disposable on-disk DB (for the CLI).
§Errors
Returns the underlying db error if any of the seeded inserts
or queries fail.