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.

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

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  }
$totalTime
Definition: bench.php:11
setUp()
Definition: bench.php:13
$startTime
Definition: bench.php:9
+ Here is the call graph for this function:

◆ setUp()

BenchMark::setUp ( )

Definition at line 13 of file bench.php.

References test().

Referenced by go().

13  {
14 
15  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ test()

BenchMark::test ( )
abstract

Referenced by go(), and setUp().

+ 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 OneCallBack\test(), 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: