Tree [6eede6] default tip /
History



File Date Author Commit
inst 2010-01-12 highegg highegg [09a6da] improve benchmarks
COPYING 2011-06-24 carandraug carandraug [c935b4] Updated FSF address
DESCRIPTION 2011-10-19 carandraug carandraug [6eede6] E-mail address of Jaroslav Hajek to copyright n...
INDEX 2008-08-24 hauberg hauberg [f28863] Bumped version number
README 2008-06-05 highegg highegg [035a3e] benchmark: initial commit

Read Me

benchmark
--------------------------------------------------------------------------------
This package contains codes used to measure Octave's speed, resource usage etc.
It can be used to benchmark Octave running on different platforms, compiled
with different configurations, of different versions, or even Octave vs. Matlab
(if applicable).

Each benchmark should have the form

benchmark_my_benchmark.m:

% <Copyright>

% function benchmark_my_benchmark (arg1, arg2)
% description:
% <description of the benchmark>
% 
% arguments:
% arg1 = <description of arg1>
% arg2 = <description of arg2>
% 
% results:
% result1 = <description of result1>
% result2 = <description of result2>

function results = bechmark_my_benchmark (arg1, arg2)

benchutil_default_arg ('arg1', <arg1 default value>)
benchutil_default_arg ('arg2', <arg2 default value>)

% the argument is mandatory and MUST be mfilename!
benchutil_initialize (mfilename)

tic;
<code for result1>
result1 = toc;
benchutil_set_result ('result1')

tic;
<code for result2>
result1 = toc;
benchutil_set_result ('result2')

% yes, that's all!


the benchmark can then be run
benchmark_my_benchmark 
or
benchmark_my_benchmark (100, 100)

for more info, see existing benchmarks