|
46 | 46 | @RunWith(Parameterized.class)
|
47 | 47 | public class SomeTracesWithSomeCachesBenchmark {
|
48 | 48 |
|
49 |
| - public final static EvictionTestVariation.Builder CACHES = new EvictionTestVariation.Builder() |
50 |
| - .add(SimpleCacheFactory.of(ClockProP.class)) |
51 |
| - .add(SimpleCacheFactory.of(CAR.class)) |
52 |
| - .add(PrototypeCacheFactory.of(Cache2kV14Eviction.class)) |
53 |
| - .add(new CaffeineStarFactory()) |
54 |
| - .add(new CaffeineSimulatorOptPolicyFactory().setName("OPT")); |
| 49 | + public final static EvictionTestVariation.Builder CACHES = new EvictionTestVariation.Builder() |
| 50 | + .add(SimpleCacheFactory.of(ClockProP.class)) |
| 51 | + .add(SimpleCacheFactory.of(CAR.class)) |
| 52 | + .add(PrototypeCacheFactory.of(Cache2kV14Eviction.class)) |
| 53 | + .add(new CaffeineStarFactory()) |
| 54 | + .add(new CaffeineSimulatorOptPolicyFactory().setName("OPT")); |
55 | 55 |
|
56 |
| - public final static EvictionTestVariation.Builder TRACES = |
57 |
| - new EvictionTestVariation.Builder() |
58 |
| - .add(Traces.FINANCIAL1_1M) |
59 |
| - .add(Traces.OLTP, 128, 256, 512) |
60 |
| - .add(Traces.SCARAB_RECS); |
| 56 | + public final static EvictionTestVariation.Builder TRACES = |
| 57 | + new EvictionTestVariation.Builder() |
| 58 | + .add(Traces.FINANCIAL1_1M) |
| 59 | + .add(Traces.OLTP, 128, 256, 512) |
| 60 | + .add(Traces.SCARAB_RECS); |
61 | 61 |
|
62 |
| - @ClassRule |
63 |
| - public static EvictionBenchmarkRunnerRule runner = new EvictionBenchmarkRunnerRule() |
64 |
| - .candidateAndPeers(CACHES) |
65 |
| - .setReadStoredResults(false); |
| 62 | + @ClassRule |
| 63 | + public static EvictionBenchmarkRunnerRule runner = new EvictionBenchmarkRunnerRule() |
| 64 | + .candidateAndPeers(CACHES) |
| 65 | + .setReadStoredResults(false); |
66 | 66 |
|
67 |
| - @Parameterized.Parameters(name="{0}") |
68 |
| - public static Iterable<? extends Object> data() { |
69 |
| - return new EvictionTestVariation.Builder().merge(CACHES).merge(TRACES).build(); |
70 |
| - } |
| 67 | + @Parameterized.Parameters(name="{0}") |
| 68 | + public static Iterable<? extends Object> data() { |
| 69 | + return new EvictionTestVariation.Builder().merge(CACHES).merge(TRACES).build(); |
| 70 | + } |
71 | 71 |
|
72 |
| - private EvictionTestVariation variation; |
| 72 | + private EvictionTestVariation variation; |
73 | 73 |
|
74 |
| - public SomeTracesWithSomeCachesBenchmark(final EvictionTestVariation variation) { |
75 |
| - this.variation = variation; |
76 |
| - } |
| 74 | + public SomeTracesWithSomeCachesBenchmark(final EvictionTestVariation variation) { |
| 75 | + this.variation = variation; |
| 76 | + } |
77 | 77 |
|
78 |
| - @Test |
79 |
| - public void test() { |
80 |
| - runner.runBenchmark(variation); |
81 |
| - } |
| 78 | + @Test |
| 79 | + public void test() { |
| 80 | + runner.runBenchmark(variation); |
| 81 | + } |
82 | 82 |
|
83 | 83 | }
|
0 commit comments