FYI: Second plot speed is much better as expected (with fewer allocations), but only third plot has fewest allocations, and expected speed.
I wouldn't say this is an "issue", just an observation on non-master. I've only heard of "first-plot issues". I wander about the reason and if it applies to other (plotting) packages and master here. I've always relied on benchmarking code after running ONCE. It may not be about your package, rather julia (1.5)?
julia> @time using Gaston
0.644211 seconds (1.04 M allocations: 53.019 MiB, 1.17% gc time)
julia> @time plot(randn(10^6),randn(10^6))
0.377701 seconds (144.02 k allocations: 22.743 MiB, 1.71% gc time)
julia> @time plot(randn(10^6),randn(10^6))
0.179409 seconds (53.69 k allocations: 17.984 MiB, 4.22% gc time)
julia> @time plot(randn(10^6),randn(10^6))
0.047522 seconds (33 allocations: 15.261 MiB, 3.09% gc time)
julia> @time plot(randn(10^6),randn(10^6))
0.043855 seconds (33 allocations: 15.261 MiB, 3.35% gc time)
It seems I ruled out issue with Julia itself or @time.
FYI: Second plot speed is much better as expected (with fewer allocations), but only third plot has fewest allocations, and expected speed.
I wouldn't say this is an "issue", just an observation on non-master. I've only heard of "first-plot issues". I wander about the reason and if it applies to other (plotting) packages and master here. I've always relied on benchmarking code after running ONCE. It may not be about your package, rather julia (1.5)?
It seems I ruled out issue with Julia itself or
@time.