AlkantarClanX12

Your IP : 18.217.246.148


Current Path : /opt/alt/python312/lib64/python3.12/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/__pycache__/timeit.cpython-312.opt-2.pyc

�

�Q�f�4����	ddlZddlZddlZddlZgd�ZdZdZdZejZ	e
ZdZd�Z
Gd�d	�Zd
d
e	edfd�Zd
d
e	eedfd�Zddd
�d�Zedk(rej&e��yy)�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�4�	|jddd|zz�S)N�
� )�replace)�src�indents  �-/opt/alt/python312/lib64/python3.12/timeit.py�reindentrQs��4��;�;�t�T�C�&�L�0�1�1�c�D�eZdZ	ddedfd�Zdd�Zefd�Zeefd�Z	dd�Z
y)	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
��tj|||��}	|	|_t	|	t
d�}
t|
||�|d|_
y)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__hs��1���
���")�/�H�J�w�	����e�S�!��E�>�6�2����J��U�A�&�E�
�e�_�!&�H�X���%�%�D��J��E��E�F�F��d�C� ��J��%�~�v�>��D�!�$�D�
�d�^� $�H�W���O�#�D��D��D�E�E��o�o�4�u�4�o�@������s�N�F�3���T�9�h�'��g�&��
rc���	ddl}ddl}|j�Gt|j�d|jj	d�t
f|jt
<|j|��y)Nrr	��file)�	linecache�	tracebackr�len�splitr#�cache�	print_exc)r(r1r2r3s    rr7zTimer.print_exc�sZ��	� 	$��8�8��/2�4�8�8�}�/3�/3�x�x�~�~�d�/C�/=�/?�I�O�O�N�+�	�����&rc�"�	tjd|�}tj�}tj�	|j||j�}|rtj�|S#|rtj�wwxYw�N)�	itertoolsr�gc�	isenabled�disablerr�enable)r(�number�it�gcold�timings     rrzTimer.timeit�sn��	��
�
�d�F�
+�������
�
�
��	��Z�Z��D�J�J�/�F���	�	���
����	�	���s�A5�5Bc�p�	g}t|�D]$}|j|�}|j|��&|Sr9)�ranger�append)r(rr?�r�i�ts      rrzTimer.repeat�s<��	�&
���v��A����F�#�A�
�H�H�Q�K���rc�|�	d}	dD].}||z}|j|�}|r	|||�|dk\s�*||fcS|dz}�9)N�)rJ�rg�������?�
)r)r(�callbackrG�jr?�
time_takens      r�	autorangezTimer.autorange�sb��	�
������Q���!�[�[��0�
���V�Z�0���$�"�J�/�/�
�
��G�A�rr9)�__name__�
__module__�__qualname__rr.r7�default_numberr�default_repeatrrP�rrrrVs9���"#�&�
��!'�F'�6+��(+�>��4rrrc�>�	t||||�j|�Sr9)rr)rrrr?r)s     rrr�s!��M���u�e�W�-�4�4�V�<�<rc�@�	t||||�j||�Sr9)rr)rrrrr?r)s      rrr�s#��M���u�e�W�-�4�4�V�V�D�Dr)�_wrap_timerc	�����	|�tjdd}ddl}	|j|dgd��\}}t
}dj
|�xsd}d}g}t}	d}
d�d	d
ddd
��d�|D]�\}}|dvrt|�}|dvr|j|�|dvr$|�vr|�nt	dtj��y|dvrt|�}	|	dkrd}	|dvrtj}|dvr|
r�dz
�|
dz
}
|dvs��t	td��ydj
|�xsd}ddl}
tjj!d|
j"�|�||�}t%|||�}|dk(r*d}|
r�fd�}	|j'|�\}}|
r
t	�	|j+|	|�}���fd�}|
r1t	ddj
t-||��z�t	�|D�cgc]}||z��	}}t/|�}t	d||dk7rdnd |	||�fz�t/|�}t1|�}||d!zk\r/ddl}|j5d"||��d#||��d$�t6d d�y#|j$r }t	|�t	d�Yd}~yd}~wwxYw#|j)�YyxYw#|j)�YyxYwcc}w)%NrJrzn:u:s:r:pvh)znumber=zsetup=zrepeat=�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�X��d}|dk7}t|j||rdnd|����y)Nz%{num} loop{s} -> {secs:.{prec}g} secsrJ�sr)�numre�secs�prec)�printr')r?rO�msg�plural�	precisions    �rrMzmain.<locals>.callbackDs8���=�� �A�+���c�j�j�V�f�s�"�&0�y�!�B�Crc�����}|��|}nG�j�D��cgc]	\}}||f��}}}|jd��|D]\}}||k\s�nd�|zfzScc}}w)NT)�reversez%.*g %s)�items�sort)�dt�unit�scale�scalesrl�	time_unit�unitss    ���r�format_timezmain.<locals>.format_timeXs}��������$�K�E�7<�{�{�}�E�}���e�u�d�m�}�F�E��K�K��K�%�%���t���;�� &��I�r�E�z�4�8�8�8��
Fs�Az
raw times: %sz, z"%d loop%s, best of %d: %s per looprerrz8The test results are likely unreliable. The worst time (z6) was more than four times slower than the best time (z).)�sys�argv�getopt�errorrir�joinrU�intrE�stderr�time�process_time�__doc__�os�path�insert�curdirrrPr7r�map�min�max�warnings�
warn_explicit�UserWarning)�argsrYrz�opts�errrrr?rrr\�o�ar�rHrM�_�raw_timingsrwrq�timings�best�worstr�rlrurvs                        @@@r�mainr��s���� �|��x�x���|�����]�]�4��$K�L�
��d�
�E��9�9�T�?�$�f�D�
�F��E�
�F��G��I��4��c�B�E��I����1��"�"���V�F��!�!��L�L��O�� � ��E�z��	��R��:�:�'���"�"���V�F���{����#�#��%�%�E��#�#���Q��	��q�L�G�� � ��'�s�#��1�2
�I�I�e��&��E�
��H�H�O�O�A�r�y�y�!����E�"��
�d�E�5�!�A�
��{����
C�
	����H�-�I�F�A�
��G���h�h�v�v�.��
9��
�o��	�	�#�k�;�*G� H�H�I�
��%0�1�[�r�r�F�{�[�G�1��w�<�D�	�
.�
�F�a�K�S�R�
�[��&�
(�(�)��w�<�D���L�E���q�������#.�e�"4�k�$�6G� I� +�B��		3�
��W�<�<��
�c�
�
�3�4�����z	�
�K�K�M����	���
���&2s5�I0�9J"�J9�*K�0J�?J�J�"J6�9K
�__main__r9)r;r:rxr�__all__r#rTrU�perf_counterrr)rr&rrrrr�rQ�exitrVrr�<module>r�s���/�b
��
��
8���������!�!�
���
	��2�
Q�Q�h�f�M� �$�=��f�M� ���E�C�4�C�L�z���C�H�H�T�V��r