Skip to content

test jmeter benchmarking #19

test jmeter benchmarking

test jmeter benchmarking #19

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