PHP Class PhpBench\Benchmarks\Macro\BaseBenchCase

These benchmarks use seconds as the time unit.
Show file Open project: dantleech/phpbench

Public Methods

Method Description
__construct ( ) The constructor can be used as a quick way to setup the class and as an alternative to explicitly declaring methods to execute before the benchmark.
createWorkspace ( ) This method is called in a separate process before the iterations are executed. See the annotations in the header of this class.
removeWorkspace ( ) This method is called in a separate process after the iterations are executed. See the annotations in the header of this class.
runCommand ( $serviceId, $args )

Protected Methods

Method Description
addContainerExtensionClass ( $extensionClass )
getContainer ( )
getFunctionalBenchmarkPath ( )
getWorkspacePath ( )
setContainerConfig ( array $containerConfig )

Method Details

__construct() public method

The constructor can be used as a quick way to setup the class and as an alternative to explicitly declaring methods to execute before the benchmark.
public __construct ( )

addContainerExtensionClass() protected method

protected addContainerExtensionClass ( $extensionClass )

createWorkspace() public static method

This method is called in a separate process before the iterations are executed. See the annotations in the header of this class.
public static createWorkspace ( )

getContainer() protected method

protected getContainer ( )

getFunctionalBenchmarkPath() protected static method

protected static getFunctionalBenchmarkPath ( )

getWorkspacePath() protected static method

protected static getWorkspacePath ( )

removeWorkspace() public static method

This method is called in a separate process after the iterations are executed. See the annotations in the header of this class.
public static removeWorkspace ( )

runCommand() public method

public runCommand ( $serviceId, $args )

setContainerConfig() protected method

protected setContainerConfig ( array $containerConfig )
$containerConfig array