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