|
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 2 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 4 | + <modelVersion>4.0.0</modelVersion> |
| 5 | + |
| 6 | + <artifactId>jmh-benchmark</artifactId> |
| 7 | + <groupId>clickhouse.com</groupId> |
| 8 | + <version>0.1-SNAPSHOT</version> |
| 9 | + <packaging>jar</packaging> |
| 10 | + |
| 11 | + <name>JMH Benchmark for Java Client</name> |
| 12 | + <description>JMH Benchmark for Java Client</description> |
| 13 | + <url>https://github.com/ClickHouse/clickhouse-java/tree/main/performance</url> |
| 14 | + |
| 15 | + <properties> |
| 16 | + <apache.httpclient.version>5.3.1</apache.httpclient.version> |
| 17 | + <slf4j.version>2.0.17</slf4j.version> |
| 18 | + <ch.jdbc.revision>0.8.6-SNAPSHOT</ch.jdbc.revision> |
| 19 | + <jmh.version>1.37</jmh.version> |
| 20 | + <testcontainers.version>1.20.6</testcontainers.version> |
| 21 | + |
| 22 | + <antrun-plugin.version>3.1.0</antrun-plugin.version> |
| 23 | + <assembly-plugin.version>3.6.0</assembly-plugin.version> |
| 24 | + <clean-plugin.version>3.3.1</clean-plugin.version> |
| 25 | + <compiler-plugin.version>3.13.0</compiler-plugin.version> |
| 26 | + <deploy-plugin.version>3.1.1</deploy-plugin.version> |
| 27 | + <enforcer-plugin.version>3.3.0</enforcer-plugin.version> |
| 28 | + <exec-plugin.version>3.5.0</exec-plugin.version> |
| 29 | + <failsafe-plugin.version>3.1.2</failsafe-plugin.version> |
| 30 | + <flatten-plugin.version>1.2.7</flatten-plugin.version> |
| 31 | + <git-plugin.version>6.0.0</git-plugin.version> |
| 32 | + <gpg-plugin.version>3.1.0</gpg-plugin.version> |
| 33 | + <helper-plugin.version>3.4.0</helper-plugin.version> |
| 34 | + <jacoco-plugin.version>0.8.12</jacoco-plugin.version> |
| 35 | + <jar-plugin.version>3.3.0</jar-plugin.version> |
| 36 | + <javadoc-plugin.version>3.5.0</javadoc-plugin.version> |
| 37 | + <native-plugin.version>0.9.23</native-plugin.version> |
| 38 | + <os-plugin.version>1.7.1</os-plugin.version> |
| 39 | + <protobuf-plugin.version>0.6.1</protobuf-plugin.version> |
| 40 | + <shade-plugin.version>3.5.0</shade-plugin.version> |
| 41 | + <source-plugin.version>3.2.1</source-plugin.version> |
| 42 | + <staging-plugin.version>1.6.13</staging-plugin.version> |
| 43 | + <surefire-plugin.version>3.2.5</surefire-plugin.version> |
| 44 | + <toolchains-plugin.version>3.1.0</toolchains-plugin.version> |
| 45 | + <versions-plugin.version>2.16.0</versions-plugin.version> |
| 46 | + <resource-plugin.version>3.3.1</resource-plugin.version> |
| 47 | + |
| 48 | + <jmh.measure-iter>10</jmh.measure-iter> |
| 49 | + <jmh.measure-time>10</jmh.measure-time> |
| 50 | + |
| 51 | + </properties> |
| 52 | + |
| 53 | + <dependencies> |
| 54 | + <dependency> |
| 55 | + <groupId>org.slf4j</groupId> |
| 56 | + <artifactId>slf4j-api</artifactId> |
| 57 | + <version>${slf4j.version}</version> |
| 58 | + </dependency> |
| 59 | + <dependency> |
| 60 | + <groupId>org.slf4j</groupId> |
| 61 | + <artifactId>slf4j-simple</artifactId> |
| 62 | + <version>${slf4j.version}</version> |
| 63 | + </dependency> |
| 64 | + <dependency> |
| 65 | + <groupId>org.openjdk.jmh</groupId> |
| 66 | + <artifactId>jmh-core</artifactId> |
| 67 | + <version>${jmh.version}</version> |
| 68 | + </dependency> |
| 69 | + <dependency> |
| 70 | + <groupId>org.openjdk.jmh</groupId> |
| 71 | + <artifactId>jmh-generator-annprocess</artifactId> |
| 72 | + <version>${jmh.version}</version> |
| 73 | + </dependency> |
| 74 | + |
| 75 | + <!-- Performance Test Dependencies --> |
| 76 | +<!-- <dependency>--> |
| 77 | +<!-- <groupId>org.testcontainers</groupId>--> |
| 78 | +<!-- <artifactId>testcontainers</artifactId>--> |
| 79 | +<!-- <version>${testcontainers.version}</version>--> |
| 80 | +<!-- <scope>compile</scope>--> |
| 81 | +<!-- </dependency>--> |
| 82 | + <!-- https://mvnrepository.com/artifact/org.testcontainers/clickhouse --> |
| 83 | + <dependency> |
| 84 | + <groupId>org.testcontainers</groupId> |
| 85 | + <artifactId>clickhouse</artifactId> |
| 86 | + <version>${testcontainers.version}</version> |
| 87 | + </dependency> |
| 88 | + |
| 89 | + <!-- Contains both JDBC drivers and clients --> |
| 90 | + <dependency> |
| 91 | + <groupId>com.clickhouse</groupId> |
| 92 | + <artifactId>clickhouse-jdbc</artifactId> |
| 93 | + <version>${ch.jdbc.revision}</version> |
| 94 | + <classifier>all</classifier> |
| 95 | + </dependency> |
| 96 | + |
| 97 | + </dependencies> |
| 98 | + |
| 99 | + <build> |
| 100 | + <plugins> |
| 101 | + <plugin> |
| 102 | + <groupId>org.apache.maven.plugins</groupId> |
| 103 | + <artifactId>maven-compiler-plugin</artifactId> |
| 104 | + <version>${compiler-plugin.version}</version> |
| 105 | + <configuration> |
| 106 | + <annotationProcessorPaths> |
| 107 | + <path> |
| 108 | + <groupId>org.projectlombok</groupId> |
| 109 | + <artifactId>lombok</artifactId> |
| 110 | + <version>1.18.32</version> |
| 111 | + </path> |
| 112 | + <path> |
| 113 | + <groupId>org.openjdk.jmh</groupId> |
| 114 | + <artifactId>jmh-generator-annprocess</artifactId> |
| 115 | + <version>${jmh.version}</version> |
| 116 | + </path> |
| 117 | + </annotationProcessorPaths> |
| 118 | + <release>11</release> |
| 119 | + </configuration> |
| 120 | + </plugin> |
| 121 | + <plugin> |
| 122 | + <groupId>org.codehaus.mojo</groupId> |
| 123 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 124 | + <version>3.6.0</version> |
| 125 | + <executions> |
| 126 | + <execution> |
| 127 | + <id>add-test-source</id> |
| 128 | + <phase>generate-test-sources</phase> |
| 129 | + <goals> |
| 130 | + <goal>add-test-source</goal> |
| 131 | + </goals> |
| 132 | + <configuration> |
| 133 | + <sources> |
| 134 | + <source>src/test</source> |
| 135 | + </sources> |
| 136 | + </configuration> |
| 137 | + </execution> |
| 138 | + </executions> |
| 139 | + </plugin> |
| 140 | + <plugin> |
| 141 | + <groupId>org.apache.maven.plugins</groupId> |
| 142 | + <artifactId>maven-assembly-plugin</artifactId> |
| 143 | + <version>3.6.0</version> |
| 144 | + <configuration> |
| 145 | + <descriptorRefs> |
| 146 | + <descriptorRef>jar-with-dependencies</descriptorRef> |
| 147 | + </descriptorRefs> |
| 148 | + <archive> |
| 149 | + <manifest> |
| 150 | + <mainClass>com.clickhouse.com.clickhouse.benchmark.BenchmarkRunner</mainClass> |
| 151 | + </manifest> |
| 152 | + </archive> |
| 153 | + </configuration> |
| 154 | + <executions> |
| 155 | + <execution> |
| 156 | + <id>make-assembly</id> |
| 157 | + <phase>package</phase> |
| 158 | + <goals> |
| 159 | + <goal>single</goal> |
| 160 | + </goals> |
| 161 | + </execution> |
| 162 | + </executions> |
| 163 | + </plugin> |
| 164 | + <plugin> |
| 165 | + <groupId>org.codehaus.mojo</groupId> |
| 166 | + <artifactId>exec-maven-plugin</artifactId> |
| 167 | + <version>${exec-plugin.version}</version> |
| 168 | + <executions> |
| 169 | + <execution> |
| 170 | + <id>run-benchmarks</id> |
| 171 | + <goals> |
| 172 | + <goal>exec</goal> |
| 173 | + </goals> |
| 174 | + <configuration> |
| 175 | + <executable>java</executable> |
| 176 | + <arguments> |
| 177 | + <argument>-classpath</argument> |
| 178 | + <classpath/> |
| 179 | + <argument>com.clickhouse.benchmark.BenchmarkRunner</argument> |
| 180 | + <argument>-m ${jmh.measure-iter}</argument> |
| 181 | + <argument>-t ${jmh.measure-time}</argument> |
| 182 | + </arguments> |
| 183 | + </configuration> |
| 184 | + </execution> |
| 185 | + </executions> |
| 186 | + </plugin> |
| 187 | + </plugins> |
| 188 | + </build> |
| 189 | +</project> |
0 commit comments