From ef455858a762c421c1e0453936a09b04f53c7bb6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 4 Jul 2024 17:59:25 +0200 Subject: [PATCH] :robot: Format .jl files (#260) Co-authored-by: tmigot --- benchmark/run_analyzer.jl | 7 ++----- benchmark/run_local.jl | 4 ++-- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/benchmark/run_analyzer.jl b/benchmark/run_analyzer.jl index adbe5328..6d3f254c 100644 --- a/benchmark/run_analyzer.jl +++ b/benchmark/run_analyzer.jl @@ -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 @@ -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] diff --git a/benchmark/run_local.jl b/benchmark/run_local.jl index b62a7404..b8518311 100644 --- a/benchmark/run_local.jl +++ b/benchmark/run_local.jl @@ -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" @@ -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