Unix and Linux Discussions Tagged with benchmarks |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
5 |
36,713 |
Linux Benchmarks |
|
|
|
0 |
1,062 |
What is on Your Mind? |
|
|
|
0 |
24,070 |
Linux Benchmarks |
|
|
|
9 |
2,598 |
Shell Programming and Scripting |
|
|
|
1 |
6,475 |
Linux Benchmarks |
|
|
|
1 |
1,921 |
Solaris |
|
|
|
10 |
11,804 |
Shell Programming and Scripting |
|
|
|
3 |
1,397 |
UNIX for Dummies Questions & Answers |
|
|
|
13 |
4,561 |
UNIX for Advanced & Expert Users |
|
|
|
9 |
7,415 |
Solaris |
|
|
|
0 |
29,749 |
Linux Benchmarks |
|
|
|
2 |
5,009 |
High Performance Computing |
|
|
|
3 |
9,662 |
AIX |
|
|
|
3 |
3,311 |
Linux |
|
|
|
2 |
1,743 |
Shell Programming and Scripting |
|
|
|
0 |
9,184 |
UNIX Benchmarks |
|
|
|
5 |
2,954 |
AIX |
|
|
|
8 |
18,145 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
1,961 |
Fedora |
|
|
|
9 |
9,097 |
Hardware |
|
|
|
1 |
8,799 |
Linux Benchmarks |
|
|
|
2 |
6,498 |
UNIX Benchmarks |
|
|
|
2 |
6,158 |
UNIX Benchmarks |
|
|
|
0 |
6,557 |
UNIX Benchmarks |
|
|
|
2 |
12,734 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
2,773 |
Shell Programming and Scripting |
|
|
|
2 |
5,683 |
Cybersecurity |
|
|
|
23 |
15,218 |
Programming |
|
|
|
4 |
11,788 |
UNIX for Dummies Questions & Answers |
|
|
|
17 |
8,672 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
4,362 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
10,298 |
AIX |
|
|
|
53 |
45,756 |
Shell Programming and Scripting |
|
|
|
2 |
4,406 |
Programming |
|
|
|
19 |
20,617 |
High Performance Computing |
|
|
|
1 |
11,404 |
Virtualization and Cloud Computing |
|
|
|
2 |
6,302 |
Slackware |
|
|
|
0 |
19,424 |
Linux Benchmarks |
|
|
|
23 |
14,681 |
Programming |
|
|
|
26 |
9,244 |
What is on Your Mind? |
Benchmark::Apps(3pm) User Contributed Perl Documentation Benchmark::Apps(3pm)
NAME
Benchmark::Apps - Simple interface to benchmark applications.
SYNOPSIS
This module provides a simple interface to benchmark applications (not necessarily Perl applications).
use Benchmark::Apps;
my $commands = {
cmd1 => 'run_command_1 with arguments',
cmd2 => 'run_command_2 with other arguments',
};
my $conf = { pretty_print=>1, iters=>5 };
Benchmark:Apps::run( $commands, $conf );
DESCRIPTION
This module can be used to perform simple benchmarks on programs. Basically, it can be used to benchmark any program that can be called
with a system call.
FUNCTIONS
run
This method is used to run benchmarks. It runs the commands described in the hash passed as argument. It returns an hash of the results
each command. A second hash reference can be passed to this method: a configuration hash reference. The values passed in this hash
override the default behaviour of the run method. The configuration options available at this moment are:
"pretty_print"
When enabled it will print to stdout, in a formatted way the results of the benchmarks as they finish running. This option should de
used when you want to run benchmarks and want to see the results progress as the tests run. You can disable it, so you can perform
automated benchmarks.
Options: true(1) or false(0)
Default: false(0)
"iters"
This is the number of iterations that each test will run.
Options: integer greater than 1
Default: 5
"args"
This is a reference to an anonymous function that will calculate the command argument based on the iteraction number.
Options: any function reference that returns a string
Default: empty function: always returns an empty string, which means no arguments will be given to the command
run
This method runs the commands described in the hash passed as argument. It returns an hash of the results and return codes for each
command.
pretty_print
This method is used to print the final result to STDOUT before returning from the "run" method.
time_this
This method is not meant to be used directly, although it can be useful. It receives a command line and executes it via system, taking
care of registering the elapsed time.
EXAMPLES
Check files in "examples/".
AUTHOR
Aberto Simoes (aka ambs), "<ambs at cpan.org>" Nuno Carvalho (aka smash), "<smash @ cpan.org>"
BUGS
Please report any bugs or feature requests to "bug-benchmark-apps at rt.cpan.org", or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Benchmark-Apps <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Benchmark-Apps>. I will be
notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Benchmark::Apps
You can also look for information at:
o RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Benchmark-Apps <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Benchmark-Apps>
o AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Benchmark-Apps <http://annocpan.org/dist/Benchmark-Apps>
o CPAN Ratings
http://cpanratings.perl.org/d/Benchmark-Apps <http://cpanratings.perl.org/d/Benchmark-Apps>
o Search CPAN
http://search.cpan.org/dist/Benchmark-Apps <http://search.cpan.org/dist/Benchmark-Apps>
COPYRIGHT & LICENSE
Copyright 2008 Aberto Simoes, Nuno Carvalho, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-01-15 Benchmark::Apps(3pm)