Benchmark::Perl::Formance::Plugin::Skeleton - An example plugin
You can create your own plugins by just creating a module in the namespace Benchmark::Perl::Formance::Plugin::* which simply has to provide a
Benchmark::Perl::Formance::Plugin::*
package Benchmark::Perl::Formance::Plugin::HotStuff; sub main { my ($options) = @_; # do something return { result_key1 => $value1, result_key2 => $value2, } }
To use it call the frontend tool and provide your pluginname via --plugins:
$ perl-formance --plugins=HotStuff
If your module should be a default part of the Benchmark::Perl::Formance suite, then patch the $DEFAULT_PLUGINS in lib/Benchmark/Perl/Formance.pm.
$DEFAULT_PLUGINS
To install Benchmark::Perl::Formance, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Benchmark::Perl::Formance
CPAN shell
perl -MCPAN -e shell install Benchmark::Perl::Formance
For more information on module installation, please visit the detailed CPAN module installation guide.