Hacked By AnonymousFox

Current Path : /opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/__pycache__/timeit.cpython-311.opt-2.pyc

�

c��f�4����	ddlZddlZddlZddlZgd�ZdZdZdZejZ	e
ZdZd�Z
Gd�d	��Zd
d
e	edfd�Zd
d
e	eedfd�Zddd
�d�Zedkreje����dSdS)�N)�Timer�timeit�repeat�
default_timerz<timeit-src>i@B�z�
def inner(_it, _timer{init}):
    {setup}
    _t0 = _timer()
    for _i in _it:
        {stmt}
        pass
    _t1 = _timer()
    return _t1 - _t0
c�<�	|�ddd|zz��S)N�
� )�replace)�src�indents  �-/opt/alt/python311/lib64/python3.11/timeit.py�reindentrQs"��4��;�;�t�T�C�&�L�0�1�1�1�c�F�eZdZ	ddedfd�Zdd�Zefd�Zeefd�Z	dd�Z
dS)	r�passNc��	||_i}|�t��n|}d}t|t��r,t	|t
d��|dz}t
|d��}n-t|��r||d<|dz
}d}d}ntd���t|t��r*t	||zt
d��t
|d	��}n+t|��r
||d
<|dz
}d}ntd
���t�
|||���}	|	|_t	|	t
d��}
t|
||��|d|_
dS)N��execr	��_setupz, _setup=_setupz_setup()z&setup is neither a string nor callable��_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�globals�local_ns�	global_nsr�
stmtprefixr�codes           r�__init__zTimer.__init__hsj��1���
���")�/�H�J�J�J�w�	����e�S�!�!�	G��E�>�6�2�2�2����J��U�A�&�&�E�E�
�e�_�_�	G�!&�H�X���%�%�D��J��E�E��E�F�F�F��d�C� � �		F��J��%�~�v�>�>�>��D�!�$�$�D�D�
�d�^�^�	F� $�H�W���O�#�D��D�D��D�E�E�E��o�o�4�u�4�o�@�@������s�N�F�3�3���T�9�h�'�'�'��g�&��
�
�
rc���	ddl}ddl}|j�Bt|j��d|j�d��t
f|jt
<|�|���dS)Nrr	��file)�	linecache�	tracebackr�len�splitr#�cache�	print_exc)r(r1r2r3s    rr7zTimer.print_exc�sx��	� 	$�#�#�#�#�#�#�#��8��/2�4�8�}�}�/3�/3�x�~�~�d�/C�/C�/=�/?�I�O�N�+�	�����&�&�&�&�&rc��	tjd|��}tj��}tj��	|�||j��}|rtj��n#|rtj��wwxYw|S�N)�	itertoolsr�gc�	isenabled�disablerr�enable)r(�number�it�gcold�timings     rrzTimer.timeit�s���	��
�d�F�
+�
+�������
�
����	��Z�Z��D�J�/�/�F��
��	�������
��	�����
�����
s�A/�/Bc��	g}t|��D],}|�|��}|�|���-|Sr9)�ranger�append)r(rr?�r�i�ts      rrzTimer.repeat�sJ��	�&
���v���	�	�A����F�#�#�A�
�H�H�Q�K�K�K�K��rc��	d}	dD]6}||z}|�|��}|r|||��|dkr||fcS�7|dz}�?)N�T)rJ�rg�������?�
)r)r(�callbackrG�jr?�
time_takens      r�	autorangezTimer.autorange�s���	�
��	��
0�
0���Q���!�[�[��0�0�
��1��H�V�Z�0�0�0���$�$�"�J�/�/�/�/�%�
��G�A�	rr9)�__name__�
__module__�__qualname__rr.r7�default_numberr�default_repeatrrP�rrrrVs��������"#�&�
��!'�!'�!'�!'�F'�'�'�'�6+�����(+�>�����4�����rrrc�N�	t||||���|��Sr9)rr)rrrr?r)s     rrr�s'��M���u�e�W�-�-�4�4�V�<�<�<rc�P�	t||||���||��Sr9)rr)rrrrr?r)s      rrr�s)��M���u�e�W�-�-�4�4�V�V�D�D�Dr)�_wrap_timerc	�n�����	|�tjdd�}ddl}	|�|dgd���\}}n6#|j$r)}t	|��t	d��Yd}~dSd}~wwxYwt
}d�|��pd}d�g}t}d}	d�d	d
ddd
��d�|D]�\}
}|
dvrt|���|
dvr|�	|��|
dvr%|�vr|�nt	dtj
���dS|
dvrt|��}|dkrd}|
dvrtj}|
dvr|	r�dz
�|	dz
}	|
dvrt	td���dS��d�|��pd}ddl}tj�d|j��|�||��}t%|||��}
�dkrOd}|	r�fd�}	|
�|��\�}n#|
���YdSxYw|	rt	��	|
�|���}n#|
���YdSxYw���fd�}|	rAt	dd�t-||����z��t	���fd�|D��}t/|��}t	d��dkrd nd!|||��fz��t/|��}t1|��}||d"zkr:ddl}|�d#||���d$||���d%�t6d!d��dS)&NrJrz
n:u:s:r:tcpvh)	znumber=zsetup=zrepeat=�time�clock�process�verbosezunit=�helpz#use -h/--help for command line helprKr	rg��&�.>g���ư>g����MbP?g�?)�nsec�usec�msec�sec�)z-nz--number)z-sz--setup)z-uz--unitz:Unrecognized unit. Please select nsec, usec, msec, or sec.r0)z-rz--repeat)z-pz	--process)z-vz	--verbose)z-hz--helpr
)�endc�l��d}|dk}t|�||rdnd|������dS)Nz%{num} loop{s} -> {secs:.{prec}g} secsrJ�sr)�numrg�secs�prec)�printr')r?rO�msg�plural�	precisions    �rrMzmain.<locals>.callbackEs[���=�� �A�+���c�j�j�V�f�/D�s�s�"�&0�y�!�B�B�C�C�C�C�Crc����}|�	�|}nDd�����D��}|�d���|D]
\}}||krn�d�||z|fzS)Nc��g|]	\}}||f��
SrVrV)�.0�unit�scales   r�
<listcomp>z-main.<locals>.format_time.<locals>.<listcomp>_s ��E�E�E���e�u�d�m�E�E�ErT)�reversez%.*g %s)�items�sort)�dtrrrs�scalesrn�	time_unit�unitss    ���r�format_timezmain.<locals>.format_timeYs���������$�K�E�E�E�E�u�{�{�}�}�E�E�E�F��K�K��K�%�%�%�%�
�
���t���;�;��E���I�r�E�z�4�8�8�8rz
raw times: %sz, c���g|]}|�z��SrVrV)rqrxr?s  �rrtzmain.<locals>.<listcomp>js���1�1�1�r�r�F�{�1�1�1rz"%d loop%s, best of %d: %s per looprgrrz8The test results are likely unreliable. The worst time (z6) was more than four times slower than the best time (z).)�sys�argv�getopt�errorrkr�joinrU�intrE�stderrr[�process_time�__doc__�os�path�insert�curdirrrPr7r�map�min�max�warnings�
warn_explicit�UserWarning)�argsrYr��opts�errrrrrr^�o�ar�rHrM�_�raw_timingsr|�timings�best�worstr�r?rnrzr{s                      @@@@r�mainr��sf������� �|��x����|���M�M�M���]�]�4��$@�$@�$@�A�A�
��d�d���<����
�c�
�
�
�
�3�4�4�4��q�q�q�q�q���������

