Open cjdoris opened 2 years ago
Putting @time
on each line, we get: 0.9, 0.0, 1.5, 0.5, 2.5. Subsequently, all the time is in display(p)
.
With the compiler options set, we get: 0.7, 0.0, 0.3, 0.4, 2.4.
Precompiling figure()
brings line 3 down to 0.7 seconds (5 seconds total).
A few more precompiles brings it down to 4.8 seconds total.
The following benchmark takes 5.5 seconds on my machine the first time, and 0.2 seconds subsequently:
Adding the following to the top of the module decreases TTFP to 4.0 seconds, and subsequent times are still 0.2 seconds: