<?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/maven-v4_0_0.xsd"> <parent> <artifactId>zstd-parent</artifactId> <groupId>io.github.dfa1.zstd</groupId> <version>0.1</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>zstd-benchmark</artifactId> <name>zstd-benchmark</name> <description>JMH microbenchmarks: zstd-java (byte[] vs MemorySegment) against zstd-jni (JNI) and aircompressor (pure Java). Not published; not part of a release.</description> <build> <finalName>benchmarks</finalName> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <annotationProcessorPaths> <path> <groupId>org.openjdk.jmh</groupId> <artifactId>jmh-generator-annprocess</artifactId> <version>${jmh.version}</version> </path> </annotationProcessorPaths> </configuration> </plugin> <plugin> <artifactId>maven-shade-plugin</artifactId> <version>3.6.0</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <transformers> <transformer> <mainClass>org.openjdk.jmh.Main</mainClass> </transformer> <transformer /> </transformers> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude> </excludes> </filter> </filters> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>native-osx-aarch64</id> <dependencies> <dependency> <groupId>io.github.dfa1.zstd</groupId> <artifactId>zstd-native-osx-aarch64</artifactId> <version>${project.version}</version> <scope>runtime</scope> </dependency> </dependencies> </profile> <profile> <id>native-osx-x86_64</id> <dependencies> <dependency> <groupId>io.github.dfa1.zstd</groupId> <artifactId>zstd-native-osx-x86_64</artifactId> <version>${project.version}</version> <scope>runtime</scope> </dependency> </dependencies> </profile> <profile> <id>native-linux-x86_64</id> <dependencies> <dependency> <groupId>io.github.dfa1.zstd</groupId> <artifactId>zstd-native-linux-x86_64</artifactId> <version>${project.version}</version> <scope>runtime</scope> </dependency> </dependencies> </profile> <profile> <id>native-linux-aarch64</id> <dependencies> <dependency> <groupId>io.github.dfa1.zstd</groupId> <artifactId>zstd-native-linux-aarch64</artifactId> <version>${project.version}</version> <scope>runtime</scope> </dependency> </dependencies> </profile> <profile> <id>native-windows-x86_64</id> <dependencies> <dependency> <groupId>io.github.dfa1.zstd</groupId> <artifactId>zstd-native-windows-x86_64</artifactId> <version>${project.version}</version> <scope>runtime</scope> </dependency> </dependencies> </profile> <profile> <id>native-windows-aarch64</id> <dependencies> <dependency> <groupId>io.github.dfa1.zstd</groupId> <artifactId>zstd-native-windows-aarch64</artifactId> <version>${project.version}</version> <scope>runtime</scope> </dependency> </dependencies> </profile> </profiles> <dependencies> <dependency> <groupId>org.openjdk.jmh</groupId> <artifactId>jmh-generator-annprocess</artifactId> <version>1.37</version> <scope>provided</scope> </dependency> </dependencies> <properties> <jmh.version>1.37</jmh.version> <zstd-jni.version>1.5.7-11</zstd-jni.version> <maven.deploy.skip>true</maven.deploy.skip> <aircompressor.version>3.6</aircompressor.version> <maven.javadoc.skip>true</maven.javadoc.skip> </properties> </project>
<dependency> <groupId>io.github.dfa1.zstd</groupId> <artifactId>zstd-benchmark</artifactId> <version>0.1</version> </dependency>
io.github.dfa1.zstd:zstd-benchmark:0.1