Overview

Class for benchmarking the speed of different methods.

Benchmark methods are prefixed with "bench" and are automatically run $loops number of times when you call Solar_Test_Bench::run($loops).

Package

This class is part of the Solar_Test package.

Inheritance:

Configuration Keys

  • loop: The number of times the benchmarking methods should be run when using loop(). Default 1000.

  • time: The time in minutes each method should run when using time(). Default 1.

Constants

None.

Public Properties

The Solar_Test_Bench class has no public properties; try the list of all properties.

Public Methods

These are all the public methods in the Solar_Test_Bench class.

You can also view the list of all public, protected, and private methods.

__construct()

Constructor.

__destruct()

Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().

dump()

Convenience method for getting a dump the whole object, or one of its properties, or an external variable.

locale()

Looks up class-specific locale strings based on a key.

loop()

Runs each benchmark method for a certain number of loops.

setup()

Executes this code before running any benchmarks.

teardown()

Executes this code after running all benchmarks.

time()

Runs each benchmark method for a certain number of minutes.



Local