2023-08-20__speedtest_end-to-end_nb_worfklow_julia_only__pythoncall_pythonplot
2023-08-20__speedtest_end-to-end_nb_worfklow_julia_only__pythoncall_pythonplot¶
1
1
# ]st
# (right env (.. aka phd) already active)
using WithFeedback
@withfb using Revise
using Revise … ✔ (0.4 s)
@withfb using Nto1AdEx
using Nto1AdEx … ✔
using Units
@time begin
Nto1AdEx.wₑ = 15 * pS
Nto1AdEx.wᵢ = 4 * Nto1AdEx.wₑ
out = Nto1AdEx.sim(6500, 10)
end;
0.050939 seconds (13.06 k allocations: 31.574 MiB, 22.32% gc time, 15.91% compilation time)
@withfb import PythonCall
@withfb import PythonPlot
@withfb using Sciplotlib2
@withfb using PhDPlots2
import PythonCall … ✔ (3.3 s)
import PythonPlot … ✔ (3.1 s)
using Sciplotlib2 … ✔ (1.2 s)
using PhDPlots2 … ✔
@time plotsig(out.V / mV, [0, 1000], ms);
6.721087 seconds (7.66 M allocations: 504.167 MiB, 4.03% gc time)
![../_images/2023-08-20__speedtest_end-to-end_nb_worfklow_julia_only__pythoncall_pythonplot_9_1.png](../_images/2023-08-20__speedtest_end-to-end_nb_worfklow_julia_only__pythoncall_pythonplot_9_1.png)
‘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
6.5 sec pythoncall & plot
1.2 s spl
6.7 sec plotcall (before anything on screen)
0.5 sec (estimate) img display
~~Another issue: recompilation of plotting pkgs after making a change to code.~~
no issue with Revise.