benchmarks/browser/benchmark.js
function execute() {
        var listeners,
            async = isAsync(bench);

        if (async) {
          // Use `getNext` as the first listener.
          bench.on('complete', getNext);
          listeners = bench.events.complete;
          listeners.splice(0, 0, listeners.pop());
        }
        // Execute method.
        result[index] = _.isFunction(bench && bench[name]) ? bench[name].apply(bench, args) : undefined;
        // If synchronous return `true` until finished.
        return !async && getNext();
      }
function execute() {
        var listeners,
            async = isAsync(bench);

        if (async) {
          // Use `getNext` as the first listener.
          bench.on('complete', getNext);
          listeners = bench.events.complete;
          listeners.splice(0, 0, listeners.pop());
        }
        // Execute method.
        result[index] = _.isFunction(bench && bench[name]) ? bench[name].apply(bench, args) : undefined;
        // If synchronous return `true` until finished.
        return !async && getNext();
      }
function execute ( ) { var listeners , async = isAsync ( bench ) ; if ( async ) { // Use `getNext` as the first listener. bench . on ( 'complete' , getNext ) ; listeners = bench . events . complete ; listeners . splice ( 0 , 0 , listeners . pop ( ) ) ; } // Execute method. result [ index ] = _ . isFunction ( bench && bench [ name ] ) ? bench [ name ] . apply ( bench , args ) : undefined ; // If synchronous return `true` until finished. return ! async && getNext ( ) ; }
Invokes the method of the current object and if synchronous, fetches the next.
Invokes the method of the current object and if synchronous fetches the next .