Skip to content

Commit

Permalink
Fix GH action, and fixup benchmark names
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed May 14, 2024
1 parent 4a5e543 commit 717f4b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/benchmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
if: ${{ env.hasBenchmark == '1' }}
run: |
cd Benchmarks
swift package --allow-writing-to-directory .benchmarkBaselines/ benchmark baseline update pull_request --filter "^(?\!Foundation).*"
swift package --allow-writing-to-directory .benchmarkBaselines/ benchmark baseline update pull_request --filter "^(?!Foundation).*"
- name: Switch to branch 'main'
if: ${{ env.hasBenchmark == '1' }}
run: |
Expand All @@ -56,7 +56,7 @@ jobs:
if: ${{ env.hasBenchmark == '1' }}
run: |
cd Benchmarks
swift package --allow-writing-to-directory .benchmarkBaselines/ benchmark baseline update main --filter "^(?\!Foundation).*"
swift package --allow-writing-to-directory .benchmarkBaselines/ benchmark baseline update main --filter "^(?!Foundation).*"
- name: Compare PR and main
if: ${{ env.hasBenchmark == '1' }}
id: benchmark
Expand Down
4 changes: 2 additions & 2 deletions Benchmarks/Benchmarks/BaseN/BaseN.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ let benchmarks = {
benchmark.startMeasurement()

for _ in benchmark.scaledIterations {
blackHole(Data(base64Encoded: base64, options: .ignoreUnknownCharacters))
blackHole(Data(base64Encoded: base64))
}
}

Expand All @@ -95,7 +95,7 @@ let benchmarks = {
benchmark.startMeasurement()

for _ in benchmark.scaledIterations {
blackHole(Data(base64Encoded: base64))
blackHole(Data(base64Encoded: base64, options: .ignoreUnknownCharacters))
}
}
}

0 comments on commit 717f4b0

Please sign in to comment.