~ubuntu-branches/ubuntu/gutsy/egenix-mx-base/gutsy

« back to all changes in this revision

Viewing changes to mx/Tools/mxTools/bench2.py

  • Committer: Bazaar Package Importer
  • Author(s): Joel Rosdahl
  • Date: 2004-04-08 00:08:58 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040408000858-6ylsa7uftlacyqqs
Tags: 2.0.5-1
* New upstream release.
* Removed 01_TextTools_tagdict.dpatch and 02_None_rebound.dpatch
  patches; merged in upstream.
* Don't build Python 1.5 packages anymore.
* Standards-Version 3.6.1.
* Created 03_Segfault_fix.dpatch.
* Include ExitFunctions.py from mxBeebase in mxTools. Closes: bug#242447.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
    for i in trange(100):
16
16
        x = tuples(x)
17
17
 
18
 
def f3(apply=apply,map=map,None=None,tuple=tuple):
 
18
def f3(apply=apply,map=map,tuple=tuple):
19
19
 
20
20
    x = (a,a,a)
 
21
    y = None
21
22
    for i in trange(100):
22
 
        x = apply(map,(None,)+tuple(x))
 
23
        x = apply(map,(y,)+tuple(x))
23
24
 
24
25
print 'lists:',hack.clock('f1()')
25
26
print 'tuples:',hack.clock('f2()')