Benchmark revamp + run benchmark as part of CI #2
Workflow file for this run
This file contains hidden or 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: Bench | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| name: Benchmarks | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.4' | |
| - name: Install dependencies | |
| run: bundle install | |
| - name: Generators benchmark | |
| run: bundle exec ruby benchmark/generators.rb | |
| - name: Load benchmark | |
| run: bundle exec ruby benchmark/load.rb | |
| - name: YML vs JSON benchmark | |
| run: bundle exec ruby benchmark/yml_vs_json.rb |