Skip to content

Commit

Permalink
Fix error and minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
albertomercurio committed May 4, 2024
1 parent 8867987 commit 612a435
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/Benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ jobs:
Pkg.instantiate();
include("runbenchmarks.jl")'
- name: Store benchmark result
- name: Parse & Upload Benchmark Results
uses: benchmark-action/github-action-benchmark@v1
with:
name: Julia benchmark result
name: Benchmark results
tool: "julia"
output-file-path: benchmarks/benchmarks_output.json
summary-always: true
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: ${{ github.event_name != 'pull_request' }}
# Show alert with commit comment on detecting possible performance regression
comment-always: true
alert-threshold: "200%"
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: "@ktrz,@findmyway"
benchmark-data-dir-path: benchmarks
auto-push: ${{ github.event_name != 'pull_request' }}
1 change: 1 addition & 0 deletions benchmarks/Project.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[deps]
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
QuantumToolbox = "6c2fb7c5-b903-41d2-bc5e-5a7c320b9fab"
5 changes: 3 additions & 2 deletions benchmarks/runbenchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ suite["steadystate"]["driven-dissipative harmonic oscillator"] = @benchmarkable
## end ##


tune!(suite)
BenchmarkTools.tune!(suite)
results = run(suite, verbose = true)
display(median(results))

BenchmarkTools.save("benchmarks_output.json", mean(results))
BenchmarkTools.save(joinpath(@__DIR__, "benchmarks_output.json"), median(results))

0 comments on commit 612a435

Please sign in to comment.