Skip to content

test jmeter benchmarking #17

test jmeter benchmarking

test jmeter benchmarking #17

name: JMH Benchmark
on:
push:
pull_request:
branches:
- main
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
- name: Run JMH Benchmark
run: |
javac benchmark.java && java -jar target/benchmarks.jar
- name: Save Benchmark Results
run: |
cp path/to/generated/benchmark-results.json benchmark-results.json
- name: Display Benchmark Results
run: cat benchmark-results.json
- name: Continuous Benchmark
uses: benchmark-action/[email protected]
with:
tool: jmh
output-file-path: benchmark-results.json