diff options
author | Marek Gradzki <mgradzki@cisco.com> | 2016-12-19 11:49:03 +0100 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2016-12-19 12:41:22 +0100 |
commit | c6d8dbfb6ec0f9a8c4caf7a9a665fe751febdbc2 (patch) | |
tree | 9c7a7dd59cddf92d916da278d0c95537bd93e650 /infra/it/benchmark/pom.xml | |
parent | ac0409a9987fdf6440665f03aa1ad2c2466dad28 (diff) |
HONEYCOMB-288: JMH's CSV postprocessing to format accepted by Jenkin's plot plugin
Generates 3 plots for write operations:
- simple-container.csv,
- list-in-container.csv,
- complex-list-in-container.csv
and one plot for read operations: operational-read.csv
from benchmark.csv.
Jenkins plot plugin uses only first record line from CSV file:
https://github.com/jenkinsci/plot-plugin/blob/master/src/main/webapp/help-csv.html#L15
therefore each generated CSV contains two lines: header and single record.
Change-Id: I489c3401673d72a4b3ea3ec00197366118d1ff5f
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'infra/it/benchmark/pom.xml')
-rw-r--r-- | infra/it/benchmark/pom.xml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/infra/it/benchmark/pom.xml b/infra/it/benchmark/pom.xml index 54ed6e1b8..8f9eabc56 100644 --- a/infra/it/benchmark/pom.xml +++ b/infra/it/benchmark/pom.xml @@ -59,6 +59,12 @@ <artifactId>honeycomb-test-model</artifactId> <version>${project.version}</version> </dependency> + <dependency> + <groupId>org.apache.commons</groupId> + <artifactId>commons-csv</artifactId> + <version>1.4</version> + </dependency> + </dependencies> <build> @@ -129,6 +135,19 @@ </arguments> </configuration> </execution> + <execution> + <id>benchmark-post-processing</id> + <phase>test</phase> + <goals> + <goal>java</goal> + </goals> + <configuration> + <mainClass>io.fd.honeycomb.benchmark.format.BenchmarkOutputFormatter</mainClass> + <arguments> + <argument>${project.build.directory}/benchmark.csv</argument> + </arguments> + </configuration> + </execution> </executions> </plugin> </plugins> |