I have created a GUI which when run, executes in 9 seconds consistently. When the profiler is turned on, the GUI executes in 1.2 seconds consistently. When the profiler window is opened, the GUI executes in 0.7 seconds consistently.
% Run your GUI
% Execute the callback in your GUI (may be by selecting/clicking a UICONTROL)
profile on % Code executes faster
profile viewer % Code execution speed improves further
Best Answer