Packageindex Classtrees Modulegroups Elementlist Report XML Files

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();

AuthorsSebastian Bergmann <sb@phpOpenTracker.de>
Version$Revision: 1.1 $

 

Methods inherited from Benchmark_Timer

start, stop, set_marker, time_elapsed, get_profiling

Public Method Summary

void

run(string $function, [ integer $iterations ])

Benchmarks a function.
array

get()

Returns benchmark result.

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



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta