NAME
Benchmark::Perl::Formance::Plugin::Skeleton - An example plugin
ABOUT
You can create your own plugins by just creating a module in the namespace Benchmark::Perl::Formance::Plugin::*
which simply has to provide a
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 become a default part of the Benchmark::Perl::Formance suite, then patch the $DEFAULT_PLUGINS
in lib/Benchmark/Perl/Formance.pm and/or email me.