Skip to content

Update README document links #2066

Update README document links

Update README document links #2066

Workflow file for this run

name: Run benchmark
on:
push:
branches: [ main, '[0-9]*.[0-9]*.x' ]
paths-ignore:
- 'docs/**'
pull_request:
branches: [ main, '[0-9]*.[0-9]*.x' ]
paths-ignore:
- 'docs/**'
workflow_dispatch:
jobs:
jmh:
name: Run benchmark
runs-on: ubuntu-latest
strategy:
matrix:
benchmark-module:
- 'fixture-monkey-benchmark'
- 'fixture-monkey-benchmark-kotlin'
steps:
- uses: actions/checkout@v2
- name: Execute benchmark for ${{ matrix.benchmark-module }}
uses: gradle/gradle-build-action@v2.4.2
with:
arguments: :fixture-monkey-benchmarks:${{ matrix.benchmark-module }}:jmh -Pjmh.quick
- name: Upload benchmark results
uses: actions/upload-artifact@v4
with:
name: benchmark-results-${{ matrix.benchmark-module }}
path: ./fixture-monkey-benchmarks/${{ matrix.benchmark-module }}/build/results/jmh/results.csv
merge-results:
name: Merge benchmark results
needs: jmh
runs-on: ubuntu-latest
steps:
- name: Download all benchmark results
uses: actions/download-artifact@v4
with:
path: ./benchmark-results
- name: Merge benchmark results
id: merge
run: |
echo "" > merged_results.csv
find ./benchmark-results -name 'results.csv' | while read line; do
cat "$line" >> merged_results.csv
echo "" >> merged_results.csv
done
cat merged_results.csv
- name: Read merged benchmark result
id: csv
uses: juliangruber/read-file-action@v1
with:
path: merged_results.csv
- name: Create Markdown table
uses: petems/csv-to-md-table-action@master
id: csv-table-output
with:
csvinput: ${{ steps.csv.outputs.content }}
- name: Print benchmark summary
run: echo "${{steps.csv-table-output.outputs.markdown-table}}" >> $GITHUB_STEP_SUMMARY