Lines Matching defs:cmpthese
28 # cmpthese can be used both ways as well
29 cmpthese($count, {
34 cmpthese($count, {
47 cmpthese( $results ) ;
68 cmpthese - print results of timethese as a comparison chart
205 =item cmpthese ( COUNT, CODEHASHREF, [ STYLE ] )
207 =item cmpthese ( RESULTSHASHREF, [ STYLE ] )
211 cmpthese( -1, { a => "++\$i", b => "\$i *= 2" } ) ;
222 c<cmpthese> can also be passed the data structure that timethese() returns:
225 cmpthese( $results );
232 my $rows = cmpthese( -1, { a => '++$i', b => '$i *= 2' }, "none" );
244 statement C<timethese>...C<cmpthese> idiom shown above.
325 use Benchmark qw( cmpthese ) ;
327 cmpthese( -5, {
342 use Benchmark qw( timethese cmpthese ) ;
348 cmpthese $r;
404 efficiency tweaks. Added cmpthese(). A result is now returned from
408 and return an empty string. If cmpthese is calling timethese, make it pass the
415 February, 2004; by Chia-liang Kao: make cmpthese and timestr use time
434 @EXPORT_OK=qw(timesum cmpthese countit
860 $_Usage{cmpthese} = <<'USAGE';
861 usage: cmpthese($count, { Name1 => 'code1', ... }); or
862 cmpthese($count, { Name1 => sub { code1 }, ... }); or
863 cmpthese($result, $style);
866 sub cmpthese{