benchmarks/browser/benchmark.js
function getMean(sample) {
      return (_.reduce(sample, function(sum, x) {
        return sum + x;
      }) / sample.length) || 0;
    }
function getMean(sample) {
      return (_.reduce(sample, function(sum, x) {
        return sum + x;
      }) / sample.length) || 0;
    }
function getMean ( sample ) { return ( _ . reduce ( sample , function ( sum , x ) { return sum + x ; } ) / sample . length ) || 0 ; }
Computes the arithmetic mean of a sample.

@private
@param {Array} sample The sample.
@returns {number} The mean.
Computes the arithmetic mean of a sample .