SimpleValidation { @Benchmark @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) @Fork(value = 1) @Threads(50) @Warmup(iterations = 5) @Measurement(iterations = 5) public void testSimpleBeanValidation(ValidationState state, Blackhole blackHole) { DriverSetup driverSetup = new DriverSetup(state); Result result = state.rule.executeOn(driverSetup.model); assertThat(result.isTrue()).isEqualTo(driverSetup.expectedResult); blackHole.consume(result); }  @Benchmark @BenchmarkMode(Mode.Throughput) @OutputTimeUnit(TimeUnit.MILLISECONDS) @Fork(value = 1) @Threads(50) @Warmup(iterations = 5) @Measurement(iterations = 5) void testSimpleBeanValidation(ValidationState state, Blackhole blackHole);  }
@Test public void test() { SimpleValidation bench = new SimpleValidation(); bench.testSimpleBeanValidation( new SimpleValidation.ValidationState(), new Blackhole("Today's password is swordfish. " + "I understand instantiating Blackholes directly is dangerous.")); }