Skip to content

Commit

Permalink
Merge pull request Netflix#1360 from mattrjacobs/convert-command-cons…
Browse files Browse the repository at this point in the history
…truction-jmh-test-to-singleshot

jmh test is more accurate when measuring the first command construction
  • Loading branch information
mattrjacobs authored Sep 23, 2016
2 parents f16c08f + 62edc4a commit d31ec7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class CommandConstructionPerfTest {
static HystrixCommandGroupKey groupKey = HystrixCommandGroupKey.Factory.asKey("Group");

@Benchmark
@BenchmarkMode({Mode.SampleTime})
@BenchmarkMode({Mode.SingleShotTime})
@OutputTimeUnit(TimeUnit.MICROSECONDS)
public HystrixCommand constructHystrixCommandByGroupKeyOnly() {
return new HystrixCommand<Integer>(groupKey) {
Expand Down

0 comments on commit d31ec7d

Please sign in to comment.