Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Peardrop CMS 0.2.3
  • CommaFeed 0.0.1
  • Squash
  • Pick-a-Color 1.1.5
  • MVIS Security Center 1....
  • EasyZoom 1.0.3
  • jQueryGantt
  • IMDBPHP 2.1.8
  • Dynamic WordPress Form ...
  • PathFinding.js 0.4.1
  • Home > Scripts > Programming Methods and Algorithms

    Pystone measurement decorator 1.1

    download button


    Downloads: 561  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    18 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Tarek Ziad | More scripts
    aspn.activestate.com
    Other Free / Open Source License - Python License 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    Python
    June 7th, 2007, 09:24 GMT
    C: \ Programming Methods and Algorithms

     Read user reviews (0)  Refer to a friend  Subscribe

    Pystone measurement decorator description

    Pystone measurement decorator script explains how to check that a given function does not run slower than a given pystone rate.

    This script explains how to check that a given function does not run slower than a given pystone rate. It first calculates the pystone ratio on your box.

    This decoraone ratiot to use in production code, and would rather fit in functional or unit tests. This make performance tests portable to any box and fits performance regression tests you would want to run in unit tests.

    DurationError is an AssertionError so it is reported as a failure in tests. local_pystone() is separated so you can call it once for many tests,and give it in the second argument of the decorator.

    TOLERANCE is used to prevent failures for a busy CPU. (it's faster than using a 3-times test like hotshot does)




    TAGS:

    Pystone measurement | pystone rate | pystone ratio | Pystone | measurement | ratio

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM