-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
pom.xml
219 lines (196 loc) · 9.1 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<name>JVM Performance Benchmarks</name>
<groupId>jvm.performance.benchmarks</groupId>
<artifactId>jvm-performance-benchmarks</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<uberjar.name>benchmarks</uberjar.name>
<maven.compiler.plugin>3.11.0</maven.compiler.plugin>
<maven.shade.plugin>3.5.0</maven.shade.plugin>
<org.openjdk.jmh>1.37</org.openjdk.jmh>
<spotless.maven.plugin>2.40.0</spotless.maven.plugin>
<google.java.format>1.18.1</google.java.format>
</properties>
<modules>
<module>benchmarks</module>
</modules>
<scm>
<connection>scm:git@github.com:ionutbalosin/jvm-performance-benchmarks.git</connection>
<developerConnection>scm:git@github.com:ionutbalosin/jvm-performance-benchmarks.git
</developerConnection>
<url>scm:git@github.com:ionutbalosin/jvm-performance-benchmarks.git</url>
</scm>
<profiles>
<profile>
<id>jdk11_profile</id>
<properties>
<jdk.version>11</jdk.version>
<spotlessExcludedFiles>
**/*SwitchBenchmark.java,**/holidayplanner/**/*.java,**/IoBlockingRoundtripLatencyBenchmark.java,**/VPThread*.java,**/StringConcatenationBenchmark.java,**/StringFormatBenchmark.java,**/StringWhitespaceBenchmark.java,**/api/time/**.java
</spotlessExcludedFiles>
<compilerExcludedFiles>
**/*SwitchBenchmark.java,**/holidayplanner/**/*.java,**/IoBlockingRoundtripLatencyBenchmark.java,**/VPThread*.java,**/*VectorApiBenchmark.java,**/RandomGeneratorBenchmark.java,**/ThreadLocalRandomBenchmark.java,**/StringConcatenationBenchmark.java,**/StringFormatBenchmark.java,**/StringWhitespaceBenchmark.java,**/api/time/**.java
</compilerExcludedFiles>
<compilerArgs>
--add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED,--add-exports=java.management/sun.management=ALL-UNNAMED,--enable-preview
</compilerArgs>
</properties>
</profile>
<profile>
<id>jdk17_profile</id>
<properties>
<jdk.version>17</jdk.version>
<spotlessExcludedFiles>
**/TypeSwitchBenchmark.java,**/StringConcatenationBenchmark.java,**/StringFormatBenchmark.java
</spotlessExcludedFiles>
<compilerExcludedFiles>
**/TypeSwitchBenchmark.java,**/holidayplanner/**/*.java,**/IoBlockingRoundtripLatencyBenchmark.java,**/VPThread*.java,**/StringConcatenationBenchmark.java,**/StringFormatBenchmark.java
</compilerExcludedFiles>
<compilerArgs>
--add-modules=jdk.incubator.vector,--add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED,--add-exports=java.management/sun.management=ALL-UNNAMED,--enable-preview
</compilerArgs>
</properties>
</profile>
<profile>
<id>jdk21_profile</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<jdk.version>21</jdk.version>
<spotlessExcludedFiles>
**/TypeSwitchBenchmark.java,**/StringConcatenationBenchmark.java,**/StringFormatBenchmark.java
</spotlessExcludedFiles>
<compilerArgs>
--add-modules=jdk.incubator.vector,--add-exports=java.base/jdk.internal.vm.annotation=ALL-UNNAMED,--add-exports=java.management/sun.management=ALL-UNNAMED,--enable-preview
</compilerArgs>
</properties>
</profile>
</profiles>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin}</version>
<configuration>
<annotationProcessorPaths>
<path>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<version>${org.openjdk.jmh}</version>
</path>
</annotationProcessorPaths>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
<excludes>
${compilerExcludedFiles}
</excludes>
<compilerArgs>
${compilerArgs}
</compilerArgs>
<jdkToolchain>
<version>${jdk.version}</version>
</jdkToolchain>
</configuration>
<dependencies>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<version>${org.openjdk.jmh}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>default-compile</id>
<configuration>
<jdkToolchain>
<version>${jdk.version}</version>
</jdkToolchain>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven.shade.plugin}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<finalName>${uberjar.name}</finalName>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>org.openjdk.jmh.Main</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${spotless.maven.plugin}</version>
<configuration>
<java>
<excludes>
${spotlessExcludedFiles}
</excludes>
<googleJavaFormat>
<version>${google.java.format}</version>
<style>GOOGLE</style>
<reflowLongStrings>true</reflowLongStrings>
<groupArtifact>com.google.googlejavaformat:google-java-format</groupArtifact>
</googleJavaFormat>
<removeUnusedImports/>
<licenseHeader>
<file>${maven.multiModuleProjectDirectory}/license/LICENSE-HEADER-JAVA</file>
</licenseHeader>
</java>
</configuration>
<executions>
<execution>
<goals>
<goal>apply</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId>
<version>${org.openjdk.jmh}</version>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<version>${org.openjdk.jmh}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>