Skip to content

Commit cd6ca69

Browse files
committed
GH-273 add bechmarks
1 parent f0a54f6 commit cd6ca69

31 files changed

+1837954
-102
lines changed

pom_parent.xml

+115-102
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project
3-
xmlns="http://maven.apache.org/POM/4.0.0"
4-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
6-
>
3+
xmlns="http://maven.apache.org/POM/4.0.0"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
6+
>
77

88
<modelVersion>4.0.0</modelVersion>
99
<groupId>com.apicatalog</groupId>
@@ -12,45 +12,46 @@
1212
<packaging>pom</packaging>
1313

1414
<name>Titanium JSON-LD 1.1</name>
15-
15+
1616
<description>
1717
A JSON-LD 1.1 Processor &amp; API
1818
</description>
19-
19+
2020
<licenses>
2121
<license>
2222
<name>Apache License, Version 2.0</name>
2323
<url>http://apache.org/licenses/LICENSE-2.0</url>
2424
</license>
25-
</licenses>
26-
25+
</licenses>
26+
2727
<issueManagement>
2828
<system>github</system>
2929
<url>https://github.com/filip26/titanium-json-ld/issues</url>
3030
</issueManagement>
31-
31+
3232
<developers>
3333
<developer>
34-
<id>filip26</id>
35-
<name>Filip Kolarik</name>
36-
<email>[email protected]</email>
37-
<roles><role>author</role></roles>
34+
<id>filip26</id>
35+
<name>Filip Kolarik</name>
36+
<email>[email protected]</email>
37+
<roles><role>author</role></roles>
3838
</developer>
3939
</developers>
40-
40+
4141
<inceptionYear>2020</inceptionYear>
42-
42+
4343
<properties>
4444
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4545
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
46-
47-
<jakarta.json.version>2.0.1</jakarta.json.version>
46+
47+
<jakarta.json.version>2.0.1</jakarta.json.version>
4848

4949
<argLine>-Dfile.encoding=UTF-8</argLine>
5050

5151
<!-- test resources -->
5252
<junit.version>5.10.0</junit.version>
5353
<wiremock.version>2.35.0</wiremock.version>
54+
<jmh.version>1.36</jmh.version>
5455

