ALTER TABLE votes ADD INDEX idx_votes_candidate_and_count (candidate_… #141
Workflow file for this run
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: Benchmark | |
on: | |
workflow_dispatch: | |
push: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.sha }} | |
cancel-in-progress: true | |
jobs: | |
benchmark: | |
name: Run benchmark | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
strategy: | |
fail-fast: false | |
matrix: | |
language: | |
# - "crystal" | |
# - "go" | |
# - "nodejs" | |
# - "php" | |
# - "python" | |
- "ruby" | |
env: | |
ISHOCON_APP_LANG: ${{ matrix.language }} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: make change-lang LANG=$ISHOCON_APP_LANG | |
- uses: docker/setup-buildx-action@v3 | |
- uses: docker/build-push-action@v5.1.0 | |
with: | |
context: . | |
file: ./docker/app/${{ env.ISHOCON_APP_LANG }}/Dockerfile | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
tags: ${{ github.actor }}/ishocon2-app-${{ env.ISHOCON_APP_LANG }}:latest | |
- run: make build | |
timeout-minutes: 5 | |
- run: make up bench-with-db-init | |
timeout-minutes: 10 |