lib/JSLitmus.js
function(/**Boolean*/ normalize) {
      var p = this.period;

      // Adjust period based on the calibration test time
      if (normalize && !this.isCalibration) {
        var cal = Test.CALIBRATIONS[this.loopArg ? 0 : 1];

        // If the period is within 20% of the calibration time, then zero the
        // it out
        p = p < cal.period*1.2 ? 0 : p - cal.period;
      }

      return Math.round(1/p);
    }
function(/**Boolean*/ normalize) {
      var p = this.period;

      // Adjust period based on the calibration test time
      if (normalize && !this.isCalibration) {
        var cal = Test.CALIBRATIONS[this.loopArg ? 0 : 1];

        // If the period is within 20% of the calibration time, then zero the
        // it out
        p = p < cal.period*1.2 ? 0 : p - cal.period;
      }

      return Math.round(1/p);
    }
function ( /**Boolean*/ normalize ) { var p = this . period ; // Adjust period based on the calibration test time if ( normalize && ! this . isCalibration ) { var cal = Test . CALIBRATIONS [ this . loopArg ? 0 : 1 ] ; // If the period is within 20% of the calibration time, then zero the // it out p = p < cal . period * 1.2 ? 0 : p - cal . period ; } return Math . round ( 1 / p ) ; }
Get the number of operations per second for this test.

@param normalize if true, iteration loop overhead taken into account
Get the number of operations per second for this test .