ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
BenchMark Class Reference
+ Inheritance diagram for BenchMark:
+ Collaboration diagram for BenchMark:

Public Member Functions

 setUp ()
 
 test ()
 
 go ()
 

Protected Attributes

 $startTime
 
 $iterations = 10000
 
 $totalTime
 

Detailed Description

Definition at line 7 of file bench.php.

Member Function Documentation

◆ go()

BenchMark::go ( )

Definition at line 19 of file bench.php.

19 {
20
21 $this->setUp();
22 $this->startTime = microtime(true);
23 $this->test();
24 $this->totalTime = microtime(true) - $this->startTime;
25 return $this->totalTime;
26
27 }
setUp()
Definition: bench.php:13
$startTime
Definition: bench.php:9
$totalTime
Definition: bench.php:11

References $startTime, $totalTime, setUp(), and test().

+ Here is the call graph for this function:

◆ setUp()

BenchMark::setUp ( )

Reimplemented in OneCallBack, ManyCallBacks, and ManyPrioritizedCallBacks.

Definition at line 13 of file bench.php.

13 {
14
15 }

Referenced by go().

+ Here is the caller graph for this function:

◆ test()

BenchMark::test ( )
abstract

Reimplemented in OneCallBack, ManyCallBacks, and ManyPrioritizedCallBacks.

Referenced by go().

+ Here is the caller graph for this function:

Field Documentation

◆ $iterations

BenchMark::$iterations = 10000
protected

Definition at line 10 of file bench.php.

Referenced by ManyCallBacks\test(), and ManyPrioritizedCallBacks\test().

◆ $startTime

BenchMark::$startTime
protected

Definition at line 9 of file bench.php.

Referenced by go().

◆ $totalTime

BenchMark::$totalTime
protected

Definition at line 11 of file bench.php.

Referenced by go().


The documentation for this class was generated from the following file: