Lines Matching refs:Benchmark

1 package Benchmark;
8 Benchmark - benchmark running times of Perl code
12 use Benchmark qw(:all) ;
57 use Benchmark ':hireswallclock';
61 The Benchmark module encapsulates a number of routines to help you
83 use Benchmark;
84 $t0 = Benchmark->new;
86 $t1 = Benchmark->new;
92 Enables or disable debugging by setting the C<$Benchmark::Debug> flag:
94 Benchmark->debug(1);
96 Benchmark->debug(0);
107 if you use the Benchmark module:
117 Returns: a Benchmark object.
149 Returns a Benchmark object.
164 Returns a hash reference of Benchmark objects, keyed by name.
168 Returns the difference between two Benchmark times as a Benchmark
174 the requested STYLE. TIMEDIFF is expected to be a Benchmark object
266 Returns: a Benchmark object.
270 Disable caching of timings for the null loop. This will force Benchmark
281 Returns the sum of two Benchmark times as a Benchmark object suitable
289 special tag C<:hireswallclock> for Benchmark (if Time::HiRes is not
295 =head1 Benchmark Object
297 Many of the functions in this module return a Benchmark object,
299 which are Benchmark objects. This is useful if you want to store or
300 further process results from Benchmark functions.
302 Internally the Benchmark object holds timing values,
330 The following illustrates use of the Benchmark object:
369 use Benchmark qw( cmpthese ) ;
378 Benchmark: running a, b, each for at least 5 CPU seconds...
386 use Benchmark qw( timethese cmpthese ) ;
396 Benchmark: running a, b, each for at least 5 CPU seconds...
406 Benchmark inherits from no other class, except of course
509 Benchmark->export_to_level(1, $class, @_);
532 $calling_sub =~ s/^Benchmark:://;
716 my $tbase = Benchmark->new(0)->[1];
718 while ( ( $t0 = Benchmark->new(0) )->[1] == $tbase ) {
723 $t1 = Benchmark->new($n);
792 my $t0 = Benchmark->new(0);
794 my $t1 = Benchmark->new(0);
939 print "Benchmark: " unless $style eq 'none';
993 # recreate the pre-flattened Benchmark object