|
15 | 15 | @Threads(1) |
16 | 16 | public class ClientBenchmark { |
17 | 17 | private static final Logger LOGGER = LoggerFactory.getLogger(ClientBenchmark.class); |
| 18 | + private static final int SMALL_SIZE = 1000; |
| 19 | + private static final int MEDIUM_SIZE = 1000000; |
| 20 | + private static final int LARGE_SIZE = 10000000; |
18 | 21 |
|
19 | 22 | @Setup |
20 | 23 | public void setup() { |
@@ -42,27 +45,41 @@ public void pingBenchmark() { |
42 | 45 | public void queryBenchmarkSmall() throws Exception { |
43 | 46 | LOGGER.info("(V1) Query benchmark"); |
44 | 47 | ApacheHttpConnectionImplTest apacheHttpConnectionImplTest = new ApacheHttpConnectionImplTest(); |
45 | | - apacheHttpConnectionImplTest.testQuery(1000); |
| 48 | + apacheHttpConnectionImplTest.testQuery(SMALL_SIZE); |
46 | 49 | } |
47 | 50 |
|
48 | 51 | @Benchmark |
49 | 52 | public void queryBenchmarkMedium() throws Exception { |
50 | 53 | LOGGER.info("(V1) Query benchmark"); |
51 | 54 | ApacheHttpConnectionImplTest apacheHttpConnectionImplTest = new ApacheHttpConnectionImplTest(); |
52 | | - apacheHttpConnectionImplTest.testQuery(1000000); |
| 55 | + apacheHttpConnectionImplTest.testQuery(MEDIUM_SIZE); |
53 | 56 | } |
54 | 57 |
|
55 | 58 | @Benchmark |
56 | 59 | public void queryBenchmarkLarge() throws Exception { |
57 | 60 | LOGGER.info("(V1) Query benchmark"); |
58 | 61 | ApacheHttpConnectionImplTest apacheHttpConnectionImplTest = new ApacheHttpConnectionImplTest(); |
59 | | - apacheHttpConnectionImplTest.testQuery(1000000000); |
| 62 | + apacheHttpConnectionImplTest.testQuery(LARGE_SIZE); |
60 | 63 | } |
61 | 64 |
|
62 | 65 | @Benchmark |
63 | | - public void insertRawDataBenchmark() throws Exception { |
| 66 | + public void insertRawDataBenchmarkSmall() throws Exception { |
64 | 67 | LOGGER.info("(V1) Insert raw data benchmark"); |
65 | 68 | ApacheHttpConnectionImplTest apacheHttpConnectionImplTest = new ApacheHttpConnectionImplTest(); |
66 | | - apacheHttpConnectionImplTest.testInsertWithCustomFormat(); |
| 69 | + apacheHttpConnectionImplTest.testInsertRawDataSimple(SMALL_SIZE); |
| 70 | + } |
| 71 | + |
| 72 | + @Benchmark |
| 73 | + public void insertRawDataBenchmarkMedium() throws Exception { |
| 74 | + LOGGER.info("(V1) Insert raw data benchmark"); |
| 75 | + ApacheHttpConnectionImplTest apacheHttpConnectionImplTest = new ApacheHttpConnectionImplTest(); |
| 76 | + apacheHttpConnectionImplTest.testInsertRawDataSimple(MEDIUM_SIZE); |
| 77 | + } |
| 78 | + |
| 79 | + @Benchmark |
| 80 | + public void insertRawDataBenchmarkLarge() throws Exception { |
| 81 | + LOGGER.info("(V1) Insert raw data benchmark"); |
| 82 | + ApacheHttpConnectionImplTest apacheHttpConnectionImplTest = new ApacheHttpConnectionImplTest(); |
| 83 | + apacheHttpConnectionImplTest.testInsertRawDataSimple(LARGE_SIZE); |
67 | 84 | } |
68 | 85 | } |
0 commit comments