From 309f2db3b14802fc3beffe239528cee247dd3a63 Mon Sep 17 00:00:00 2001 From: Ian Date: Sun, 24 Jan 2021 15:21:23 -0500 Subject: [PATCH] run entire load_plot_display in separate julia instance --- benchmark/benchmarks.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/benchmark/benchmarks.jl b/benchmark/benchmarks.jl index b4994a6c..1f8f9b61 100644 --- a/benchmark/benchmarks.jl +++ b/benchmark/benchmarks.jl @@ -1,8 +1,11 @@ using BenchmarkTools const SUITE = BenchmarkGroup() +julia_cmd = get(ENV, "TESTCMD", Base.JLOptions().julia_bin) # numbered to enforce sequence +SUITE["0_load_plot_display"] = @benchmarkable run(`$(julia_cmd) -e "using Plots; display(plot(1:0.1:10, sin.(1:0.1:10))))"`) + SUITE["1_load"] = @benchmarkable @eval(using Plots) SUITE["2_plot"] = @benchmarkable p = plot(1:0.1:10, sin.(1:0.1:10)) SUITE["3_display"] = @benchmarkable display(p) setup=(p = plot(1:0.1:10, sin.(1:0.1:10)))