python (3.12.0)

(root)/
lib/
python3.12/
test/
__pycache__/
time_hashlib.cpython-312.pyc

Αe ddlZddlZddlZdZdZdZdZejdZedvr$e	deze	d	ezd
ze
dedned
k(r_eejdkDrJddlZe	dejdze
dejdze
eejdned
k(rJeejdk(r5ddlZe	dejdze
dejdznLeeer-ee
eedre
eeZe
deze
eene	deze
dez	eeedd ed!d" ed#d$ ed%d& ed'd( ed)d* ed+d, eej d- ed.d/ y#e$r@e
e
de
de
de
de
de
de
wxYw)0Nctd)Nzeek, creatorFunc not overridden)RuntimeErrorE/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/time_hashlib.pycreatorFuncr	s
8
99rc	d|zdz}d|z}t}tj}t|D]}||j	}tj}td||z
zd|dt
|d|y)NٞZ%2.2fsecondsxbytes)rtimeperf_counterrangedigestprintlen)	scalename
iterationslongStrlocalCFstartfrends	         rtest_scaled_msgrs#J5jGGE
:
&G##%&



C	7c%i 9j#s7|WVZ[rctj}tdD]}t}tj}t	d||z
zddy)N Nr
rz[20000 creations])rrrrr)rrdrs    rtest_creater#sNE
5\M



C	7c%i 9.ABrctj}tdD]}tj	}tj}td||z
zddy)Nr!r
rz[20000 "" digests])rrrrrr)rrrrs    r	test_zeror% sWE
5\#M  "#



C	7c%i 9.BCr)_md5_shazimport zcreatorFunc = z.newztesting speed of oldzlegacy interface_hashlibzcreatorFunc = _hashlib.%sztesting 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]iz[4*small data]iPz[3*small data]z[2*small data]jz[small data]z[digest_size data]
z[tiny data])sysrhashlibrrr#r%argvhNameexecrrr)getattrhasattr
ValueErrordigest_sizerrr<module>r9s0:
\CD	
	5	%		&'	
 %);<
jS]Q.	$sxx{	23	
(388A;
6#((ST+8VW
jS]a/	6!	DE	
-
;<We%)@*!M'5)K	
%e
+WWe-DE	5	=>	
,u
45
M
f=1e.1d1c 01c 01c 01c/km//6JKb}-)	
	G	
DE	
BC	
IJ	
BC	
JK	
:;	G		
s
GAH