Changeset 388 for python/vendor/current/Tools/pybench
- Timestamp:
- Mar 19, 2014, 11:11:30 AM (11 years ago)
- Location:
- python/vendor/current/Tools/pybench
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
python/vendor/current/Tools/pybench/CommandLine.py
r2 r388 459 459 except AttributeError: 460 460 if value == '': 461 # count the number of occur ances461 # count the number of occurrences 462 462 if values.has_key(optionname): 463 463 values[optionname] = values[optionname] + 1 -
python/vendor/current/Tools/pybench/README
r2 r388 4 4 ________________________________________________________________________ 5 5 6 Extendable suite of oflow-level benchmarks for measuring6 Extendable suite of low-level benchmarks for measuring 7 7 the performance of the Python implementation 8 8 (interpreter, compiler or VM). -
python/vendor/current/Tools/pybench/Setup.py
r2 r388 1 #! python1 #!/usr/bin/env python 2 2 3 3 # Setup file for pybench -
python/vendor/current/Tools/pybench/pybench.py
r2 r388 231 231 self.calibration_runs = calibration_runs 232 232 if timer is not None: 233 timer = timer233 self.timer = timer 234 234 235 235 # Init variables … … 279 279 pass 280 280 t = timer() - t 281 prep_times.append(t )281 prep_times.append(t / CALIBRATION_LOOPS) 282 282 min_prep_time = min(prep_times) 283 283 if _debug: … … 690 690 if (benchmarks_compatible and 691 691 test.compatible(other)): 692 # Both benchmark and tests are compar ible692 # Both benchmark and tests are comparable 693 693 min_diff = ((min_time * self.warp) / 694 694 (other_min_time * other.warp) - 1.0) … … 704 704 avg_diff = '%+5.1f%%' % (avg_diff * PERCENT) 705 705 else: 706 # Benchmark or tests are not compar ible706 # Benchmark or tests are not comparable 707 707 min_diff, avg_diff = 'n/a', 'n/a' 708 708 tests_compatible = 0 -
python/vendor/current/Tools/pybench/systimes.py
r2 r388 6 6 This module implements various different strategies for measuring 7 7 performance timings. It tries to choose the best available method 8 based on the platform aand available tools.8 based on the platform and available tools. 9 9 10 10 On Windows, it is recommended to have the Mark Hammond win32
Note:
See TracChangeset
for help on using the changeset viewer.