2023-08-10__speedtest_end-to-end_nb_worfklow_julia_only
2023-08-10__speedtest_end-to-end_nb_worfklow_julia_only¶
1
1
# ]st
# (right env (.. aka phd) already active)
@time using Nto1AdEx
0.027749 seconds (12.81 k allocations: 868.591 KiB)
using Units
@time begin
Nto1AdEx.wₑ = 15 * pS
Nto1AdEx.wᵢ = 4 * Nto1AdEx.wₑ
out = Nto1AdEx.sim(6500, 10)
end;
0.058882 seconds (13.03 k allocations: 31.574 MiB, 25.85% gc time)
using WithFeedback
@withfb using PyPlot
@withfb using Sciplotlib
@withfb using PhDPlots
using PyPlot … ✔ (2.8 s)
using Sciplotlib … ✔ (5.3 s)
using PhDPlots … ✔
@time plotsig(out.V / mV, [0, 1000], ms);
2.920297 seconds (2.53 M allocations: 169.555 MiB, 2.23% gc time, 97.00% compilation time: 1% of which was recompilation)
‘Restart and run all’:
~28 seconds total
First cell after ~9”
(after a few warm up restarts-and-run-alls).
Breakdown of the total:
9 sec julia/ijulia startup
~nothing my pkgs import & run :)
8 sec pycall/mpl import & setup
3 sec plotcall (before anything on screen)
~4 sec (estimate) img display
Another issue: recompilation of plotting pkgs after making a change to code.
In python: nothing.
Here: Sciplotlib: 13 secs
PhdPlots: 5.5 sec