Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.217.107.68
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : time_hashlib.pyc
�
@��cc@s�ddlZddlZddlZd�Zd�Zd�Zd�ZejdZed1kr�d	edUd
eddUdGeGd
GHnedkr�e	ej�dkr�ddl
Z
dejddUdejdGee
ejd�GHn�edkrGe	ej�dkrGddl
Z
dejddUdejdGHnaeee�r�e
eee��r�eee�ZdeGeee�GHndedUdeGHye�Wn4ek
r�HdGHdGHdGHdGHdGHdGHH�nXe�eddd d!�edd"d d#�edd$d d%�edd&d d'�edd(d d)�edd*d d+�edd,d d-�ede�jd d.�edd/d d0�dS(2i����NcCs
td�dS(Nseek, creatorFunc not overridden(tRuntimeError(((s8/usr/local/python-2.7/lib/python2.7/test/time_hashlib.pytcreatorFuncsc	Cs�d|d}d|}t}tj�}x&t|�D]}||�j�}q7Wtj�}d||GdG|GdGt|�GdG|GHdS(NiٞitZs%2.2ftsecondstxtbytes(Rttimetxrangetdigesttlen(	tscaletnamet
iterationstlongStrtlocalCFtstarttfRtend((s8/usr/local/python-2.7/lib/python2.7/test/time_hashlib.pyttest_scaled_msgs
cCsQtj�}xtd�D]}t�}qWtj�}d||GdGdGHdS(Ni Ns%2.2fRs[20000 creations](RRR(RRtdR((s8/usr/local/python-2.7/lib/python2.7/test/time_hashlib.pyttest_creates

cCsWtj�}x#td�D]}t�j�}qWtj�}d||GdGdGHdS(Ni Ns%2.2fRs[20000 "" digests](RRRR(RRRR((s8/usr/local/python-2.7/lib/python2.7/test/time_hashlib.pyt	test_zeros
it_md5t_shasimport screatorFunc = s.newstesting speed of oldslegacy interfacet_hashlibiscreatorFunc = _hashlib.%sistesting speed of _hashlib.%ss+creatorFunc = lambda x=_hashlib.new : x(%r)s!testing speed of _hashlib.new(%r)stesting speed of hashlib.s*creatorFunc = lambda x=hashlib.new : x(%r)s testing speed of hashlib.new(%r)s8pass argument(s) naming the hash to run a speed test on:s6 '_md5' and '_sha' test the legacy builtin md5 and shas= '_hashlib' 'openssl_hName' 'fast' tests the builtin _hashlibs6 '_hashlib' 'hName' tests builtin _hashlib.new(shaFOO)s> 'hName' tests the hashlib.hName() implementation if it existss.         otherwise it uses hashlib.new(hName).R
iٞRs[huge data]i|)s[large data]i&s
[medium data]i�s[4*small data]iPs[3*small data]i�s[2*small data]ijs[small data]s[digest_size data]i
s[tiny data](RR(tsysRthashlibRRRRtargvthNameR	Rtgetattrthasattrtcallablet
ValueErrortdigest_size(((s8/usr/local/python-2.7/lib/python2.7/test/time_hashlib.pyt<module>sZ				

!'!$	

© 2025 GrazzMean