diff --git a/.github/workflows/Benchmark.yml b/.github/workflows/Benchmark.yml index 68ee742..0566a1f 100644 --- a/.github/workflows/Benchmark.yml +++ b/.github/workflows/Benchmark.yml @@ -5,6 +5,7 @@ on: paths: - "src/**" - "bench/**" + - "benchmark/**" - "Project.toml" - ".github/workflows/Benchmark.yml" workflow_dispatch: @@ -20,7 +21,12 @@ permissions: jobs: benchmark: - uses: "SciML/.github/.github/workflows/benchmark.yml@v1" - with: - julia-version: "1.11" - secrets: "inherit" + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - uses: MilesCranmer/AirspeedVelocity.jl@action-v1 + with: + julia-version: "1.11" + bench-on: ${{ github.event.pull_request.head.sha || github.sha }} + job-summary: "true" diff --git a/benchmark/benchmarks.jl b/benchmark/benchmarks.jl index 8aba939..3df81c9 100644 --- a/benchmark/benchmarks.jl +++ b/benchmark/benchmarks.jl @@ -55,7 +55,7 @@ let v = collect(Int64, 1:1024), x = Int64(500), hint = 480 ("Auto", Auto()), ] SUITE["per_query"][name] = @benchmarkable( - searchsortedlast($strategy, $v, $x, $hint), + searchsorted_last($strategy, $v, $x, $hint), evals = 1, samples = 200, ) end