uawdijnntqw1x1x1
IP : 18.117.168.40
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
..
/
home2
/
..
/
..
/
lib64
/
enchant
/
..
/
games
/
..
/
python3.8
/
__pycache__
/
timeit.cpython-38.opt-2.pyc
/
/
U e5d�4�@s�ddlZddlZddlZddlZddddgZdZdZdZejZ e Zd Zd d�Z Gdd�d�Zd d e edfdd�Zd d e eedfdd�Zddd�dd�Zedkr�e�e��dS)�N�Timer�timeit�repeat� default_timerz<timeit-src>i@B�z� def inner(_it, _timer{init}): {setup} _t0 = _timer() for _i in _it: {stmt} _t1 = _timer() return _t1 - _t0 cCs|�ddd|�S)N� � )�replace)�src�indent�r�/usr/lib64/python3.8/timeit.py�reindentOsrc@sLeZdZddedfdd�Zd dd�Zefdd�Zeefd d �Z ddd�Z dS)r�passNcCs�||_i}|dkrt�n|}d}t|t�rJt|td�|d}t|d�}n*t|�rl||d<|d7}d}d}ntd��t|t�r�t||td�t|d �}n&t|�r�||d <|d7}d}ntd ��t j |||d�} | |_t| td�} t| ||�|d|_ dS)N��execr��_setupz, _setup=_setupz_setup()z&setup is neither a string nor callable�Z_stmtz , _stmt=_stmtz_stmt()z%stmt is neither a string nor callable)�stmt�setup�init�inner)�timer�_globals� isinstance�str�compile�dummy_src_namer�callable� ValueError�template�formatr rr)�selfrrr�globalsZlocal_nsZ global_nsrZ stmtprefixr �coderrr �__init__es6 zTimer.__init__cCsJddl}ddl}|jdk r:t|j�d|j�d�tf|jt<|j|d�dS)Nrr��file)� linecache� tracebackr �len�splitr�cache� print_exc)r#r(r)r*rrr r.�s � zTimer.print_exccCsBt�d|�}t��}t��z|�||j�}W5|r<t��X|S�N)� itertoolsr�gcZ isenabledZdisableZenablerr)r#�number�itZgcoldZtimingrrr r�s zTimer.timeitcCs*g}t|�D]}|�|�}|�|�q|Sr/)�ranger�append)r#rr2�r�i�trrr r�s zTimer.repeatcCsPd}dD]8}||}|�|�}|r,|||�|dkr||fSq|d9}qdS)N�)r9�rg�������?� )r)r#�callbackr7�jr2� time_takenrrr � autorange�s zTimer.autorange)N)N)�__name__� __module__�__qualname__rr&r.�default_numberr�default_repeatrr?rrrr rSs� # rcCst||||��|�Sr/)rr)rrrr2r$rrr r�scCst||||��||�Sr/)rr)rrrrr2r$rrr r�s)�_wrap_timerc s|dkrtjdd�}ddl}z(|�|ddddddd d ddg �\}}Wn:|jk r�}zt|�td �WY�dSd}~XYnXt}d�|�p�d}d�g}t}d} d�ddddd��d�|D]�\} }| dkr�t|��| dkr�|� |�| dk�r|�k�r|�ntdtj d�dS| dk�r6t|�}|dk�r6d}| dk�rFtj}| dk�rf| �r^�d7�| d7} | dkr�tt d d!�dSq�d�|��p�d}ddl}tj�d|j�|dk �r�||�}t|||�} �dk�rd}| �r�fd"d#�}z| �|�\�}Wn| ��YdSX| �rt�z| �|��}Wn| ��YdSX���fd$d%�}| �rztd&d'�t||���t��fd(d)�|D�}t|�}td*��dk�r�d+nd,|||�f�t|�}t|�}||d-k�rddl}|�d.||�||�ftd,d�dS)/Nr9rz n:u:s:r:tcpvhznumber=zsetup=zrepeat=�timeZclockZprocess�verbosezunit=�helpz#use -h/--help for command line helpr:rrg��&�.>g���ư>g����MbP?g�?)ZnsecZusecZmsecZsec�)z-nz--number)z-sz--setup)z-uz--unitz:Unrecognized unit. Please select nsec, usec, msec, or sec.r')z-rz--repeat)z-pz --process)z-vz --verbose)z-hz--helpr)�endcs.d}|dk}t|j||rdnd|�d��dS)Nz%{num} loop{s} -> {secs:.{prec}g} secsr9�sr)ZnumrKZsecsZprec)�printr")r2r>�msgZplural)� precisionrr r<?s�zmain.<locals>.callbackcs`�}|dk r�|}n8dd����D�}|jdd�|D]\}}||kr8qNq8d�|||fS)NcSsg|]\}}||f�qSrr)�.0�unit�scalerrr � <listcomp>Ysz-main.<locals>.format_time.<locals>.<listcomp>T)�reversez%.*g %s)�items�sort)�dtrPrQZscales)rN� time_unit�unitsrr �format_timeSs zmain.<locals>.format_timez raw times: %sz, csg|]}|��qSrr)rOrV)r2rr rRdszmain.<locals>.<listcomp>z"%d loop%s, best of %d: %s per looprKrrztThe test results are likely unreliable. The worst time (%s) was more than four times slower than the best time (%s).)�sys�argv�getopt�errorrLr�joinrD�intr5�stderrrF�process_time�__doc__�os�path�insert�curdirrr?r.r�map�min�max�warnings� warn_explicit�UserWarning)�argsrEr\Zopts�errrrrrrG�o�arcr8r<�_Zraw_timingsrYZtimingsZbestZworstrjr)r2rNrWrXr �main�s��� � ����rr�__main__)N)r1rZrFr0�__all__rrCrD�perf_counterrr$rr!rrrrrrr@�exitrrrr �<module>4s4 � �
/home/../home2/../../lib64/enchant/../games/../python3.8/__pycache__/timeit.cpython-38.opt-2.pyc