Sindbad~EG File Manager

Current Path : /proc/2568807/root/usr/local/lib/python3.12/test/__pycache__/
Upload File :
Current File : //proc/2568807/root/usr/local/lib/python3.12/test/__pycache__/time_hashlib.cpython-312.opt-2.pyc

�

'Μg�� �ddlZddlZddlZd�Zd�Zd�Zd�ZejdZedvr$e	dez�e	d	ezd
z�e
ded�n�ed
k(r_eej�dkDrJddlZe	dejdz�e
dejdze
eejd��n�ed
k(rJeej�dk(r5ddlZe	dejdz�e
dejdz�nLeee�r-ee
ee�d�re
ee�Ze
deze
ee��ne	dez�e
dez�	e�e�edd� �ed!d"� �ed#d$� �ed%d&� �ed'd(� �ed)d*� �ed+d,� �ee�j d-� �ed.d/� �y#e$r@e
�e
d�e
d�e
d�e
d�e
d�e
d�e
��wxYw)0�Nc��td��)Nzeek, creatorFunc not overridden)�RuntimeError���./usr/local/lib/python3.12/test/time_hashlib.py�creatorFuncr	s��
�8�
9�9rc	��d|zdz}d|z}t}tj�}t|�D]}||�j	�}�tj�}td||z
zd|dt
|�d|�y)N�ٞ��Z�%2.2f�seconds�x�bytes)r�time�perf_counter�range�digest�print�len)	�scale�name�
iterations�longStr�localCF�start�fr�ends	         r�test_scaled_msgrs~������#�J��5�j�G��G�����E�
�:�
���G��#�#�%���
�
�
�
�C�	�7�c�%�i� �9�j�#�s�7�|�W�VZ�[rc��tj�}td�D]}t�}�tj�}t	d||z
zdd�y)N� Nr
rz[20000 creations])rrrrr)rr�drs    r�test_creater#sI������E�
�5�\���M���
�
�
�
�C�	�7�c�%�i� �9�.A�Brc���tj�}td�D]}t�j	�}�tj�}td||z
zdd�y)Nr!r
rz[20000 "" digests])rrrrrr)rrrrs    r�	test_zeror% sR������E�
�5�\���M� � �"���
�
�
�
�C�	�7�c�%�i� �9�.B�Cr�)�_md5�_shazimport zcreatorFunc = z.newztesting speed of oldzlegacy interface�_hashlib�zcreatorFunc = _hashlib.%s�ztesting speed of _hashlib.%sz+creatorFunc = lambda x=_hashlib.new : x(%r)z!testing speed of _hashlib.new(%r)�__call__ztesting speed of hashlib.z*creatorFunc = lambda x=hashlib.new : x(%r)z testing speed of hashlib.new(%r)z8pass argument(s) naming the hash to run a speed test on:z6 '_md5' and '_sha' test the legacy builtin md5 and shaz= '_hashlib' 'openssl_hName' 'fast' tests the builtin _hashlibz6 '_hashlib' 'hName' tests builtin _hashlib.new(shaFOO)z> 'hName' tests the hashlib.hName() implementation if it existsz.         otherwise it uses hashlib.new(hName).r
z[huge data])rri|)z[large data]i&z
[medium data]i�z[4*small data]iPz[3*small data]��z[2*small data]�jz[small data]z[digest_size data]�
z[tiny data])�sysr�hashlibrrr#r%�argv�hName�execrrr)�getattr�hasattr�
ValueError�digest_sizerrr�<module>r9s0�����:�
\�C�D�	������
	�����5����	�%�	��	&�'�	�
 �%�);�<�
�j��S����]�Q�.���	$�s�x�x��{�	2�3�	�
(�3�8�8�A�;�
6���#�(�(�ST�+�8V�W�
�j��S����]�a�/���	6����!��	D�E�	�
-������
;�<��W�e�����%�)@�*�!M��'�5�)�K�	�
%�e�
+�W�W�e�-D�E��	5��	=�>�	�
,�u�
4�5�
��M�
���f�=�1��e�.�1��d��1��c� 0�1��c� 0�1��c� 0�1��c��/��k�m�/�/�6J�K��b�}�-��)�	
�	�G�	�
D�E�	�
B�C�	�
I�J�	�
B�C�	�
J�K�	�
:�;�	�G�	�	
�s
�G�AH


Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists