KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/22697/root/usr/lib64/python2.4/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/22697/root/usr/lib64/python2.4/test/pystone.pyc
mς
‚=5Dc@sιdZdZdklZdZeddƒ\ZZZZ	Z
dfd„ƒYZdZdZ
ed	„Zed
„Zdae
adadadgdaed
„tgdƒadadaed„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#d„Z$d„Z%e&djo«dk'Z'd„Z(e)e'i*ƒdZ+e+djoe(de+ƒnZe+djoFye,e'i*dƒZ-WqΧe.j
oe(de'i*dƒqΧXneZ-ee-ƒndS(sβ
"PYSTONE" Benchmark Program

Version:        Python/1.1 (corresponds to C/1.1 plus 2 Pystone fixes)

Author:         Reinhold P. Weicker,  CACM Vol 27, No 10, 10/84 pg. 1013.

                Translated from ADA to C by Rick Richardson.
                Every method to preserve ADA-likeness has been used,
                at the expense of C-ness.

                Translated from C to Python by Guido van Rossum.

Version History:

                Version 1.1 corrects two bugs in version 1.0:

                First, it leaked memory: in Proc1(), NextRecord ends
                up having a pointer to itself.  I have corrected this
                by zapping NextRecord.PtrComp at the end of Proc1().

                Second, Proc3() used the operator != to compare a
                record to None.  This is rather inefficient and not
                true to the intention of the original benchmark (where
                a pointer comparison to None is intended; the !=
                operator attempts to find a method __cmp__ to do value
                comparison of the record).  Version 1.1 runs 5-10
                percent faster than version 1.0, so benchmark figures
                of different versions can't be compared directly.

iPΓ(sclocks1.1iitRecordcBs)tZdddddd„Zd„ZRS(NicCs1||_||_||_||_||_dS(N(tPtrComptselftDiscrtEnumComptIntCompt
StringComp(RRRRRR((t$/usr/lib64/python2.4/test/pystone.pyt__init__-s
				cCs%t|i|i|i|i|iƒS(N(RRRRRRR(R((Rtcopy5s(t__name__t
__module__tNoneRR	(((RR+sicCs1t|ƒ\}}dt||fGHd|GHdS(Ns#Pystone(%s) time for %d passes = %gs-This machine benchmarks at %g pystones/second(tpystonestloopst	benchtimetstonest__version__(RRR((Rtmain<scCs
t|ƒS(N(tProc0R(R((RR
Csti3cCs|S(N(tx(R((Rt<lambda>KscCsΩtƒ}xt|ƒD]}
qWtƒ|}tƒatƒatt_	t
t_tt_
dt_dt_d}dtdd<tƒ}x.t|ƒD] }
tƒtƒd}d}d	}t}	t||ƒax9||jo+d
||}t||ƒ}|d}qΥWttt||ƒttƒad}xN|t!jo@|	t"|d
ƒjot#t
ƒ}	nt$t%|ƒdƒ}q6W||}||}d|||}t&|ƒ}q–Wtƒ||}|||fS(Ni(sDHRYSTONE PROGRAM, SOME STRINGsDHRYSTONE PROGRAM, 1'ST STRINGi
iiiisDHRYSTONE PROGRAM, 2'ND STRINGiitAtC((tclockt	starttimetrangeRtitnulltimeRt
PtrGlbNexttPtrGlbRtIdent1RtIdent3RRRt
String1Loct
Array2GlobtProc5tProc4tIntLoc1tIntLoc2t
String2LoctIdent2tEnumLoctFunc2tBoolGlobtIntLoc3tProc7tProc8t
Array1GlobtProc1t	CharIndext	Char2GlobtFunc1tProc6tchrtordtProc2R(RR"R(R-R2RRR'R&R*RR((RROsf	

								




cCs―tiƒ|_}d|_|i|_|i|_t|iƒ|_|itjo@d|_t	|i
ƒ|_
ti|_t|idƒ|_n
|iƒ}d|_|S(Niii
(
RR	tPtrParInRt
NextRecordRtProc3RR R5RR.R(R9R:((RR1…s			cCsS|d}xBtdjo|d}|t}t}n|tjoPq
q
W|S(Ni
iR(tIntParIOtIntLoct	Char1GlobtIntGlobR R*(R<R*R=((RR8•s






cCs6tdj	o
ti}ndatdtƒt_|S(Nidi
(RRRt	PtrParOutR?R.R(R@((RR; s

cCs#tdj}|pt}dadS(NRtB(R>tBoolLocR,R3(RB((RR%ͺs
cCsdatadS(NR(R>tFALSER,(((RR$±scCs₯|}t|ƒp
t}n|tjo
t}nn|tjo!tdjo
t}q‘t}n@|tjo
t}n)|tjon|tjo
t}n|S(Nid(	t	EnumParInt
EnumParOuttFunc3tIdent4R R)R?R!tIdent5(RDRE((RR5Έs 












cCs|d}||}|S(Ni(tIntParI1R=tIntParI2t	IntParOut(RIRJRKR=((RR.Λs

cCs’|d}|||<||||d<|||d<x)t||dƒD]}||||<qHW|||dd|||d<||||d|<dadS(Niiiii(RIR=RJt	Array1ParRtIntIndext	Array2ParR?(RLRNRIRJR=RM((RR/Πs

"cCs)|}|}||jotSntSdS(N(tCharPar1tCharLoc1tCharLoc2tCharPar2R R)(RORRRQRP((RR4έs

cCs±d}xH|djo:t||||dƒtjod}|d}q	q	W|djo|djo
d}n|djotSn$||jo|d}tSntSdS(NiRtWtZitX(R=R4tStrParI1tStrParI2R tCharLoctTRUERC(RVRWRXR=((RR+εs
"



cCs|}|tjotSntS(N(RDR*R!RYRC(RDR*((RRFφs
t__main__NcCs6ti|ItidtidIJtidƒdS(Nsusage: %s [number_of_loops]iid(tsyststderrtmsgtargvtexit(R]((Rterrorύs
s%d arguments are too many;sInvalid argument %r;(/t__doc__tLOOPSttimeRRRR R)R!RGRHRRYRCRR
R?R,R>R3R0tmapR#RRRRR1R8R;R%R$R5R.R/R4R+RFR
R[R`tlenR^tnargstintRt
ValueError(RRYRFR+R4RRbRR/R
RfR[RRGRHRRCR R)R!R`R$R%R.R5R1RR;R8((Rt?!sT

6			
					
			
		



Anon7 - 2021