Tree [0f9e18] default /
History



File Date Author Commit
inst 2009-03-23 highegg highegg [0f9e18] add dense indexing benchmark
COPYING 2008-06-05 highegg highegg [035a3e] benchmark: initial commit
DESCRIPTION 2008-06-05 highegg highegg [035a3e] benchmark: initial commit
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