Skip to content

fix: benchmarks

fix: benchmarks #4

Workflow file for this run

name: Performance Benchmark
defaults:
run:
shell: bash
env:
DOTNET_VERSION: '8.0.x'
on:
push:
branches: [ "add-performance-benchmark-with-efcore" ]
release:
types: [ published ]
workflow_dispatch:
jobs:
benchmark-mysql:
name: MySQL Benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Load .env file
uses: xom9ikk/[email protected]
with:
load-mode: strict
- name: Docker compose
uses: hoverkraft-tech/[email protected]
with:
services: mysqldb
- name: Run Benchmark
run: ./benchmark/scripts/run_benchmark_for_db.sh mysql
benchmark-postgresql:
name: PostgreSQL Benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Load .env file
uses: xom9ikk/[email protected]
with:
load-mode: strict
- name: Docker compose
uses: hoverkraft-tech/[email protected]
with:
services: postgresdb
- name: Run Benchmark
run: ./benchmark/scripts/run_benchmark_for_db.sh postgresql
benchmark-sqlite:
name: SQLite Benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Load .env file
uses: xom9ikk/[email protected]
with:
load-mode: strict
- name: Run Benchmark
run: ./benchmark/scripts/run_benchmark_for_db.sh sqlite