Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data driven performance results #62

Merged
merged 7 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 49 additions & 20 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,14 @@ jobs:
with:
gradle-home-cache-cleanup: true
- name: Extract implementation info
run: ./gradlew --quiet extractImplementations > implementations.json
run: ./gradlew --quiet extractImplementations
- name: Add results to step summary
run: cat implementations.json >> $GITHUB_STEP_SUMMARY
run: cat docs/_includes/implementations.json >> $GITHUB_STEP_SUMMARY
- name: Upload Implementations
uses: actions/upload-artifact@v3
with:
name: implementations
path: implementations.json
retention-days: 1
path: docs/_includes/*

run_functional:
runs-on: ubuntu-latest
Expand All @@ -61,18 +60,48 @@ jobs:
- name: Add results to step summary
run: |
echo "# Overall comparison" >> $GITHUB_STEP_SUMMARY
cat build/reports/creek/functional-summary.md >> $GITHUB_STEP_SUMMARY
cat docs/_includes/functional-summary.md >> $GITHUB_STEP_SUMMARY
echo "# Specific Draft & Implementation results" >> $GITHUB_STEP_SUMMARY
cat build/reports/creek/per-draft.md >> $GITHUB_STEP_SUMMARY
cat docs/_includes/per-draft.md >> $GITHUB_STEP_SUMMARY
- name: Upload Implementations
uses: actions/upload-artifact@v3
with:
name: functional-summary
path: build/reports/creek/*
retention-days: 1
name: functional
path: docs/_includes/*

run_performance:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up JDK
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3.13.0
with:
java-version: '17'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/gradle-build-action@842c587ad8aa4c68eeba24c396e15af4c2e9f30a # v2.9.0
with:
gradle-home-cache-cleanup: true
- if: github.event_name == 'pull_request'
name: Run performance smoke benchmarks
run: ./gradlew --quiet runBenchmarkSmokeTest
- if: github.event_name != 'pull_request'
name: Run performance benchmarks
run: ./gradlew --quiet runBenchmarks
- name: Add results to step summary
run: |
echo "# Json Validator Benchmark Results" >> $GITHUB_STEP_SUMMARY
cat docs/_includes/JsonValidateBenchmark.md >> $GITHUB_STEP_SUMMARY
echo "# Json Serde Benchmark Results" >> $GITHUB_STEP_SUMMARY
cat docs/_includes/JsonSerdeBenchmark.md >> $GITHUB_STEP_SUMMARY
- name: Upload Implementations
uses: actions/upload-artifact@v3
with:
name: performance
path: docs/_includes/*

build_pages:
needs: [get_impls, run_functional]
needs: [get_impls, run_functional, run_performance]
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/docs/Gemfile
Expand All @@ -90,22 +119,22 @@ jobs:
- name: Setup Pages
id: pages
uses: actions/configure-pages@f156874f8191504dae5b037505266ed5dda6c382 # v3.0.6
- name: Download Implementations JSON
- name: Download implementations
uses: actions/download-artifact@v3
with:
name: implementations
- name: Inject Implementations JSON into site
run: sed -i $'/IMPLEMENTATIONS_JSON/ { r implementations.json\nd }' docs/_docs/*
- name: Download Functional JSON
path: docs/_includes
- name: Download functional results
uses: actions/download-artifact@v3
with:
name: functional
path: docs/_includes
- name: Download performance results
uses: actions/download-artifact@v3
with:
name: functional-summary
- name: Inject Functional JSON into site
run: |
sed -i $'/FUNCTIONAL_SUMMARY_JSON/ { r functional-summary.json\nd }' docs/_docs/*
cat per-draft.md >> "docs/_docs/2. functional.md"
name: performance
path: docs/_includes
- name: Build with Jekyll
# Outputs to the './docs/_site' directory by default
run: (cd docs && bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}")
env:
JEKYLL_ENV: production
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/run-perf-test.yml

This file was deleted.

Loading