PHP Class DebugKit\Shell\BenchmarkShell

Provides basic benchmarking of application requests functionally similar to Apache AB
Inheritance: extends Cake\Console\Shell
Afficher le fichier Open project: cakephp/debug_kit

Méthodes publiques

Méthode Description
getOptionParser ( ) : Cake\Console\ConsoleOptionParser Get option parser.
main ( ) : void Main execution of shell

Méthodes protégées

Méthode Description
_deviation ( array $times, boolean $sample = true ) : float Calculate the standard deviation.
_results ( array $times ) : void Prints calculated results
_variance ( array $times, boolean $sample = true ) : float One-pass, numerically stable calculation of population variance.

Method Details

_deviation() protected méthode

Calculate the standard deviation.
protected _deviation ( array $times, boolean $sample = true ) : float
$times array Array of values
$sample boolean ''
Résultat float Standard deviation

_results() protected méthode

Prints calculated results
protected _results ( array $times ) : void
$times array Array of time values
Résultat void

_variance() protected méthode

Donald E. Knuth (1998). The Art of Computer Programming, volume 2: Seminumerical Algorithms, 3rd edn., p. 232. Boston: Addison-Wesley.
protected _variance ( array $times, boolean $sample = true ) : float
$times array Array of values
$sample boolean If true, calculates an unbiased estimate of the population variance from a finite sample.
Résultat float Variance

getOptionParser() public méthode

Get option parser.
public getOptionParser ( ) : Cake\Console\ConsoleOptionParser
Résultat Cake\Console\ConsoleOptionParser

main() public méthode

Main execution of shell
public main ( ) : void
Résultat void