performancetimer.js
No description.

File Location

/goog/testing/performancetimer.js

Classes

goog.testing.PerformanceTimer
Creates a performance timer that runs test functions a number of times to generate timing samples, and provides performance statistics (minimum, maximum, average, and standard deviation).
goog.testing.PerformanceTimer.Task
A task for the performance timer to measure. Callers can specify optional setUp and tearDown methods to control state before and after each run of the test function.

Public Protected Private

Global Functions

goog.testing.PerformanceTimer.createResults(samples) !Object
Creates a performance timer results object by analyzing a given array of sample timings.
Arguments:
samples : Array.<number>
The samples to analyze.
Returns: !Object  Object containing performance stats.
code »

Directory testing

File Reference