In addition to the properties of the base class, the Dumbbench::Instance::PerlSub constructor requires a code parameter. The code needs to be subroutine reference.

Optionally, you can provide a dry_run_code option. It has the same structure and purpose as the code option, but it is used for the dry-runs. By default, an empty sub is used for this, so it's unlikely you will need the dry-run unless you want to strip out some particular overhead.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or, at your option, any later version of Perl 5 you may have available.