run entire load_plot_display in separate julia instance

This commit is contained in:
Ian 2021-01-24 15:21:23 -05:00
parent 0b8755db4b
commit 309f2db3b1

View File

@ -1,8 +1,11 @@
using BenchmarkTools using BenchmarkTools
const SUITE = BenchmarkGroup() const SUITE = BenchmarkGroup()
julia_cmd = get(ENV, "TESTCMD", Base.JLOptions().julia_bin)
# numbered to enforce sequence # 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["1_load"] = @benchmarkable @eval(using Plots)
SUITE["2_plot"] = @benchmarkable p = plot(1:0.1:10, sin.(1:0.1:10)) 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))) SUITE["3_display"] = @benchmarkable display(p) setup=(p = plot(1:0.1:10, sin.(1:0.1:10)))