Skip to content
Permalink
Browse files
Refactor to move microbenchmark to a separate module
  • Loading branch information
jeanouii committed Sep 28, 2020
1 parent c57549a commit 29e2905d6027a525860178f93d541bb443a1f257
Showing 4 changed files with 99 additions and 26 deletions.
@@ -269,31 +269,6 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>6.1.5.Final</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId>
<version>1.25.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<version>1.25.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.biboudis</groupId>
<artifactId>jmh-profilers</artifactId>
<version>0.1.4</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to you under the Apache License, Version
2.0 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 Unless required by
applicable law or agreed to in writing, software distributed under the
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for
the specific language governing permissions and limitations under the
License.
-->
<!--
Maven release plugin requires the project tag to be on a single line.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache.bval</groupId>
<artifactId>bval-parent</artifactId>
<version>2.0.5-SNAPSHOT</version>
</parent>

<artifactId>bval-perf</artifactId>
<name>Apache BVal :: bval-perf</name>
<packaging>jar</packaging>

<description>Some small micro benchmarks</description>

<dependencies>

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>bval-jsr</artifactId>
<version>${project.version}</version>
</dependency>

<!-- Testing dependencies -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>bval-jsr</artifactId>
<version>${project.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>6.1.5.Final</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId>
<version>1.25.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<version>1.25.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.biboudis</groupId>
<artifactId>jmh-profilers</artifactId>
<version>0.1.4</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>9</source>
<target>9</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
@@ -27,7 +27,6 @@
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.profile.JavaFlightRecorderProfiler;
import org.openjdk.jmh.profile.Profiler;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
@@ -756,6 +756,7 @@
<module>bval-extras</module>
<module>bval-tck</module>
<module>bundle</module>
<module>bval-perf</module>
</modules>

</project>

0 comments on commit 29e2905

Please sign in to comment.