/usr/lib64/python2.6/site-packages/mx/Queue
Edit: /usr/lib64/python2.6/site-packages/mx/Queue/queuebench.pyc (2677B)
Ñò
ÔÅVHc @ s d Z d d k Z d d k l Z d d k Z d d k l Z l Z yJ e e d e e d e e d Z Z
Z e
e j p t Wn d GHe d n Xd Z
d
Z d Z d Z d
Z d Ge
e e GHd Ge
e e GHd Ge
e e GHd Ge
e e GHd S( s0 queuebench - queue implementation benchmark
Copyright (c) 2000, Marc-Andre Lemburg; mailto:mal@lemburg.com
Copyright (c) 2000-2008, eGenix.com Software GmbH; mailto:info@egenix.com
See the documentation for further information on copyrights,
or contact the author. All Rights Reserved.
iÿÿÿÿN( t Queue( t argvt exiti i i sG usage: queuebench.py
, where >= c C s: t i } x t | D] } | } q Wt i | S( N( t timet clockt xrange( t repst funct start_cput it x( ( s9 /usr/lib64/python2.6/site-packages/mx/Queue/queuebench.pyt test s
c C s\ g } | i } x t t D] } | d q Wx% t t D] } | d } | d =q= Wd S( Nt spamR i t spami( t appendt ranget pushest pops( R
t pushR t top( ( s9 /usr/lib64/python2.6/site-packages/mx/Queue/queuebench.pyt method1 s
c C sc t i } | i } | i } x t t D] } | d q+ Wx t t D] } | } qL Wd S( NR R R
( R R t popR R R ( t sR R R R ( ( s9 /usr/lib64/python2.6/site-packages/mx/Queue/queuebench.pyt method3! s
c C sY t i } | i } x t t D] } | d >q" Wx t t D] } | d ?} qA Wd S( NR R i R
( R R R R R ( R R R R ( ( s9 /usr/lib64/python2.6/site-packages/mx/Queue/queuebench.pyt method3b/ s
c C sc t i } | i } | i } x t t D] } | d q+ Wx t t D] } | } qL Wd S( NR R R
( t UserQueueR R R R R ( R R R R R ( ( s9 /usr/lib64/python2.6/site-packages/mx/Queue/queuebench.pyt method4= s
s list: s Queue (with push + pop):s Queue (with << + >>):s
UserQueue:( t __doc__R t mxR R t sysR R t evalt numtestsR R t AssertionErrorR R R R R ( ( ( s9 /usr/lib64/python2.6/site-packages/mx/Queue/queuebench.pyt s&