�E��9�9�T�?�?�$�f�D�
�F��E�
�F��G��I��4��c�B�B�E��I������1��"�"�"���V�V�F��!�!�!��L�L��O�O�O�� � � ��E�z�z��	�	��R��:�'�'�'�'��q�q��"�"�"���V�V�F���{�{����#�#�#��%�E��#�#�#��
��Q��	��q�L�G�� � � ��'�s�#�#�#�#��1�1�!�
�I�I�e���&��E�
�I�I�I��H�O�O�A�r�y�!�!�!�����E�"�"��
�d�E�5�!�!�A�
��{�{����	C�
C�
C�
C�
C�
C�
	����H�-�-�I�F�A�A��	�
�K�K�M�M�M��1�1�����	��G�G�G���h�h�v�v�.�.�����	���
�
�
��q�q����9�9�9�9�9�9�9���
�o��	�	�#�k�;�*G�*G� H� H�H�I�I�I�
����1�1�1�1�[�1�1�1�G��w�<�<�D�	�
.�
�F�a�K�K�S�S�R�
�[�[��&�&�
(�(�)�)�)��w�<�<�D���L�L�E���q������������#.�+�e�"4�"4�"4�"4�k�k�$�6G�6G�6G�6G� I� +�B��		3�	3�	3�
�4s-�>�
A1�A,�,A1�
G&�&G?�H*�*I�__main__r9)r;r:r~r[�__all__r#rTrU�perf_counterrr)rr&rrrrr�rQ�exitrVrr�<module>r�sF��/�b
�	�	�	�����
�
�
�
�����
8�
8�
8���������!�
���
	��2�2�2�
Q�Q�Q�Q�Q�Q�Q�Q�h�f�M� �$�=�=�=�=��f�M� ���E�E�E�E�D�4�D�D�D�D�D�N�z����C�H�T�T�V�V�������r

Hacked By AnonymousFox1.0, Coded By AnonymousFox