Convenience 'timeit' function

Category: Python - Education

This function makes it easier to use the timeit module from the interactive interpreter. You should just specify function with (optional) arguments to run, optional number of runs, and optional name of module (which if not specified defaults to the name of the function). Date: 24 January, 2012


Timeit Module - Interactive Interpreter - Debugging Script - Timeit - Module - Interpreter

Homepage: http://code.activestate.com/

Developer: code.activestate.com

License: Freeware

Operating System: All

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

This script contains a function to use the timeit module from a script, creating a nice overview of the runtimes of one or more code snippets.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This function makes it easier to use the timeit module from the interactive interpreter.

developer Developer: code.activestate.com
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Windows, Linux, Mac OS, BSD, Solaris


This script is a simple embedded multiline python interpreter built around raw_input().

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


In most languages with closures, it is possible to change a closed-over value and have the change visible in other closures which share a reference to the same variable.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script helps you in adding new format specifiers to the logging module.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This script acts like a stepping debugger to diagnose and fix your programs.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


Since Python 2.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


This class wraps up a complex boolean word expression, creating an internal regular expression, and provides methods that allows you to perform matches and searches on it.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All


Memento design pattern in python script allows you to cache instances based on what arguments are passed to them.

developer Developer: code.activestate.com
license License: Freeware
operating systems Operating System: All