5556
<sonar.projectKey>filip26_titanium-json-ld</sonar.projectKey>
5657
<sonar.organization>apicatalog</sonar.organization>
@@ -64,26 +65,38 @@
6465
<scope>provided</scope>
6566
</dependency>
6667
<!-- Tests -->
67-
<dependency>
68+
<dependency>
6869
<groupId>org.glassfish</groupId>
6970
<artifactId>jakarta.json</artifactId>
7071
<version>${jakarta.json.version}</version>
7172
<scope>test</scope>
72-
</dependency>
73-
<dependency>
74-
<groupId>org.junit.jupiter</groupId>
75-
<artifactId>junit-jupiter</artifactId>
73+
</dependency>
74+
<dependency>
75+
<groupId>org.junit.jupiter</groupId>
76+
<artifactId>junit-jupiter</artifactId>
7677
<version>${junit.version}</version>
77-
<scope>test</scope>
78-
</dependency>
78+
<scope>test</scope>
79+
</dependency>
7980
<dependency>
8081
<groupId>com.github.tomakehurst</groupId>
8182
<artifactId>wiremock-jre8</artifactId>
8283
<version>${wiremock.version}</version>
8384
<scope>test</scope>
8485
</dependency>
86+
<dependency>
87+
<groupId>org.openjdk.jmh</groupId>
88+
<artifactId>jmh-core</artifactId>
89+
<version>${jmh.version}</version>
90+
<scope>test</scope>
91+
</dependency>
92+
<dependency>
93+
<groupId>org.openjdk.jmh</groupId>
94+
<artifactId>jmh-generator-annprocess</artifactId>
95+
<version>${jmh.version}</version>
96+
<scope>test</scope>
97+
</dependency>
8598
</dependencies>
86-
<build>
99+
<build>
87100
<plugins>
88101
<plugin>
89102
<artifactId>maven-jar-plugin</artifactId>
@@ -109,7 +122,7 @@
109122
</configuration>
110123
</execution>
111124
</executions>
112-
</plugin>
125+
</plugin>
113126
<plugin>
114127
<groupId>org.apache.maven.plugins</groupId>
115128
<artifactId>maven-source-plugin</artifactId>
@@ -122,7 +135,7 @@
122135
</goals>
123136
</execution>
124137
</executions>
125-
</plugin>
138+
</plugin>
126139
<plugin>
127140
<groupId>org.apache.maven.plugins</groupId>
128141
<artifactId>maven-javadoc-plugin</artifactId>
@@ -135,7 +148,7 @@
135148
</goals>
136149
</execution>
137150
</executions>
138-
</plugin>
151+
</plugin>
139152
<plugin>
140153
<groupId>org.jacoco</groupId>
141154
<artifactId>jacoco-maven-plugin</artifactId>
@@ -155,84 +168,84 @@
155168
</goals>
156169
</execution>
157170
</executions>
158-
</plugin>
159-
<plugin>
160-
<groupId>org.codehaus.mojo</groupId>
161-
<artifactId>flatten-maven-plugin</artifactId>
162-
<version>1.5.0</version>
163-
<configuration>
164-
<flattenMode>oss</flattenMode>
165-
</configuration>
166-
<executions>
167-
<!-- enable flattening -->
168-
<execution>
169-
<id>flatten</id>
170-
<phase>process-resources</phase>
171-
<goals>
172-
<goal>flatten</goal>
173-
</goals>
174-
</execution>
175-
<!-- ensure proper cleanup -->
176-
<execution>
177-
<id>flatten.clean</id>
178-
<phase>clean</phase>
179-
<goals>
180-
<goal>clean</goal>
181-
</goals>
182-
</execution>
183-
</executions>
184-
</plugin>
185-
<plugin>
186-
<artifactId>maven-surefire-plugin</artifactId>
187-
<version>3.1.2</version>
188-
</plugin>
189-
<plugin>
190-
<artifactId>maven-failsafe-plugin</artifactId>
191-
<version>3.1.2</version>
192-
</plugin>
171+
</plugin>
172+
<plugin>
173+
<groupId>org.codehaus.mojo</groupId>
174+
<artifactId>flatten-maven-plugin</artifactId>
175+
<version>1.5.0</version>
176+
<configuration>
177+
<flattenMode>oss</flattenMode>
178+
</configuration>
179+
<executions>
180+
<!-- enable flattening -->
181+
<execution>
182+
<id>flatten</id>
183+
<phase>process-resources</phase>
184+
<goals>
185+
<goal>flatten</goal>
186+
</goals>
187+
</execution>
188+
<!-- ensure proper cleanup -->
189+
<execution>
190+
<id>flatten.clean</id>
191+
<phase>clean</phase>
192+
<goals>
193+
<goal>clean</goal>
194+
</goals>
195+
</execution>
196+
</executions>
197+
</plugin>
198+
<plugin>
199+
<artifactId>maven-surefire-plugin</artifactId>
200+
<version>3.1.2</version>
201+
</plugin>
202+
<plugin>
203+
<artifactId>maven-failsafe-plugin</artifactId>
204+
<version>3.1.2</version>
205+
</plugin>
193206
</plugins>
194207
</build>
195208
<profiles>
196209
<profile>
197210
<id>maven-central</id>
198-
<activation>
199-
<activeByDefault>false</activeByDefault>
200-
</activation>
201-
<build>
202-
<plugins>
203-
<plugin>
204-
<groupId>org.apache.maven.plugins</groupId>
205-
<artifactId>maven-gpg-plugin</artifactId>
206-
<version>3.1.0</version>
207-
<executions>
208-
<execution>
209-
<id>sign-artifacts</id>
210-
<phase>verify</phase>
211-
<goals>
212-
<goal>sign</goal>
213-
</goals>
214-
</execution>
215-
</executions>
216-
</plugin>
217-
<plugin>
218-
<groupId>org.sonatype.plugins</groupId>
219-
<artifactId>nexus-staging-maven-plugin</artifactId>
220-
<version>1.6.13</version>
221-
<extensions>true</extensions>
222-
<configuration>
223-
<serverId>ossrh</serverId>
224-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
225-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
226-
</configuration>
227-
</plugin>
228-
</plugins>
229-
</build>
230-
<distributionManagement>
231-
<snapshotRepository>
232-
<id>ossrh</id>
233-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
234-
</snapshotRepository>
235-
</distributionManagement>
236-
</profile>
211+
<activation>
212+
<activeByDefault>false</activeByDefault>
213+
</activation>
214+
<build>
215+
<plugins>
216+
<plugin>
217+
<groupId>org.apache.maven.plugins</groupId>
218+
<artifactId>maven-gpg-plugin</artifactId>
219+
<version>3.1.0</version>
220+
<executions>
221+
<execution>
222+
<id>sign-artifacts</id>
223+
<phase>verify</phase>
224+
<goals>
225+
<goal>sign</goal>
226+
</goals>
227+
</execution>
228+
</executions>
229+
</plugin>
230+
<plugin>
231+
<groupId>org.sonatype.plugins</groupId>
232+
<artifactId>nexus-staging-maven-plugin</artifactId>
233+
<version>1.6.13</version>
234+
<extensions>true</extensions>
235+
<configuration>
236+
<serverId>ossrh</serverId>
237+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
238+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
239+
</configuration>
240+
</plugin>
241+
</plugins>
242+
</build>
243+
<distributionManagement>
244+
<snapshotRepository>
245+
<id>ossrh</id>
246+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
247+
</snapshotRepository>
248+
</distributionManagement>
249+
</profile>
237250
</profiles>
238251
</project>

0 commit comments

Comments
 (0)