;
Ðâ"Ic               @   s³  d  Z  d Z d d l Z d d l Z d d l m Z d d l m Z e ƒ  d d l m	 Z	 Gd	 „  d
 ƒ Z
 d „  Z g  Z x e e j j ƒ  ƒ D]y Z e d k p e e d ƒ o q n e j Z e j d ƒ o e d d … Z n e j d ƒ o e j e ƒ q q We
 d d g d d d d ƒ Z e	 j e ƒ Z	 x e	 j D] Z e e _ qDWe ƒ  Z x( e D]  Z e d e ƒ e	 j e ƒ qgWe d e ƒ  e e  e j ƒ f ƒ d S(   uÕ   
This is a benchmarking script to test the speed of 2to3's pattern matching
system. It's equivalent to "refactor.py -f all" for every Python module
in sys.modules, but without engaging the actual transformations.
u$   Collin Winter <collinw at gmail.com>i    N(   u   timei   (   u   adjust_pathi   (   u   refactorc             B   s   |  Ee  Z d  „  Z d S(   c             K   s@   x0 t  | j ƒ  ƒ D] \ } } t |  | | ƒ q Wd |  _ d  S(   NF(   u   listu   itemsu   setattru   Falseu   verbose(   u   selfu   kwargsu   ku   v(    (    u4   /mit/python/lib/python3.0/lib2to3/tests/benchmark.pyu   __init__   s     N(   u   __name__u
   __module__u   __init__(   u
   __locals__(    (    u4   /mit/python/lib/python3.0/lib2to3/tests/benchmark.pyu   Options   s   
u   Optionsc              O   s   d  S(   N(    (   u   argsu   kwargs(    (    u4   /mit/python/lib/python3.0/lib2to3/tests/benchmark.pyu   dummy_transform   s    u   __file__u   .pyciÿÿÿÿu   .pyu   fixu   allu   print_functionu   doctests_onlyu   Matchingu   %d seconds to match %d filesF(!   u   __doc__u
   __author__u   os.pathu   osu   sysu   timeu   supportu   adjust_pathu    u   refactoru   Optionsu   dummy_transformu   filesu   listu   modulesu   valuesu   modu   Noneu   hasattru   __file__u   fu   endswithu   appendu   Falseu   optionsu   RefactoringToolu   fixersu   fixeru	   transformu   tu   printu   refactor_fileu   len(    (    (    u4   /mit/python/lib/python3.0/lib2to3/tests/benchmark.pyu   <module>   s<   	 	
 	 