403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
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 :  /Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python315/Lib/test/__pycache__/test_timeit.cpython-315.opt-2.pyc
R
>lqj�Cc��]PHs]PHs]PHs]PHs]QHGs]QHGsGsG	s	G
s
]QH,GsQs
]sQQ2s\
QQ\O 22sQ	Q
\O 2s\Q6Xc\O(2P!P!)�)�dedent)�captured_stderr�captured_stdout�force_colorized�force_not_colorized_test_class)�	get_themei@Bc�H`�\sQs]snQsQQksQsQsQsQs	Qs
UsP!)	�	FakeTimergE@c�F�]Um]UmVmU[mP!)r)�count�setup_calls�seconds_per_increment�timeit�_fake_timer)�selfr
s&&�%C:\Python315\\Lib\test\test_timeit.py�__init__�FakeTimer.__init__s����
����#8�"�!���c�`�UOUOUO**!�N)�	BASE_TIMErr
�rs&r�__call__�FakeTimer.__call__$s ���~�~��
�
�T�-G�-G� G�G�Grc�:�U9O]*
tmP!��)rrs&r�inc�
FakeTimer.inc's���
�
�a��
rc�:�U9O]*
tmP!r)rrs&r�setup�FakeTimer.setup*s�����A��rc��VmU!r)�saved_timer)r�timers&&r�
wrap_timer�FakeTimer.wrap_timer-s
�� ���r)rr$r
r)��?)�__name__�
__module__�__qualname__�__firstlineno__rrrrr!r&�__static_attributes__�__classdictcell__��
__classdict__s@rr	r	s)�����I�"�H����rr	c�j`�\sQs]2snQsQsQsQsQsQs	Qs
QsQ	sQ
s
QsQsQ7Q
ksQsQsQsQsQsQsQsQ7QksQsQsQsQsQsQsQsQs Qs!Qs"Q s#Q8Q!ks$Q"s%Q#s&Q$s'Q%s(Q&s)Q's*Q(s+Q)s,Q*s-Q+s.Q,s/Q-s0Q.s1Q/s2Q0s3Q9Q1ks4Q2s5Q3s6Q4s7Q5s8Q6s9Us:P!):�
TestTimeitc�:�[;P![cP!h9hr)rr�AttributeErrorrs&r�tearDown�TestTimeit.tearDown5s��	��"���	��	�s��	��c��UO[OP]2P2UO[OP]2P2P!)���assertEqualr�reindentrs&r�test_reindent_empty�TestTimeit.test_reindent_empty;s8���������Q�/��4��������Q�/��4rc��UO[OQ]2Q2UO[OQ]2Q2P!)�passr9rs&r�test_reindent_single�TestTimeit.test_reindent_single?s8����������3�V�<���������3�V�<rc��UO[OQ]2Q2UO[OQ]2Q2P!)z

z

    
    r9rs&r�test_reindent_multi_empty�$TestTimeit.test_reindent_multi_emptyCs8����������3�V�<���������3�^�Drc��UO[OQ]2Q2UO[OQ]2Q2P!)zprint()
pass
breakzprint()
    pass
    breakr9rs&r�test_reindent_multi�TestTimeit.test_reindent_multiGsF��������"�A�'�"�	$�	
������"�A�'�*�	,rc��UO[[OPQ5UO[[OQQ5UO[[OQQ5UO[[OQQ5UO[[OQQ5UO[[OQQ5UO[[OQQ5UO[[OQQ5UO[[OQ	Q
Q5P!)N��stmt�return�yield�
yield from ()�break�continue�from timeit import *�  passzwhile False:
  passz  break)r!rJ��assertRaises�
ValueErrorr�Timer�SyntaxErrorrs&r�test_timer_invalid_stmt�"TestTimeit.test_timer_invalid_stmtOs������*�f�l�l���>����+�v�|�|�(��C����+�v�|�|�'��B����+�v�|�|�/��J����+�v�|�|�'��B����+�v�|�|�*��E����+�v�|�|�:P��Q����+�v�|�|�(��C����+�v�|�|� 6�Y�	�	Hrc�h�UO[[OPQ5UO[[OQQ5UO[[OQQ5UO[[OQQ5UO[[OQQ5UO[[OQQ5UO[[OQQ5UO[[OQQ5P!)	N)r!rKrLrMrNrOrPrQrRrs&r�test_timer_invalid_setup�#TestTimeit.test_timer_invalid_setup[s������*�f�l�l�$��?����+�v�|�|�8��D����+�v�|�|�7��C����+�v�|�|�?��K����+�v�|�|�7��C����+�v�|�|�:��F����+�v�|�|�;Q��R����+�v�|�|�8��Drc��[OPQ5[OQQ5[OQQ5P!)r8rIz 
	z	# comment)rrUrs&r�test_timer_empty_stmt� TestTimeit.test_timer_empty_stmtes&�����"�����)�$����+�&rz(import timeit
