Lines Matching refs:function
33 // A benchmark has a name (string) and a function that will be run to
38 function Benchmark(name, run, setup, tearDown) {
41 this.Setup = setup ? setup : function() { };
42 this.TearDown = tearDown ? tearDown : function() { };
49 function BenchmarkResult(benchmark, time) {
57 BenchmarkResult.prototype.valueOf = function() {
66 function BenchmarkSuite(name, reference, benchmarks) {
86 Math.random = (function() {
88 return function() {
89 // Robert Jenkins' 32 bit integer hash function.
105 BenchmarkSuite.RunSuites = function(runner) {
111 function RunStep() {
137 BenchmarkSuite.CountBenchmarks = function() {
148 BenchmarkSuite.GeometricMean = function(numbers) {
159 BenchmarkSuite.FormatScore = function(value) {
169 BenchmarkSuite.prototype.NotifyStep = function(result) {
177 BenchmarkSuite.prototype.NotifyResult = function() {
189 BenchmarkSuite.prototype.NotifyError = function(error) {
201 BenchmarkSuite.prototype.RunSingleBenchmark = function(benchmark, data) {
202 function Measure(data) {
231 // This function starts running a suite, but stops between each
233 // function which can be invoked to run the next benchmark. Once the
235 BenchmarkSuite.prototype.RunStep = function(runner) {
247 function RunNextSetup() {
261 function RunNextBenchmark() {
272 function RunNextTearDown() {