-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
tune.json | ||
tune.json | ||
results.json | ||
report.md |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Select which benchmark suites to run | ||
const SELECTED_SUITES = nothing # set to `nothing` to run all suites | ||
# const SELECTED_SUITES = ["mttkrp"] | ||
|
||
# Load packages | ||
import Pkg | ||
Pkg.activate(@__DIR__) | ||
using GCPDecompositions, PkgBenchmark | ||
|
||
# Run benchmarks and save results | ||
results = | ||
isnothing(SELECTED_SUITES) ? benchmarkpkg(GCPDecompositions) : | ||
benchmarkpkg( | ||
GCPDecompositions, | ||
BenchmarkConfig(; env = Dict("GCP_BENCHMARK_SUITES" => join(SELECTED_SUITES, ' '))), | ||
) | ||
writeresults(joinpath(@__DIR__, "results.json"), results) | ||
|
||
# Generate report and save | ||
report = sprint(export_markdown, results) | ||
write(joinpath(@__DIR__, "report.md"), report) |