Reduced some dictionary double-lookups #253
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: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [macos-12] | |
dotnet: [6.0.200] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ matrix.dotnet }} | |
- name: MacOS workaround | |
if: runner.os == 'macOS' | |
run: | | |
# https://github.com/actions/runner-images/issues/5768#issuecomment-1162684820 | |
rm -rf ~/.config/NuGet/nuGet.config | |
dotnet nuget list source | |
- name: Install wrk | |
run: brew install wrk | |
- name: Restore tools | |
run: dotnet tool restore | |
- name: Restore packages | |
run: dotnet paket restore | |
- name: Run benchmark | |
run: cd benchmark && ./test.sh |