Revision 012c1db9
Added by Andreas Kohlbecker over 12 years ago
cdmlib-io/src/test/java/eu/etaxonomy/cdm/io/sdd/in/SDDImportBenchmark.java | ||
---|---|---|
45 | 45 |
@SpringBeanByType |
46 | 46 |
INameService nameService; |
47 | 47 |
|
48 |
@Rule |
|
49 |
public MethodRule benchmarkRun = new BenchmarkRule(); |
|
48 |
// not working with unitils 1.0 |
|
49 |
// @Rule |
|
50 |
// public MethodRule benchmarkRun = new BenchmarkRule(); |
|
50 | 51 |
|
51 | 52 |
private SDDImportConfigurator configurator; |
52 | 53 |
|
... | ... | |
57 | 58 |
configurator = SDDImportConfigurator.NewInstance(url.toURI(), null); |
58 | 59 |
} |
59 | 60 |
|
60 |
@BenchmarkOptions(benchmarkRounds = 0, warmupRounds = 0) |
|
61 |
// @BenchmarkOptions(benchmarkRounds = 0, warmupRounds = 0)
|
|
61 | 62 |
@Test |
62 | 63 |
public void testInit() { |
63 | 64 |
assertNotNull("sddImport should not be null", sddImport); |
64 | 65 |
assertNotNull("nameService should not be null", nameService); |
65 | 66 |
} |
66 | 67 |
|
67 |
@BenchmarkOptions(benchmarkRounds = 2, warmupRounds = 0) |
|
68 |
// @BenchmarkOptions(benchmarkRounds = 2, warmupRounds = 0)
|
|
68 | 69 |
@Test |
69 | 70 |
public void testDoInvoke() { |
70 | 71 |
sddImport.doInvoke(new SDDImportState(configurator)); |
Also available in: Unified diff
Merging r13274 through r13285 from trunk/cdmlib into branches/cdmlib/3.x-benchmark (adapting ddl)