timeit._fake_timer.setup()z&import timeit
timeit._fake_timer.inc()c�<�UOO2P!r)�
fake_timerr!rs&r�fake_callable_setup�TestTimeit.fake_callable_setupms�������rc�<�UOO2P!r)r`rrs&r�fake_callable_stmt�TestTimeit.fake_callable_stmtps�������rc�n�[2Um[OVUOUQ5o-oUe[oLV6Q$UOQ-U@oUOUOO]2UOUOOU2UOVs2P!))rJr!r%�globals�number�)r	r`rrU�DEFAULT_NUMBERr:rr)rrJr!rhrg�t�kwargs�
delta_times&&&&&   rr�TestTimeit.timeitss���#�+����L�L�d�t����
!�����>�#�F�%�8���X�X�'��'�
�������4�4�a�8�������.�.��7�����,rc�X�UOUOUO]Q5P!�r�rh�r�	fake_stmt�
fake_setuprs&r�test_timeit_zero_iters�!TestTimeit.test_timeit_zero_iters�������D�N�N�D�O�O�A��>rc�X�UOUOUO]Q5P!��rqrrrs&r�test_timeit_few_iters� TestTimeit.test_timeit_few_iters�rwrc�X�UOUOUO]Q5P!ry)rrdrtrs&r�test_timeit_callable_stmt�$TestTimeit.test_timeit_callable_stmt�s�����D�+�+�T�_�_�Q��Grc�X�UOUOUO]Q5P!ry)rrsrars&r�test_timeit_callable_setup�%TestTimeit.test_timeit_callable_setup�s�����D�N�N�D�$<�$<�Q��Grc�X�UOUOUO]Q5P!ry)rrdrars&r�#test_timeit_callable_stmt_and_setup�.TestTimeit.test_timeit_callable_stmt_and_setup�s&�����D�+�+��(�(��	�	4rc��[OUOUO][2Q5oUO	U]2P!)r�rhr%)rrsrtr	r:)rrms& r�test_timeit_function_zero_iters�*TestTimeit.test_timeit_function_zero_iters�s3���]�]�4�>�>�4�?�?�1��k�#�
�����Q�'rc�<�[2r[OQ[Q5oUO	[
UO]Q5[OQ[[
2]Q5[2o[OQU[2]Q5P!)z_global_timer.inc())rJr%rq)rJr%rgrhzlocal_timer.inc())r	�
_global_timerrrUrS�	NameErrorrg�locals)rrk�local_timers&  r�test_timeit_globals_args�#TestTimeit.test_timeit_globals_args�sj��!��
��L�L�3�=�I�����)�Q�X�X�a��8��
�
�0�
�%�i��	3��k���
�
�.�k�$�h�q�	2rc��[2Um[OVUOQ5o-oUe[oLV6Q$Ue[
oLVFQ$UOQ-U@oUOUOOU2UOUOOV4*2UOVs[U2,*2P!)�rJr!r%�repeatrhri)r	r`rrU�DEFAULT_REPEATrjr�r:rr�float)rrJr!r�rhrkrl�delta_timess&&&&&   rr��TestTimeit.repeat�s���#�+����L�L�d�t���G�����>�#�F�%�8���>�#�F�%�8���h�h�(��(��������4�4�f�=�������.�.���@������f�
��&>�?rc�X�UOUOUO]Q5P!)r)r��r�rsrtrs&r�test_repeat_zero_reps� TestTimeit.test_repeat_zero_reps�rwrc�X�UOUOUO]Q5P!rpr�rs&r�test_repeat_zero_iters�!TestTimeit.test_repeat_zero_iters�rwrc�Z�UOUOUO]]Q5P!�rz)r�rhr�rs&r�test_repeat_few_reps_and_iters�)TestTimeit.test_repeat_few_reps_and_iters�s�����D�N�N�D�O�O�A�a��Hrc�Z�UOUOUO]]Q5P!r�)r�rdrtrs&r�test_repeat_callable_stmt�$TestTimeit.test_repeat_callable_stmt�s&�����D�+�+�T�_�_���	�	$rc�Z�UOUOUO]]Q5P!r�)r�rsrars&r�test_repeat_callable_setup�%TestTimeit.test_repeat_callable_setup�s&�����D�N�N�D�$<�$<���	�	$rc�Z�UOUOUO]]Q5P!r�)r�rdrars&r�#test_repeat_callable_stmt_and_setup�.TestTimeit.test_repeat_callable_stmt_and_setup�s(�����D�+�+�T�-E�-E���	�	$rc��[OUOUO][	2Q5oUOU,2P!)r)r�r%)rr�rsrtr	r:�rr�s& r�test_repeat_function_zero_reps�)TestTimeit.test_repeat_function_zero_reps�s3���m�m�D�N�N�D�O�O�A��k�#������b�)rc��[OUOUO][	2Q5oUOU[Q,*2P!)rr�g)rr�rsrtr	r:r�r�s& r�test_repeat_function_zero_iters�*TestTimeit.test_repeat_function_zero_iters�s:���m�m�D�N�N�D�O�O�A��k�#������n��u�&<�=rc���UO2oUO[U2]2UOU]*Q2UOUP*U2P!)��	Traceback)�
splitlines�
assertGreater�len�assertStartsWith)r�
exc_string�expected_exc_name�	exc_liness&&& r�assert_exc_string�TestTimeit.assert_exc_string�sM���)�)�+�	����3�y�>�1�-����i��l�K�8����i��m�->�?rc���[O2o[OQ2oUO2UOUO
2Q2P!SO	S2K79h)�1/0�ZeroDivisionError)�io�StringIOrrU�	print_excr��getvalue)r�srks&  r�test_print_exc�TestTimeit.test_print_exc�sT���K�K�M���L�L����	�
�H�H�J�	
���q�z�z�|�-@�A��	�
�K�K��N�s�A � A5z"1 loop, best of 5: 1 sec per loop
c��Ue
[UQ5oUe,oL	UQ*oUOUO2[OQ*o[29^tt^2o[OVCOQ5PPP2UQ*[OQ$WO2!)%fhK:9h)N�r
:NNN)�args�_wrap_timer)
r	�appendrs�sys�pathrr�mainr&r�)rr
�switchesr%r��
orig_sys_pathr�s&&&&   r�run_main�TestTimeit.run_main�s����=��4I�J�E����D��A�;�D����D�N�N�#������
�
�
�
�!��K�K�T�/?�/?�@��#�A�&�������z�z�|���
�s�&"B:�:C
	�C
	c���[29^tt^2oUOQ,Q5oPPP2UOWP2UOQWO	22P!)%fhKD9h)z--bad-switch�r�z$unrecognized arguments: --bad-switch)rr�r:�assertInr��r�error_stringior�s&  r�test_main_bad_switch�TestTimeit.test_main_bad_switchsX��
�
�
�.��
�
��'7�
�8�A������B���
�
�2�N�4K�4K�4M�	
��
�s�A$�$A4	�-A4	c�P�UOQQ5oUOUQ2P!)�@r�z$1 loop, best of 5: 5.5 sec per loop
�r�r:�rr�s& r�test_main_seconds�TestTimeit.test_main_seconds
s#���M�M��M�4������C�Drc�P�UOQQ5oUOUQ2P!)g�I+�v?r�z'50 loops, best of 5: 5.5 msec per loop
r�r�s& r�test_main_milliseconds�!TestTimeit.test_main_millisecondss#���M�M��M�7������F�Grc�T�UOQQ,Q5oUOUQ2P!)g�h㈵��>z-n100�r
r�z(100 loops, best of 5: 2.5 usec per loop
r�r�s& r�test_main_microseconds�!TestTimeit.test_main_microsecondss'���M�M�	�W�I�M�N������G�Hrc�T�UOQQ,Q5oUOUQ2P!)�@�-n35r��$35 loops, best of 5: 2 sec per loop
r�r�s& r�test_main_fixed_iters� TestTimeit.test_main_fixed_iterss'���M�M��v�h�M�G������C�Drc�z�UOQ,QNQ5oUOUQ[*Q*2P!)r�r��CustomSetup
r�)r��-szprint("CustomSetup")�r�r:r�r�s& r�test_main_setup�TestTimeit.test_main_setups:���M�M��?�
�
A������O�n�<�7�8�	9rc�z�UOQ,QNQ5oUOUQ[*Q*2P!)r�r�r�r�)r�r�za = "CustomSetup"r�zprint(a)r�r�s& r�test_main_multiple_setups�$TestTimeit.test_main_multiple_setups#s:���M�M��N�
�
P������O�n�<�7�8�	9rc�T�UOQQ,Q5oUOUQ2P!)�N@z-r9r�z#1 loop, best of 9: 60 sec per loop
r�r�s& r�test_main_fixed_reps�TestTimeit.test_main_fixed_reps)s'���M�M���w�M�G������B�Crc�T�UOQQ,Q5oUOUQ2P!)r�z-r-5r�z#1 loop, best of 1: 60 sec per loop
r�r�s& r�test_main_negative_reps�"TestTimeit.test_main_negative_reps-s'���M�M���x�M�H������B�Crc��UOQ,Q5oUOQU2UOQU2UOQU2P!)z-hr�z!Tool for measuring execution timez-nz--number)r�r�r�s& r�test_main_help�TestTimeit.test_main_help1s?���M�M�D�6�M�*���
�
�9�1�=��
�
�d�A���
�
�j�!�$rc�d�UOQ,Q5oUOU[Q22P!)�-vr�z�                1 loop -> 1 sec

                raw times: 1 sec, 1 sec, 1 sec, 1 sec, 1 sec

                1 loop, best of 5: 1 sec per loop
            �r�r:rr�s& r�test_main_verbose�TestTimeit.test_main_verbose7s0���M�M�D�6�M�*������F�$��	rc�f�UOQQ,Q5oUOU[Q22P!)giUMu�>z-vvr�a�                1 loop -> 3e-05 sec
                2 loops -> 6e-05 sec
                5 loops -> 0.00015 sec
                10 loops -> 0.0003 sec
                20 loops -> 0.0006 sec
                50 loops -> 0.0015 sec
                100 loops -> 0.003 sec
                200 loops -> 0.006 sec
                500 loops -> 0.015 sec
                1000 loops -> 0.03 sec
                2000 loops -> 0.06 sec
                5000 loops -> 0.15 sec
                10000 loops -> 0.3 sec

                raw times: 300 msec, 300 msec, 300 msec, 300 msec, 300 msec

                10000 loops, best of 5: 30 usec per loop
            rr�s& r�test_main_very_verbose�!TestTimeit.test_main_very_verboseAs2���M�M�	�U�G�M�L������F�$��	rc��UOQQQ,Q5oUOUQ2UOQQQ,Q5oUOUQ2UOQQQ,Q5oUOUQ2[29^tt^2oUOQQQ	,Q5oPPP2UOQ
WO	22P!)%fhK29h)g�~j�t�h?z-u�secr�z)100 loops, best of 5: 0.003 sec per loop
�msecz&100 loops, best of 5: 3 msec per loop
�usecz*100 loops, best of 5: 3e+03 usec per loop
�parsecz)choose from 'nsec', 'usec', 'msec', 'sec')r�r:rr�r�)r�unit_sec�	unit_msec�	unit_usecr��invalids&     r�test_main_with_time_unit�#TestTimeit.test_main_with_time_unitWs����=�=�u����!�(������<�	>��M�M�����"�)�	�����9�	;��M�M�����"�)�	�����=�	?��
�
�.��m�m�&+�t�X�6F�$��G��	
�
�
�7��9P�9P�9R�	
�	�
�s�	C	�	C	�C	c���[29^tt^2oUOQ,Q5oPPP2UOWO2Q2P!)%fhK29h)r�r�r��rr�r�r�r�s&  r�test_main_exception�TestTimeit.test_main_exceptionmsG��
�
�
�.��
�
��w�
�/�A�����~�6�6�8�:M�N��
�s�A�A"	�A"	c���[29^tt^2oUOQQ,Q5oPPP2UOWO2Q2P!)%fhK29h)z-n1r�r�r�rr�s&  r�test_main_exception_fixed_reps�)TestTimeit.test_main_exception_fixed_repsrsI��
�
�
�.��
�
��u�~�
�6�A�����~�6�6�8�:M�N��
�s�A�A#	�A#	c��[UQ5o[OUOUOUQ5oUOV#Q5!)r�r���target_time)r	rrUrsrt�	autorange)rr
�callbackrr%rks&&&&  rr�TestTimeit.autorangews8���0E�F���L�L�d�n�n�D�O�O�5�Q���{�{�8�{�=�=rc�t�UO2vqUOUQ2UOUQ2P!)���@�?�rr:�r�	num_loops�
time_takens&  r�test_autorange�TestTimeit.test_autorange|s1�� $��� 0��	�����C�(�����X�.rc�x�UOQQ5vqUOU]2UOUQ2P!)r(r�r%r&s&  r�test_autorange_second� TestTimeit.test_autorange_second�s5�� $���S�� I��	�����A�&�����S�)rc�x�UOQQ5vqUOUQ2UOUQ2P!)r(ri�g@�?r%r&s&  r�test_autorange_with_target_time�*TestTimeit.test_autorange_with_target_time�s5�� $���3�� ?��	�����D�)�����Y�/rc��Qo[29^tt^2oUOUQ5vq4PPP2UOWQ2UOWQ2QoUOWO2U2P!)%fhKX9h)c�<�[QOV22P!)z	{} {:.3f})�print�format)�a�bs&&rr �9TestTimeit.test_autorange_with_callback.<locals>.callback�s���+�$�$�Q�*�+r)r r#zQ1 0.001
2 0.002
5 0.005
10 0.010
20 0.020
50 0.049
100 0.098
200 0.195
500 0.488
r$)rrr:r�)rr r�r'r(�expecteds&     r�test_autorange_with_callback�'TestTimeit.test_autorange_with_callback�sr��	,�
�
�
�!�$(�N�N�H�N�$E�!�I������C�(�����X�.�"��	
�������x�0��
�s�A<�<B	�B	)r`)NN)r(NN)gP?Ng�������?);r)r*r+r,r5r<r@rCrFrWrZr]rtrsrardrrur{r~r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��MAIN_DEFAULT_OUTPUTr�r�r�r�r�r�r�r�r�r�rrrrrrrr)r,r/r9r-r.r/s@rr2r22s*�����5�=�E�,�
H�E�'�
=�J�9�I� ��-�$?�?�H�H�4�(�
	2�@�*?�?�I�$�$�$�*�
>�
@�B�@��
�
�E�H�I�E�9�9�D�D�%���,
�,O�
O�
>�
/�
*�
0�
1�1rr2c�r`�\sQsQsn\O
s\Os\Q2s\Q2s	Qs
UsP!)�TestTimeitColor�c���[P	Q5OoUOQQ5oUOUQUOQUO
QUOQUO
Q0	2P!)	T��force_colorr�r�z1 loop, best of 5: z5.5 sec� �per loop�
)rrr�r:�best�reset�per_loop�rrkr�s&  r�test_main_colorized�#TestTimeitColor.test_main_colorized�se���$�'�.�.���M�M��M�4�����
�!��v�v�h�g�a�g�g�Y�a��z�z�l�(�1�7�7�)�2�
/�	
rc��[P	Q5OoUOQ,Q5oUOUPO	,QMUO
MQMUOMQMUOMQMUOMQMUO
MQMUOMQMUO
MQMUOMQMUO
MQMUOMQMUO
MQMUOMQMUOMQ	MUOMQMUOMQ
MUOMQMUOMQM22P!)
Tr@rr�z1 loop z-> z1 secz

raw times: z, z

1 loop, best of 5: rBrCrD)
rrr�r:�join�punctuation�timingrFrErGrHs&  r�test_main_verbose_colorized�+TestTimeitColor.test_main_verbose_colorized�s����$�'�.�.���M�M�D�6�M�*�����
�
/�
/�g�
/�a�m�m�_�
/�C�
/����z�
/��
/�q�w�w�i�
/�@�
/��x�x�j�
/��
/��m�m�_�
/�,.�
/��x�x�j�
/��
/� �m�m�_�
/�-/�
/��x�x�j�	
/��	
/� �m�m�_�	
/�-/�	
/�
�x�x�j�
/�
�
/�
 �m�m�_�
/�
-/�
/��x�x�j�

/��

/� �g�g�Y�

/�'"�

/�#$�&�&��
/�*/�
/�01�w�w�i�
/�89�
/��z�z�l�
/�#�
/�$%�7�7�)�
/�,.�
/�	
rri)r)r*r+r,r2rsr�rrIrOr-r.r/s@rr=r=�sA�����$�$�I��"�"�H��
��
��
��
rr=�__main__)r�unittestr�r��textwrapr�test.supportrrrr�	_colorizerrjr�r	�TestCaser2r=r)r�rirr�<module>rWs���
��
�	���� �������, �h1��"�"�h1� �h1�V
�h�'�'�
�D�z���M�M�O�r

Youez - 2016 - github.com/yon3zu
LinuXploit