This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
bench.pl: add 'compile' benchmark field
authorDavid Mitchell <davem@iabyn.com>
Mon, 23 Oct 2017 10:29:18 +0000 (11:29 +0100)
committerDavid Mitchell <davem@iabyn.com>
Mon, 23 Oct 2017 10:52:03 +0000 (11:52 +0100)
commita9b1083885574fdefca2a659d936647c5ca05870
tree52a369851a0d3f12ae0af2f7eb5e7bbdc4bd0379
parent485eb0094b3454fae184f55b907d88350ec6ed02
bench.pl: add 'compile' benchmark field

If a benchmark has this flag set, measure the compile time of the
construct rather than its execution time, by wrapping the code in

    eval q{ sub { ... } }
Porting/bench.pl
t/perf/benchmarks