From sitnikov.vladimir at gmail.com Thu Jul 3 09:25:55 2025 From: sitnikov.vladimir at gmail.com (Vladimir Sitnikov) Date: Thu, 3 Jul 2025 12:25:55 +0300 Subject: Can OperationsPerInvocation vary for each invocation? Message-ID: Hi, I want to benchmark "insert a batch of records to the database" scenario, and I want to use batches with varying sizes. Ideally I would like to have something like the following: Random batchSize; // state variable @Benchmark Object insertBatch(Infra infra) { int size = rnd.nextInt(10000); infra.opsPerInvocation(size); // <-- I want this instead of having a fixed @OperationsPerInvocation var ps = ...prepareStatement(...); for(int i=0; i