Lines Matching refs:function
8 performance.now = (function() {
21 // A benchmark has a name (string) and a function that will be run to
26 function Benchmark(name, doWarmup, doDeterministic, deterministicIterations,
33 this.Setup = setup ? setup : function() { };
34 this.TearDown = tearDown ? tearDown : function() { };
44 function BenchmarkResult(benchmark, time, latency) {
53 BenchmarkResult.prototype.valueOf = function() {
62 function BenchmarkSuite(name, reference, benchmarks) {
88 // Override the alert function to throw an exception instead.
89 alert = function(s) {
96 BenchmarkSuite.ResetRNG = function() {
97 Math.random = (function() {
99 return function() {
100 // Robert Jenkins' 32 bit integer hash function.
117 BenchmarkSuite.RunSuites = function(runner, skipBenchmarks) {
124 function RunStep() {
156 BenchmarkSuite.CountBenchmarks = function() {
167 BenchmarkSuite.GeometricMean = function(numbers) {
177 BenchmarkSuite.GeometricMeanTime = function(measurements) {
187 BenchmarkSuite.GeometricMeanLatency = function(measurements) {
206 BenchmarkSuite.FormatScore = function(value) {
216 BenchmarkSuite.prototype.NotifyStep = function(result) {
224 BenchmarkSuite.prototype.NotifyResult = function() {
246 BenchmarkSuite.prototype.NotifySkipped = function(runner) {
255 BenchmarkSuite.prototype.NotifyError = function(error) {
267 BenchmarkSuite.prototype.RunSingleBenchmark = function(benchmark, data) {
276 function Measure(data) {
313 // This function starts running a suite, but stops between each
315 // function which can be invoked to run the next benchmark. Once the
317 BenchmarkSuite.prototype.RunStep = function(runner) {
330 function RunNextSetup() {
344 function RunNextBenchmark() {
355 function RunNextTearDown() {