Skip to content

Commit

Permalink
🤖 Format .jl files (#260)
Browse files Browse the repository at this point in the history
Co-authored-by: tmigot <[email protected]>
  • Loading branch information
github-actions[bot] and tmigot authored Jul 4, 2024
1 parent 672a9a1 commit ef45585
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions benchmark/run_analyzer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function bg_to_df(bench::BenchmarkGroup)
[median(bench[solver][pb]).time for pb in problems],
[median(bench[solver][pb]).memory for pb in problems],
],
[:median_time, :median_memory]
[:median_time, :median_memory],
)
end
return dfT
Expand All @@ -53,10 +53,7 @@ end
using SolverBenchmark, BenchmarkProfiles

# b::BenchmarkProfiles.AbstractBackend = PlotsBackend()
costs =[
df -> df.median_time,
df -> df.median_memory,
]
costs = [df -> df.median_time, df -> df.median_memory]
costnames = ["median time", "median memory"]
for key_benchmark in keys(df_results)
stats = df_results[key_benchmark]
Expand Down
4 changes: 2 additions & 2 deletions benchmark/run_local.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ end
if !skip_tune
@time with_logger(ConsoleLogger(Error)) do
tune!(SUITE)
BenchmarkTools.save("params.json", params(suite));
BenchmarkTools.save("params.json", params(suite))
end
else
@info "Skip tuning"
Expand All @@ -35,7 +35,7 @@ end
@info "RUN"
@time result = with_logger(ConsoleLogger(Error)) do # remove warnings
if "params.json" in (path == "" ? readdir() : readdir(path))
loadparams!(suite, BenchmarkTools.load("params.json")[1], :evals, :samples);
loadparams!(suite, BenchmarkTools.load("params.json")[1], :evals, :samples)
end
run(SUITE, verbose = true)
end
Expand Down

0 comments on commit ef45585

Please sign in to comment.