Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Tools/pybench/pybench.py

    r325 r391  
    231231            self.calibration_runs = calibration_runs
    232232        if timer is not None:
    233             timer = timer
     233            self.timer = timer
    234234
    235235        # Init variables
     
    279279                pass
    280280            t = timer() - t
    281             prep_times.append(t)
     281            prep_times.append(t / CALIBRATION_LOOPS)
    282282        min_prep_time = min(prep_times)
    283283        if _debug:
     
    690690                if (benchmarks_compatible and
    691691                    test.compatible(other)):
    692                     # Both benchmark and tests are comparible
     692                    # Both benchmark and tests are comparable
    693693                    min_diff = ((min_time * self.warp) /
    694694                                (other_min_time * other.warp) - 1.0)
     
    704704                        avg_diff = '%+5.1f%%' % (avg_diff * PERCENT)
    705705                else:
    706                     # Benchmark or tests are not comparible
     706                    # Benchmark or tests are not comparable
    707707                    min_diff, avg_diff = 'n/a', 'n/a'
    708708                    tests_compatible = 0
Note: See TracChangeset for help on using the changeset viewer.