403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/__pycache__/timeit.cpython-315.pyc
R
>lqj�:c��Qs]PHs]PHs]PHs]PHs,QNsQsQs]s\Os
Qs\s
QsQsQQ2sQQ\
\P1Q	ksQQ\
\\P1Q
ksQQP-Qkks\Q
6Xc\O*\22P!P!)a�Tool for measuring execution time of small code snippets.

This module avoids a number of common traps for measuring execution
times.  See also Tim Peters' introduction to the Algorithms chapter in
the Python Cookbook, published by O'Reilly.

Library usage: see the Timer class.

Classes:

    Timer

Functions:

    timeit(string, string) -> float
    repeat(string, string) -> list
    default_timer() -> float
�Timerz<timeit-src>i@Bg�������?z�
def inner(_it, _timer{init}):
    {setup}
    _t0 = _timer()
    for _i in _it:
        {stmt}
        pass
    _t1 = _timer()
    return _t1 - _t0
c�D�UOQQQU**2!)z*Helper to reindent a multi-line statement.�
� )�replace)�src�indents&&�C:\Python315\\Lib\timeit.py�reindentr	2s���;�;�t�T�C�&�L�0�1�1�c�j`�\sQs]7snQsQQ\P1QksQ	Qks\1Qks	\
\1QksP\1Qks
QsUsP!)
ra�Class for timing execution speed of small code snippets.

The constructor takes a statement to be timed, an additional
statement used for setup, and a timer function.  Both statements
default to 'pass'; the timer function is platform-dependent (see
module doc string).  If 'globals' is specified, the code will be
executed within that namespace (as opposed to inside timeit's
namespace).

To measure the execution time of the first statement, use the
timeit() method.  The repeat() method is a convenience to call
timeit() multiple times and return a list of results.

The statements may contain newlines, as long as they don't contain
multi-line string literals.
�passc�n�V0m-oUe[2LSoPo[U[2%c([	U[
Q2UQ*o[
U]2oL.[U2%cV%Q$UQ*
oPoQoL[Q2g[U[2%c%[	V�*[
Q2[
U]2oL,[U2%cVQ$UQ*
oQ	oL[Q
2g[OVUQ5o	V�m[	U	[
Q2o
[V�U2UQ*Um
P!)
z#Constructor.  See class doc string.�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�formatrrr)�selfrrr�globals�local_ns�	global_nsr�
stmtprefixr�codes&&&&&      r�__init__�Timer.__init__Is���
���")�/�H�J�w�	����e�S�!�!��E�>�6�2����J��U�A�&�E�
�e�_�_�!&�X���%�%�D��J��E��E�F�F��d�C� � ��J�%�~�v�>��D�!�$�D�
�d�^�^� $�W���O�#�D��D��D�E�E��o�o�4�4�o�@�����s�N�F�3���T�h�'��g�&��
r
c��]PHo]PHoUOdH[UO2PUOO	Q2[
1UO[
$UOQP
2UQ$UOQQU-U@P!)anHelper to print a traceback from the timed code.

Typical use:

    t = Timer(...)       # outside the try/except
    try:
        t.timeit(...)    # or t.repeat(...)
    except:
        t.print_exc()

The advantage over the standard traceback is that source lines
in the compiled template will be displayed.

The optional file argument directs where the traceback is
sent; it defaults to sys.stderr.

The optional colorize keyword argument controls whether the
traceback is colorized; it defaults to False for programmatic
usage. When used from the command line, this is automatically
set based on terminal capabilities.
r�colorize�file�)	�	linecache�	tracebackr�len�splitr�cache�get�	print_exc)rr)�kwargsr+r,s&&,  rr1�Timer.print_exclso��,	$��8�8��/2�4�8�8�}�/3�/3�x�x�~�~�d�/C�/=�/?�I�O�O�N�+�$�Z�Z�
�E�:��z�����0��0��0r
c�B�[OPU2o[O2o[O2UOV O2oU%c[O2U!S%c[O2hh9h)a�Time 'number' executions of the main statement.

To be precise, this executes the setup statement once, and
then returns the time it takes to execute the main statement
a number of times, as float seconds if using the default timer.   The
argument is the number of times through the loop, defaulting
to one million.  The main statement, the setup statement and
the timer function to be used are passed to the constructor.
)�	itertools�repeat�gc�	isenabled�disablerr�enable)r�number�it�gcold�timings&&   r�timeit�Timer.timeit�sg���
�
�d�F�
+�������
�
�
��	��Z�Z��J�J�/�F���	�	���
����	�	���s�A>�>B�Bc�v�,o[U2FD%oUOU2oUOU2J'	U!)ahCall timeit() a few times.

This is a convenience function that calls the timeit()
repeatedly, returning a list of results.  The first argument
specifies how many times to call timeit(), defaulting to 5;
the second argument specifies the timer argument, defaulting
to one million.

Note: it's tempting to calculate mean and standard deviation
from the result vector and report these.  However, this is not
very useful.  In a typical case, the lowest value gives a
lower bound for how fast your machine can run the given code
snippet; higher values in the result vector are typically not
caused by variability in Python's speed, but by other
processes interfering with your timing accuracy.  So the min()
of the result is probably the only number you should be
interested in.  After that, you should look at the entire
vector and apply common sense rather than statistics.
)�ranger?�append)rr6r;�r�i�ts&&&   rr6�Timer.repeat�s7��(
���v��A����F�#�A�
�H�H�Q�K���r
c��]oQFD8oV4*oUOU2oU%c	UVV2Vb6�fJ4VV1t!	U]
*oJK)a�Return the number of loops and time taken so that
total time >= target_time (default is 0.2 seconds).

Calls the timeit method with increasing numbers from the sequence
1, 2, 5, 10, 20, 50, ... until the target time is reached.
Returns (number, time_taken).

If *callback* is given and is not None, it will be called after
each trial with two arguments: ``callback(number, time_taken)``.
)���)r?)r�callback�target_timerE�jr;�
time_takens&&&    r�	autorange�Timer.autorange�sP��
��������!�[�[��0�
���V�0��,�"�/�/�
�
��G�Ar
)rrr�N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�
default_timerr%r1�default_numberr?�default_repeatr6�default_target_timerP�__static_attributes__�__classdictcell__)�
__classdict__s@rrr7sJ�����"#�&�
��!'�F1�B+��(+�>��4"&�3F��r
rc�:�[VV$2OU2!)zCConvenience function to create Timer object and call timeit method.)rr?)rrrr;r s&&&&&rr?r?�s����e�-�4�4�V�<�<r
c�:�[VV%2OV42!)zCConvenience function to create Timer object and call repeat method.)rr6)rrrr6r;r s&&&&&&rr6r6�s����e�-�4�4�V�D�Dr
�_wrap_timerc�,	```` `!�]PHoUe[OQ*o]PHoUO	2oUOUQ5OnROnQoUOQQUUOQ5oUOQQ[]Q	Q
5UOQQ[[Q
Q
5UOQQQ,QQ5UOQQQQQ5UOQQ[[QQ
5UOQQQ]QQ5UOQQ P,QDNQ%Q&5UOQ'Q(Q),Q*Q+5UOU2oUO$%c[&O(L[*o	Q,O-UO.29%fQ)o
UO0oUO2oQ,O-UO429%fQ)o
[7UO8]2oUO:oUO<n Q!Q-Q"Q.Q#Q/Q$Q0-n!][7U]*
]2*n]PH~o[O@OC]UOD2Ud	UU	2o	[GV�U	2oU]6Xc;PoU%c	UUU1Q1koUOIUU2vooU%c[M2UO9V�2oUU U!1Q3koU%cLRONQ40O-U1Q5k[QUU222o[MQ6UR02[M2STt,tFDoUU*MJ	oo[SU2o[7U2oU]6XcPLQ7oUQ8UQ9UQ:ROTUU2RQ;ROVQ<R0
2UU]*6�c�]PH�o[M[OZQ=5UO]RO^Q>RO`Q?UU2Q@RO^QARObQBUU2Q@RO^QCR0[dP]2P![ coSO"tPo=!Po=hh9hSOKSQ25]!9hSOKSQ25]!9httoh)EagMain program, used when run as a script.

The optional 'args' argument specifies the command line to be parsed,
defaulting to sys.argv[1:].

The return value is an exit code to be passed to sys.exit(); it
may be None to indicate success.

When an exception happens during timing, a traceback is printed to
stderr and the return value is 1.  Exceptions at other times
(including the template compilation) are not caught.

'_wrap_timer' is an internal interface used for unit testing.  If it
is not None, it must be a callable that accepts a timer function
and returns another timer function (used for unit testing).
:rINN)�force_colora�A multi-line statement may be given by specifying each line as a
separate argument; indented lines are possible by enclosing an
argument in quotes and using leading spaces. Multiple `-s` options are
treated similarly.

If `-n` is not given, a suitable number of loops is calculated by trying
increasing numbers from the sequence 1, 2, 5, 10, 20, 50, ... until the
total time is at least `--target-time` seconds.

Note: there is a certain baseline overhead associated with executing a
pass statement. It differs between versions. The code here doesn't try
to hide it, but you should be aware of it. The baseline overhead can be
measured by invoking the program without arguments.zpython -m timeitaTool for measuring execution time of small code snippets.

This module avoids a number of common traps for measuring execution
times. See also Tim Peters' introduction to the Algorithms chapter in
the Python Cookbook, published by O'Reilly.

Library usage: see the `Timer` class.)�prog�description�epilog�formatter_classz-nz--numberz:how many times to execute 'statement' (default: see below))�type�default�helpz-rz--repeatz8how many times to repeat the timer (default %(default)s)z-sz--setuprCznstatement to be executed once initially. Execution time of this setup statement is NOT timed. (default 'pass'))�actionrirjz-pz	--process�
store_truez<use `time.process_time()` (default is `time.perf_counter()`))rkrjz-tz
--target-timezdif `--number` is 0 the code will run until it takes at least this many seconds (default %(default)s)z-vz	--verbose�countz:print raw timing results; repeat for more digits precisionz-uz--unit�nsec�usec�msec�seczset the output time unit)ri�choicesrj�	statement�*rz&statement to be timed (default 'pass'))�nargsrirjrg��&�.>g���ư>g����MbP?g�?c
�:�U]6XcPLQo[UQUQROQROUQRQ0
QR0
2P!)rI�s� looprz-> �.�gz sec)�print�punctuationr>)r;rOrw�	precision�reset�themes&& ���rrL�main.<locals>.callbackisW��� �A�+�B�3����h�e�A�3�a��(�(�)���|�|�n�Z��)��A�~�$>�d�5�'�K�r
)r(c��:�RoUdRU*oLLRO2TTt,tFDvqV!1MJ
	oooUOP	Q5SFDvq!V6�fJ
L	QRUW*W1*!ttooh)N)�reversez%.*g %s)�items�sort)�dt�unit�scale�scalesr}�	time_unit�unitss&   ���r�format_time�main.<locals>.format_time�su��������$�K�E�7<�{�{�}�E�}���u�m�}�F�E��K�K��K�%�%����;�� &��I�r�E�z�4�8�8�8��
Fs�A2z, c3�P:�SF �DoROU0w�	J	P!3hrR)r>)�.0rFrs& �r�	<genexpr>�main.<locals>.<genexpr>�s ��*G���*G�Q�u�|�|�n�Q�C� �*G�s�&zraw times: rwrxz
, best of z: rzper loop)r)z,The test results are likely unreliable. The zworst time (�)z* was more than four times slower than the zbest time (ry)rnrorprq)3�argparse�sys�argv�	_colorize�can_colorize�	get_themer?r~�ArgumentParser�RawDescriptionHelpFormatter�add_argument�intrZ�floatr[�
parse_args�
SystemExitr$�process�time�process_timerX�joinrsr;rMr�maxr6�verboser��os�path�insert�curdirrrPr1r{r|�map�min�best�per_loop�warnings�stderr�
warn_explicit�warning�
warning_worst�warning_best�UserWarning)"�argsrar�r�r(rf�parser�ns�errr;rMrr6r�r�rFrL�_�raw_timingsr��rawr��timingsr��worstrwr�r}r~rr�r�s"&$                           @@@@@r�mainr��s����"��|��x�x��|����%�%�'�H����H��5�<�<�E��K�K�E�
7�F��
$�
$�
�)�� �<�<�%��F������
��
I��������
��
G�������������������
K�	�������
�#�;����������
I���������/�
'����������
5�	���
�
�
�t�
$��"$����D����E��9�9�R�\�\�"�,�,�f�D�
�Y�Y�F��.�.�K��I�I�b�h�h��)�)�6�E�
����A�
�F��j�j�G����I�
�T�6�4���u�c�B�E��C��!��Q�'�'�I�
��H�H�O�O�A�r�y�y�!����E�"��
�d�5�!�A�
��{����
�	����H�k�:�I�F�A�
��G���h�h�v�.��
9���"�"�#�2�&�+�+�,
�*-�k�;�*G�,
�
��	��C�5���(�)�
��%0�1�[�r�r�F�{�{�[�G�1��w�<�D���L�E���k��s�A�	��(�%��s�*�V�H�B��:�:�,�{�4�(�)�%����>�>�
�(�5�'�	+��
��q����
�3�:�:������}�}�o���&�&�'�|�K��4F�3G�q��}�}�o�G��!�!�"�+�k�$�.?�-@���}�}�o�Q�u�g�	
'�

��Q�
	
���{���v�v�
����J	�
�K�K��K�*����	���X��&���,2sB�	P9�Q�>Q7�-R�9	Q�Q�Q�Q�Q�Q4�7R�__main__)rr?r6rXrR)rWr7r5r�r��__all__rrYrZ�perf_counterrXr[r rrr	rr?r6r�rS�exitr*r
r�<module>r�s����&
��
��
8���������!�!�
�����
	��2�
X�X�v�f�M� �$�=��f�M� ���E�M�4�M�`�z���H�H�T�V��r

Youez - 2016 - github.com/yon3zu
LinuXploit