From 8a908c0de82e6865c608ed46afbc678e6153980d Mon Sep 17 00:00:00 2001 From: Ian Date: Sun, 24 Jan 2021 15:54:18 -0500 Subject: [PATCH] do load test in separate session --- benchmark/benchmarks.jl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/benchmark/benchmarks.jl b/benchmark/benchmarks.jl index 4a478286..398bf50e 100644 --- a/benchmark/benchmarks.jl +++ b/benchmark/benchmarks.jl @@ -5,7 +5,6 @@ julia_cmd = 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 @eval(using Plots) -SUITE["3_plot"] = @benchmarkable p = plot(1:0.1:10, sin.(1:0.1:10)) -SUITE["4_display"] = @benchmarkable display(p) setup=(p = 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)))