Benchmark::Apps(3pm) | User Contributed Perl Documentation | Benchmark::Apps(3pm) |
Benchmark::Apps - Simple interface to benchmark applications.
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 );
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.
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:
Options: true (1) or false (0)
Default: false (0)
Options: integer greater than 1
Default: 5
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
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.
This method is used to print the final result to STDOUT before returning from the "run" method.
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.
Check files in "examples/".
Aberto Simoes (aka ambs), "<ambs at cpan.org>" Nuno Carvalho (aka smash), "<smash @ cpan.org>"
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>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc Benchmark::Apps
You can also look for information at:
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Benchmark-Apps>
<https://metacpan.org/release/Benchmark-Apps>
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.
2022-10-13 | perl v5.36.0 |