1% STK_BENCHMARK_INIT measures stk_init's runtime 2% 3% Loading STK should be as fast as possible... 4% 5% This script can be used to tic-toc or profile stk_init (). 6 7% Copyright Notice 8% 9% Copyright (C) 2016 CentraleSupelec 10% 11% Author: Julien Bect <julien.bect@centralesupelec.fr> 12 13% Copying Permission Statement 14% 15% This file is part of 16% 17% STK: a Small (Matlab/Octave) Toolbox for Kriging 18% (http://sourceforge.net/projects/kriging) 19% 20% STK is free software: you can redistribute it and/or modify it under 21% the terms of the GNU General Public License as published by the Free 22% Software Foundation, either version 3 of the License, or (at your 23% option) any later version. 24% 25% STK is distributed in the hope that it will be useful, but WITHOUT 26% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 27% or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 28% License for more details. 29% 30% You should have received a copy of the GNU General Public License 31% along with STK. If not, see <http://www.gnu.org/licenses/>. 32 33NREP = 10; 34 35t0 = tic (); 36 37for i = 1:NREP, 38 stk_init (); 39end 40 41t = (toc (t0)) / NREP; 42 43fprintf ('Average runtime for a call to stk_init: %.3f seconds\n', t); 44