Package circuits :: Package tools :: Module bench

Module bench

(Tool) Bench Marking Tool

THis tool does some simple benchmaking of the circuits library.

Classes
  Stop
  Term
  Hello
  Received
  Foo
  Base
  Sender
  Receiver
  SpeedTest
  LatencyTest
  State
  Monitor
Functions
 
duration(seconds)
opts, args
parse_options()
Parse the command-line options given returning both the parsed options and arguments.
 
main()
Variables
  hostshot = None
hash(x)
  psyco = None
hash(x)
  USAGE = '%prog [options]'
  VERSION = '%prog v1.2'
  ERRORS = [(0, 'Cannot listen and connect at the same time!'), ...
  __package__ = 'circuits.tools'
Variables Details

ERRORS

Value:
[(0, 'Cannot listen and connect at the same time!'),
 (1, 'Invalid events spcified. Must be an integer.'),
 (2, 'Invalid time spcified. Must be an integer.'),
 (3, 'Invalid nthreads spcified. Must be an integer.')]