1Dumbbench::Instance::CmUds(e3r)Contributed Perl DocumentDautmibobnench::Instance::Cmd(3)
2
3
4

NAME

6       Dumbbench::Instance::Cmd - Benchmarks an external command
7

SYNOPSIS

9         use Dumbbench;
10
11         my $bench = Dumbbench->new(
12           target_rel_precision => 0.005, # seek ~0.5%
13           initial_runs         => 20,    # the higher the more reliable
14         );
15         $bench->add_instances(
16           Dumbbench::Instance::Cmd->new(name => 'mauve', command => [qw(perl -e 'something')]),
17           # ... more things to benchmark ...
18         );
19         $bench->run();
20         # ...
21

DESCRIPTION

23       This class inherits from Dumbbench::Instance and implements
24       benchmarking of external commands.
25

METHODS

27   new
28       Constructor that takes named arguments.
29
30       In addition to the properties of the base class, the
31       "Dumbbench::Instance::Cmd" constructor requires a "command" parameter.
32       "command" can either be string specifying the external command with its
33       options or (preferably) a reference to an array of command-name and
34       options (as with the ordinary "system" builtin).
35
36       Optionally, you can provide a "dry_run_command" option.  It has the
37       same structure and purpose as the "command" option, but it is used for
38       the dry-runs. If "dry_run_command" is not specified, the dry-run will
39       consist of starting another process that immediately exits.
40
41   command
42       Returns the command that was set on object construction.
43
44   dry_run_command
45       Returns the command that was set for dry-runs on object construction.
46

SEE ALSO

48       Dumbbench, Dumbbench::Instance, Dumbbench::Instance::PerlEval,
49       Dumbbench::Instance::PerlSub, Dumbbench::Result
50
51       Benchmark
52
53       Number::WithError does the Gaussian error propagation.
54
55       SOOT can optionally generate histograms from the timing distributions.
56
57       <http://en.wikipedia.org/wiki/Median_absolute_deviation>
58

AUTHOR

60       Steffen Mueller, <smueller@cpan.org>
61
63       Copyright (C) 2010 by Steffen Mueller
64
65       This library is free software; you can redistribute it and/or modify it
66       under the same terms as Perl itself, either Perl version 5.8.1 or, at
67       your option, any later version of Perl 5 you may have available.
68
69
70
71perl v5.32.1                      2021-01-27       Dumbbench::Instance::Cmd(3)
Impressum