[035a3e]: README Maximize Restore History

Download this file

README    53 lines (39 with data), 1.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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