File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737 unzip -j flatc.zip flatc
3838 sudo install -m 755 flatc /usr/local/bin/flatc
3939
40- - name : Build
41- run : ./mvnw compile -pl performance -am -DskipTests -q
42-
4340 - name : Run benchmarks
44- run : ./mvnw exec:exec -pl performance -am -DskipTests
41+ run : ./bench
4542
4643 - name : Store benchmark results
4744 uses : benchmark-action/github-action-benchmark@v1
Original file line number Diff line number Diff line change @@ -47,13 +47,13 @@ Never use `mvn install` or `./mvwn install`.
4747./mvnw verify -pl integration -am -Dit.test=" RustWritesJavaReadsIntegrationTest#s3_pcoVortex_javaDecodeMatchesJni"
4848
4949# Run all benchmarks
50- ./mvnw compile -pl performance -am -DskipTests -q && ./mvnw exec:exec -pl performance -DskipTests
50+ ./bench
5151
5252# Run specific benchmark class
53- ./mvnw compile -pl performance -am -DskipTests -q && ./mvnw exec:exec -pl performance -DskipTests -Dbenchmark= RustVsJavaReadBenchmark
53+ ./bench RustVsJavaReadBenchmark
5454
5555# Run specific benchmark method (always use ClassName.methodName filter)
56- ./mvnw compile -pl performance -am -DskipTests -q && ./mvnw exec:exec -pl performance -DskipTests -Dbenchmark= RustVsJavaReadBenchmark.javaReadVolume
56+ ./bench RustVsJavaReadBenchmark.javaReadVolume
5757```
5858
5959### File format
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -euo pipefail
3+ ./mvnw compile -pl performance -am -DskipTests -q
4+ ./mvnw exec:exec -pl performance -am -DskipTests ${1: +-Dbenchmark=" $1 " }
Original file line number Diff line number Diff line change 8181 </annotationProcessorPaths >
8282 </configuration >
8383 </plugin >
84- <!-- Run benchmarks: ./mvnw compile -pl performance -am -DskipTests -q && ./mvnw exec:exec -pl performance -DskipTests [-Dexec.args ="ClassName.methodName"] -->
84+ <!-- Run benchmarks: ./mvnw compile -pl performance -am -DskipTests -q && ./mvnw exec:exec -pl performance -am - DskipTests [-Dbenchmark ="ClassName.methodName"] -->
8585 <plugin >
8686 <groupId >org.codehaus.mojo</groupId >
8787 <artifactId >exec-maven-plugin</artifactId >
8888 <configuration >
89+ <skip >false</skip >
8990 <executable >java</executable >
9091 <arguments >
9192 <argument >--add-opens</argument >
Original file line number Diff line number Diff line change 169169 <groupId >org.codehaus.mojo</groupId >
170170 <artifactId >exec-maven-plugin</artifactId >
171171 <version >3.5.0</version >
172+ <configuration >
173+ <skip >true</skip >
174+ <executable >java</executable >
175+ </configuration >
172176 </plugin >
173177 <plugin >
174178 <groupId >org.apache.maven.plugins</groupId >
You can’t perform that action at this time.
0 commit comments