|
|
File: c:/www/apache/doc2//pear/Benchmark/Iterate.php
PEAR 2000/12/03 -
Benchmark_Iterate
Benchmark_Timer | +-- Benchmark_Iterate
Benchmark::Benchmark_Iterate
|
public class Benchmark_Iterate extends Benchmark_Timer
Benchmark::Benchmark_Iterate
Purpose:BenchmarkingExample:$benchmark = new Benchmark_Iterate;$benchmark->run( "my_function", 100 );$result = $benchmark->get();
|
|
|
|
|
Fields inherited from Benchmark_Timer |
$markers |
|
Public Method Details |
run |
public void run( string $function, [ integer $iterations ] )
|
|
Benchmarks a function.
|
Parameter |
|
string |
$function |
|
|
name of the function to be benchmarked |
|
|
integer |
$iterations |
= >>100<< |
|
number of iterations (default: 100) |
|
Returns |
void |
|
get |
public array get( )
|
|
Returns benchmark result.
$result[ x ] = execution time of iteration x$result[ "mean" ] = mean execution time$result[ "iterations" ] = number of iterations
|
Returns |
array $result |
|
|
|
|
PHPDoc 1.0beta |