From d92990a5f0515857d8f8e4944a113e41144dc89b Mon Sep 17 00:00:00 2001 From: Ian Date: Sun, 24 Jan 2021 16:04:27 -0500 Subject: [PATCH] tweaks to benchmarks order-insensitive --- benchmark/benchmarks.jl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/benchmark/benchmarks.jl b/benchmark/benchmarks.jl index 398bf50e..0689b22a 100644 --- a/benchmark/benchmarks.jl +++ b/benchmark/benchmarks.jl @@ -1,10 +1,10 @@ using BenchmarkTools +using Plots const SUITE = BenchmarkGroup() -julia_cmd = get(ENV, "TESTCMD", Base.JLOptions().julia_bin) +julia_cmd = split(get(ENV, "TESTCMD", Base.JLOptions().julia_bin)) -# numbered to enforce sequence -SUITE["1_load_plot_display"] = @benchmarkable run(`sh -c $("$julia_cmd --startup-file=no -e 'using Plots; display(plot(1:0.1:10, sin.(1:0.1:10))))'")`) -SUITE["2_load"] = @benchmarkable run(`sh -c $("$julia_cmd --startup-file=no -e 'using Plots'")`) -SUITE["3_plot"] = @benchmarkable p = plot(1:0.1:10, sin.(1:0.1:10)) setup(@eval(using Plots)) -SUITE["4_display"] = @benchmarkable display(p) setup=(@eval(using Plots); p = plot(1:0.1:10, sin.(1:0.1:10))) +SUITE["load_plot_display"] = @benchmarkable run(`$julia_cmd --startup-file=no --project -e 'using Plots; display(plot(1:0.1:10, sin.(1:0.1:10)))'`) +SUITE["load"] = @benchmarkable run(`$julia_cmd --startup-file=no --project -e 'using Plots'`) +SUITE["plot"] = @benchmarkable p = plot(1:0.1:10, sin.(1:0.1:10)) +SUITE["display"] = @benchmarkable display(p) setup=(p = plot(1:0.1:10, sin.(1:0.1:10)))