diff --git a/benchmarks/pom.xml b/benchmarks/pom.xml new file mode 100644 index 00000000..32f71391 --- /dev/null +++ b/benchmarks/pom.xml @@ -0,0 +1,90 @@ + + + 4.0.0 + + logorrr + app.logorrr + ${revision}${changelist} + + + benchmarks + jar + + JMH benchmarks for LogoRRR + + + + app.logorrr + app + + + org.openjdk.jmh + jmh-core + ${jmh.version} + + + org.openjdk.jmh + jmh-generator-annprocess + ${jmh.version} + provided + + + + + UTF-8 + 1.37 + 1.8 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.0 + + ${javac.target} + ${javac.target} + ${javac.target} + + + + org.apache.maven.plugins + maven-shade-plugin + 3.2.1 + + + package + + shade + + + benchmarks + + + org.openjdk.jmh.Main + + + + + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + + + + + + + + + diff --git a/benchmarks/run-benchmarks.sh b/benchmarks/run-benchmarks.sh new file mode 100644 index 00000000..1d4c9f49 --- /dev/null +++ b/benchmarks/run-benchmarks.sh @@ -0,0 +1 @@ +mvn clean verify; java -jar target/benchmarks.jar diff --git a/benchmarks/src/main/java/app/logorrr/LogoRRRBenchmark.java b/benchmarks/src/main/java/app/logorrr/LogoRRRBenchmark.java new file mode 100644 index 00000000..f4fdf2b2 --- /dev/null +++ b/benchmarks/src/main/java/app/logorrr/LogoRRRBenchmark.java @@ -0,0 +1,15 @@ +package app.logorrr; + +import org.openjdk.jmh.annotations.*; + +@State(Scope.Thread) +@Warmup(iterations = 2, time = 1) +@Measurement(iterations = 3, time = 1) +@Fork(1) +public class LogoRRRBenchmark { + + @Benchmark + public void testExample() { + } + +} diff --git a/pom.xml b/pom.xml index d476d7b6..b66b74fe 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,5 @@ - + + 4.0.0 app.logorrr logorrr @@ -7,28 +7,21 @@ app.logorrr LogoRRR - the log visualisation tool pom - - - - + /path/to/jdk (mac, linux, windows) + /path/to/graalvm (mac, linux, windows) + /path/to/aarch64/jdk (mac) + --> 24.3.0 - 2.13 ${scala.major.version}.12 - 21.0.1 0.0.8 12.3.1 1.0.18 - -SNAPSHOT UTF-8 @@ -37,14 +30,13 @@ ${project.build.directory}/graal.log ${jdk.home}/bin/jlink ${jdk.home}/bin/jpackage + 1.33 - scm:git:https://github.com/rladstaetter/LogoRRR.git scm:git:https://github.com/rladstaetter/LogoRRR.git HEAD - OS.windows @@ -56,8 +48,8 @@ + C:\Program Files\Java\graalvm-svm-java11-windows-gluon-22.1.0.1-Final + --> windows @@ -111,13 +103,13 @@ + + graalvm.home + You have to set 'graalvm.home' and point to a correct graalvm + installation. + + + --> osx.jdk.home.aarch64 You have to set 'osx.jdk.home.aarch64' and it must point to a @@ -147,8 +139,13 @@ env + + benchmarks + + benchmarks + + - core build @@ -156,7 +153,6 @@ dist docs - @@ -244,6 +240,17 @@ dist-repackaged ${project.version} + + org.openjdk.jmh + jmh-core + ${jmh.version} + + + org.openjdk.jmh + jmh-generator-annprocess + ${jmh.version} + provided + @@ -321,7 +328,6 @@ -Werror - org.codehaus.mojo @@ -464,18 +470,18 @@ + + graalvm.home + You have to set 'graalvm.home' and point to a correct graalvm + installation. + + + + + ${graalvm.home}/GRAALVM-README.md + + + --> jdk.home You have to set 'jdk.home' and point to a correct jdk @@ -520,6 +526,19 @@ download-maven-plugin 1.6.8 + + org.openjdk.jmh + jmh-maven-plugin + ${jmh.version} + + + + clean + test + + + +