Skip to content

Commit

Permalink
move benchmark code into separate maven module
Browse files Browse the repository at this point in the history
  • Loading branch information
nitram509 committed Dec 26, 2015
1 parent 2c75cab commit bc979ad
Show file tree
Hide file tree
Showing 4 changed files with 189 additions and 13 deletions.
188 changes: 188 additions & 0 deletions jbrotli-performance/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.meteogroup.jbrotli</groupId>
<artifactId>jbrotli-parent</artifactId>
<version>0.2.0-SNAPSHOT</version>
</parent>

<artifactId>jbrotli-performance</artifactId>
<version>0.2.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jmh.version>1.11.2</jmh.version>
</properties>

<profiles>
<profile>
<id>win32-x86-amd64</id>
<activation>
<os>
<family>Windows</family>
<arch>amd64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>com.meteogroup.jbrotli</groupId>
<artifactId>jbrotli-native-win32-x86-64</artifactId>
<version>0.2.0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>

<profile>
<id>win32-x86</id>
<activation>
<os>
<family>Windows</family>
<arch>x86</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>com.meteogroup.jbrotli</groupId>
<artifactId>jbrotli-native-win32-x86</artifactId>
<version>0.2.0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>

<profile>
<id>darwin</id>
<activation>
<os>
<family>mac</family>
</os>
</activation>
<dependencies>
<dependency>
<groupId>com.meteogroup.jbrotli</groupId>
<artifactId>jbrotli-native-darwin</artifactId>
<version>0.2.0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>

<profile>
<id>linux-x86-amd64</id>
<activation>
<os>
<family>unix</family>
<arch>amd64</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>com.meteogroup.jbrotli</groupId>
<artifactId>jbrotli-native-linux-x86-64</artifactId>
<version>0.2.0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>

<profile>
<id>linux-x86</id>
<activation>
<os>
<family>unix</family>
<arch>x86</arch>
</os>
</activation>
<dependencies>
<dependency>
<groupId>com.meteogroup.jbrotli</groupId>
<artifactId>jbrotli-native-linux-x86</artifactId>
<version>0.2.0-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>

</profiles>

<dependencies>

<dependency>
<groupId>com.meteogroup.jbrotli</groupId>
<artifactId>jbrotli</artifactId>
<version>0.2.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.scijava</groupId>
<artifactId>native-lib-loader</artifactId>
</dependency>

<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
</dependency>

<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId>
<version>${jmh.version}</version>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<version>${jmh.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.2</version>
<configuration>
<!-- put your configurations here -->
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>com.meteogroup.jbrotli.performance.Brotli_vs_Gzip_Benchmark</Main-Class>
</manifestEntries>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
<comments>A business-friendly OSS license</comments>
</license>
</licenses>

</project>
13 changes: 0 additions & 13 deletions jbrotli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jmh.version>1.11.2</jmh.version>
</properties>

<profiles>
Expand Down Expand Up @@ -129,18 +128,6 @@
<artifactId>assertj-core</artifactId>
</dependency>

<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId>
<version>${jmh.version}</version>
<!--<scope>test</scope>-->
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<version>${jmh.version}</version>
<!--<scope>test</scope>-->
</dependency>
</dependencies>

<build>
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<modules>
<module>jbrotli</module>
<module>jbrotli-native</module>
<module>jbrotli-performance</module>
</modules>

<properties>
Expand Down

0 comments on commit bc979ad

Please sign in to comment.