This is an automated email from the ASF dual-hosted git repository.
dlmarion pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo-access.git
The following commit(s) were added to refs/heads/main by this push:
new 3dc1839 Added profile to run benchmark (#75)
3dc1839 is described below
commit 3dc1839a309834283c16ba13f4b01c0ea74dc281
Author: Dave Marion <[email protected]>
AuthorDate: Mon Jul 8 14:52:06 2024 -0400
Added profile to run benchmark (#75)
related to #54
---
README.md | 3 +--
pom.xml | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 35 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 7b87bb5..5c24fb6 100644
--- a/README.md
+++ b/README.md
@@ -73,8 +73,7 @@ For an ANTLRv4 example, see antlr-example integration test's
This project includes a JMH Benchmark. To run it:
```
-mvn clean package
-mvn exec:exec -Dexec.executable="java" -Dexec.classpathScope=test
-Dexec.args="-classpath %classpath
org.apache.accumulo.access.AccessExpressionBenchmark"
+mvn clean verify -Pbenchmark"
```
[1]:
https://github.com/apache/accumulo/blob/rel/2.1.2/core/src/main/java/org/apache/accumulo/core/security/ColumnVisibility.java
diff --git a/pom.xml b/pom.xml
index f4ecfe7..32884e9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -752,5 +752,39 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>benchmark</id>
+ <activation>
+ <property>
+ <name>benchmark</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>3.3.0</version>
+ <configuration>
+ <classpathScope>test</classpathScope>
+ <executable>java</executable>
+ <arguments>
+ <argument>-classpath</argument>
+ <classpath />
+
<argument>org.apache.accumulo.access.AccessExpressionBenchmark</argument>
+ </arguments>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <phase>verify</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>