Create file 'benchmark/run.bat'

This commit is contained in:
Fabio Lima 2021-09-18 03:00:50 -03:00 committed by GitHub
parent f13a0c23ed
commit 559a4a5259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

23
benchmark/run.bat Normal file
View File

@ -0,0 +1,23 @@
@ECHO OFF
REM go to the parent folder
CD .\..
REM compile the parent project
CALL mvn clean install
REM create a copy with the expected name
XCOPY /Y target\ulid-creator-*-SNAPSHOT.jar target\ulid-creator-0.0.1-BENCHMARK.jar*
REM go to the benchmark folder
CD benchmark
REM compile the benchmark project
CALL mvn validate
CALL mvn clean install
REM run the benchmark
CALL java -jar target/benchmarks.jar
@ECHO ON