test jmeter benchmarking #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |