From f13a0c23ed49d100c46f8b607fd7a9b25d4dc129 Mon Sep 17 00:00:00 2001 From: Fabio Lima Date: Sat, 18 Sep 2021 02:59:58 -0300 Subject: [PATCH 1/2] Update README.md --- benchmark/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/benchmark/README.md b/benchmark/README.md index 509c1a0..d79ce34 100644 --- a/benchmark/README.md +++ b/benchmark/README.md @@ -1,4 +1,2 @@ To execute the benchmark, run the script `./benchmark/run.sh`. - -Sorry, there is no `run.bat` file for Windows at this time. From 559a4a52594529d1eb86c84830702a863903cc58 Mon Sep 17 00:00:00 2001 From: Fabio Lima Date: Sat, 18 Sep 2021 03:00:50 -0300 Subject: [PATCH 2/2] Create file 'benchmark/run.bat' --- benchmark/run.bat | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 benchmark/run.bat diff --git a/benchmark/run.bat b/benchmark/run.bat new file mode 100644 index 0000000..beb63a8 --- /dev/null +++ b/benchmark/run.bat @@ -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