improve benchmarks
[yosql.git] / yosql-benchmarks / yosql-benchmarks-jdbc / pom.xml
blob0eccbbc311f56b0547a89bd7f32814dfa5401768
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
4   ~ directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
5   ~ including this file, may be copied, modified, propagated, or distributed except according to the terms contained
6   ~ in the LICENSE file.
7   -->
8 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9          xmlns="http://maven.apache.org/POM/4.0.0"
10          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11     <modelVersion>4.0.0</modelVersion>
13     <!-- ordering follows https://maven.apache.org/developers/conventions/code.html#POM_Code_Convention -->
15     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
16     <!--                                 PARENT                                  -->
17     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
18     <!-- https://maven.apache.org/pom.html#Inheritance -->
19     <parent>
20         <groupId>wtf.metio.yosql.benchmarks</groupId>
21         <artifactId>yosql-benchmarks</artifactId>
22         <version>0.0.0-SNAPSHOT</version>
23     </parent>
25     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
26     <!--                               COORDINATES                               -->
27     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
28     <!-- https://maven.apache.org/pom.html#Maven_Coordinates -->
30     <artifactId>yosql-benchmarks-jdbc</artifactId>
32     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
33     <!--                               INFORMATIONS                              -->
34     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
35     <!-- https://maven.apache.org/pom.html#More_Project_Information -->
36     <name>YoSQL :: Benchmarks :: JDBC</name>
38     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
39     <!--                               DEPENDENCIES                              -->
40     <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
41     <!-- https://maven.apache.org/pom.html#Dependencies -->
42     <dependencies>
43         <dependency>
44             <groupId>wtf.metio.yosql.testing</groupId>
45             <artifactId>yosql-testing-sql-files</artifactId>
46             <version>${project.version}</version>
47         </dependency>
48         <dependency>
49             <groupId>org.openjdk.jmh</groupId>
50             <artifactId>jmh-core</artifactId>
51         </dependency>
52         <dependency>
53             <groupId>org.openjdk.jmh</groupId>
54             <artifactId>jmh-generator-annprocess</artifactId>
55             <scope>provided</scope>
56         </dependency>
57         <dependency>
58             <groupId>org.slf4j</groupId>
59             <artifactId>slf4j-simple</artifactId>
60         </dependency>
61         <dependency>
62             <groupId>com.zaxxer</groupId>
63             <artifactId>HikariCP</artifactId>
64         </dependency>
65         <dependency>
66             <groupId>com.h2database</groupId>
67             <artifactId>h2</artifactId>
68         </dependency>
69         <dependency>
70             <groupId>io.reactivex.rxjava2</groupId>
71             <artifactId>rxjava</artifactId>
72             <version>2.2.21</version>
73         </dependency>
74     </dependencies>
76     <build>
77         <plugins>
78             <plugin>
79                 <groupId>wtf.metio.yosql.tooling</groupId>
80                 <artifactId>yosql-tooling-maven</artifactId>
81                 <version>${project.version}</version>
82                 <configuration>
83                     <files>
84                         <skipLines>6</skipLines>
85                     </files>
86                     <java>
87                         <apiVersion>16</apiVersion>
88                     </java>
89                     <repositories>
90                         <basePackageName>wtf.metio.yosql.benchmark.jdbc.persistence</basePackageName>
91                     </repositories>
92                     <jdbc>
93                         <utilityPackageName>wtf.metio.yosql.benchmark.jdbc.persistence.util</utilityPackageName>
94                     </jdbc>
95                 </configuration>
96                 <executions>
97                     <execution>
98                         <phase>generate-sources</phase>
99                         <goals>
100                             <goal>generate</goal>
101                         </goals>
102                     </execution>
103                 </executions>
104             </plugin>
105             <plugin>
106                 <groupId>org.codehaus.mojo</groupId>
107                 <artifactId>build-helper-maven-plugin</artifactId>
108                 <version>3.2.0</version>
109                 <executions>
110                     <execution>
111                         <id>add-source</id>
112                         <phase>generate-sources</phase>
113                         <goals>
114                             <goal>add-source</goal>
115                         </goals>
116                         <configuration>
117                             <sources>
118                                 <source>${project.build.directory}/generated-sources/yosql</source>
119                             </sources>
120                         </configuration>
121                     </execution>
122                 </executions>
123             </plugin>
124         </plugins>
125     </build>
127     <profiles>
128         <profile>
129             <id>benchmarks</id>
130             <build>
131                 <plugins>
132                     <plugin>
133                         <groupId>com.baidu.maven</groupId>
134                         <artifactId>jmh-maven-plugin</artifactId>
135                         <version>1.0.3</version>
136                         <executions>
137                             <execution>
138                                 <phase>test</phase>
139                                 <goals>
140                                     <goal>jmh</goal>
141                                 </goals>
142                             </execution>
143                         </executions>
144                         <configuration>
145                             <forks>1</forks>
146                             <warmupForks>1</warmupForks>
147                             <threads>1</threads>
148                             <mode>avgt</mode>
149                             <timeUnit>us</timeUnit>
150                             <measurementTime>1s</measurementTime>
151                             <warmupTime>1s</warmupTime>
152                             <resultFormat>json</resultFormat>
153                             <resultFile>yosql-benchmarks-jdbc.json</resultFile>
154                         </configuration>
155                     </plugin>
156                 </plugins>
157             </build>
158         </profile>
159     </profiles>
161 </project>