From 4751f9f957233a6b33e6c90592f78eb5f685f20c Mon Sep 17 00:00:00 2001 From: Fabio Lima Date: Sat, 14 Oct 2023 20:07:04 -0300 Subject: [PATCH 1/7] feature_github_workflow_benchmark --- .github/workflows/benchmark.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/benchmark.yml diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/.github/workflows/benchmark.yml @@ -0,0 +1 @@ + From 61ad2c76b66e9e444b5ea71e7aea71240f62b117 Mon Sep 17 00:00:00 2001 From: Fabio Lima Date: Sat, 14 Oct 2023 20:10:38 -0300 Subject: [PATCH 2/7] Update benchmark.yml --- .github/workflows/benchmark.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 8b137891..6cf940bc 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -1 +1,29 @@ +name: Benchmark with JMH + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + java_version: ['8'] + os: ['ubuntu-22.04'] + + steps: + - name: Checkout on ${{ matrix.os }} + uses: actions/checkout@v3 + - name: Set up JDK ${{ matrix.java_version }} + uses: actions/setup-java@v3 + with: + java-version: ${{ matrix.java_version }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: benchmark/run.sh From e3728ebfca1d4588ae92a841ff5660161f402201 Mon Sep 17 00:00:00 2001 From: Fabio Lima Date: Sat, 14 Oct 2023 20:25:25 -0300 Subject: [PATCH 3/7] Update benchmark.yml --- .github/workflows/benchmark.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 6cf940bc..c50637f7 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -25,5 +25,5 @@ jobs: java-version: ${{ matrix.java_version }} distribution: 'temurin' cache: maven - - name: Build with Maven + - name: Run Benchmark run: benchmark/run.sh From ddd1f626585002bcb0d081b27db3a3bcc7c1f527 Mon Sep 17 00:00:00 2001 From: Fabio Lima Date: Sat, 14 Oct 2023 20:33:21 -0300 Subject: [PATCH 4/7] Update maven.yml --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 419e8caf..05c2cec6 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -15,7 +15,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - java_version: ['8', '11', '17'] + java_version: ['8', '17'] os: ['ubuntu-22.04', 'windows-2022', 'macos-12'] steps: From 95196de74accdc82d1793be24e7ef2d268b389b7 Mon Sep 17 00:00:00 2001 From: Fabio Lima Date: Sat, 14 Oct 2023 20:33:31 -0300 Subject: [PATCH 5/7] Update run.sh --- benchmark/run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmark/run.sh b/benchmark/run.sh index 2f4f273a..c48822e0 100755 --- a/benchmark/run.sh +++ b/benchmark/run.sh @@ -9,7 +9,7 @@ SCRIPT_DIR=$(dirname "$0") cd "${SCRIPT_DIR}/.." # compile the parent project -mvn clean install -DskipTests +mvn --batch-mode --quiet --fail-fast clean install -DskipTests # create a copy with the expected name cp "${PWD}/target/${ARTIFACT_ID}"-*-SNAPSHOT.jar "${PWD}/target/${ARTIFACT_ID}"-0.0.1-BENCHMARK.jar @@ -18,8 +18,8 @@ cp "${PWD}/target/${ARTIFACT_ID}"-*-SNAPSHOT.jar "${PWD}/target/${ARTIFACT_ID}"- cd benchmark # compile the benchmark project -mvn validate -mvn clean install +mvn --batch-mode --quiet --fail-fast validate +mvn --batch-mode --quiet --fail-fast clean install # run the benchmark java -jar target/benchmarks.jar From bbf887a2854b51d337cf2d4ac5f70e46d5115f34 Mon Sep 17 00:00:00 2001 From: Fabio Lima Date: Sat, 14 Oct 2023 21:01:32 -0300 Subject: [PATCH 6/7] Update maven.yml --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 05c2cec6..d58bccc9 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -15,7 +15,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - java_version: ['8', '17'] + java_version: ['8', '21'] os: ['ubuntu-22.04', 'windows-2022', 'macos-12'] steps: From 81e6922d1eaa12dc164fe03d52ff2425cf7a9376 Mon Sep 17 00:00:00 2001 From: Fabio Lima Date: Sat, 14 Oct 2023 21:02:01 -0300 Subject: [PATCH 7/7] Update benchmark.yml --- .github/workflows/benchmark.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index c50637f7..462941a6 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -13,7 +13,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - java_version: ['8'] + java_version: ['8', '21'] os: ['ubuntu-22.04'] steps: