config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/pystone.pyc

³ò
h”Rc@sïdZdZddklZdZeddƒ\ZZZZ	Z
dd d„ƒYZdZd	Z
ed
„Zed„Zd	ae
adadad	gd
aed„tgd
ƒadadaed„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d„Z#d„Z$d„Z%e&djo®ddk'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Ãiÿÿÿÿ(tclocks1.1iitRecordcBs)eZdddddd„Zd„ZRS(icCs1||_||_||_||_||_dS(N(tPtrComptDiscrtEnumComptIntCompt
StringComp(tselfRRRRR((s(/usr/local/lib/python2.5/test/pystone.pyt__init__-s
				cCs%t|i|i|i|i|iƒS(N(RRRRRR(R((s(/usr/local/lib/python2.5/test/pystone.pytcopy5sN(t__name__t
__module__tNoneRR	(((s(/usr/local/lib/python2.5/test/pystone.pyR+s	icCs1t|ƒ\}}dt||fGHd|GHdS(Ns#Pystone(%s) time for %d passes = %gs-This machine benchmarks at %g pystones/second(tpystonest__version__(tloopst	benchtimetstones((s(/usr/local/lib/python2.5/test/pystone.pytmain<scCs
t|ƒS(N(tProc0(R((s(/usr/local/lib/python2.5/test/pystone.pyR
Csti3cCs|S(((tx((s(/usr/local/lib/python2.5/test/pystone.pyt<lambda>KscCsÙtƒ}xt|ƒD]}qWtƒ|}tƒatƒatt_tt_tt_	dt_
dt_d}dtdd<tƒ}x.t|ƒD] }t
ƒtƒd}d}d	}t}t||ƒax9||jo+d
||}	t||ƒ}	|d}qÕWttt||	ƒttƒad}
xN|
tjo@|t|
d
ƒjottƒ}ntt|
ƒdƒ}
q6W||}	|	|}d|	||}t|ƒ}q–Wtƒ||}|||fS(Ni(sDHRYSTONE PROGRAM, SOME STRINGsDHRYSTONE PROGRAM, 1'ST STRINGi
iiiisDHRYSTONE PROGRAM, 2'ND STRINGiitAtC(RtrangeRt
PtrGlbNexttPtrGlbRtIdent1RtIdent3RRRt
Array2GlobtProc5tProc4tIdent2tFunc2tBoolGlobtProc7tProc8t
Array1GlobtProc1t	Char2GlobtFunc1tProc6tchrtordtProc2(Rt	starttimetitnulltimet
String1LoctIntLoc1tIntLoc2t
String2LoctEnumLoctIntLoc3t	CharIndexR((s(/usr/local/lib/python2.5/test/pystone.pyROsV
	

								




cCs¯tiƒ|_}d|_|i|_|i|_t|iƒ|_|itjo@d|_t|iƒ|_ti|_t	|idƒ|_n
|iƒ}d|_|S(Niii
(RR	RRtProc3RRR*RR$R(tPtrParInt
NextRecord((s(/usr/local/lib/python2.5/test/pystone.pyR'…s			cCsQ|d}x@tdjo|d}|t}t}n|tjoPq
q
|S(Ni
Ri(t	Char1GlobtIntGlobR(tIntParIOtIntLocR5((s(/usr/local/lib/python2.5/test/pystone.pyR-•s





cCs6tdj	o
ti}ndatdtƒt_|S(Nidi
(RRRR<R$R(t	PtrParOut((s(/usr/local/lib/python2.5/test/pystone.pyR8 s


cCs#tdj}|pt}dadS(NRtB(R;R#R((tBoolLoc((s(/usr/local/lib/python2.5/test/pystone.pyR ªs
cCsdatadS(NR(R;tFALSER#(((s(/usr/local/lib/python2.5/test/pystone.pyR±scCs¥|}t|ƒp
t}n|tjo
t}nn|tjo!tdjo
t}q¡t}n@|tjo
t}n)|tjon|tjo
t}n|S(Nid(tFunc3tIdent4RR!R<RtIdent5(t	EnumParInt
EnumParOut((s(/usr/local/lib/python2.5/test/pystone.pyR*¸s 












cCs|d}||}|S(Ni((tIntParI1tIntParI2R>t	IntParOut((s(/usr/local/lib/python2.5/test/pystone.pyR$Ës

cCs¢|d}|||<||||d<|||d<x)t||dƒD]}||||<qHW|||dd|||d<||||d|<dadS(Niiiii(RR<(t	Array1Part	Array2ParRHRIR>tIntIndex((s(/usr/local/lib/python2.5/test/pystone.pyR%Ðs

"cCs)|}|}||jotSntSdS(N(RR!(tCharPar1tCharPar2tCharLoc1tCharLoc2((s(/usr/local/lib/python2.5/test/pystone.pyR)Ýs

cCs±d}xH|djo:t||||dƒtjod}|d}q	q	W|djo|djo
d}n|djotSn$||jo|d}tSntSdS(NiRtWtZitX(R)RtTRUERB(tStrParI1tStrParI2R>tCharLoc((s(/usr/local/lib/python2.5/test/pystone.pyR"ås
"



cCs|}|tjotSntS(N(RRURB(RFR5((s(/usr/local/lib/python2.5/test/pystone.pyRCös
t__main__NcCs6ti|ItidtidIJtidƒdS(Nsusage: %s [number_of_loops]iid(tsyststderrtargvtexit(tmsg((s(/usr/local/lib/python2.5/test/pystone.pyterrorýs
s%d arguments are too many;sInvalid argument %r;((/t__doc__tLOOPSttimeRRRRR!RRDRERRURBRR
R<R#R;R(R&tmapRRRRRR'R-R8R RR*R$R%R)R"RCR
RZR_tlenR\tnargstintRt
ValueError(((s(/usr/local/lib/python2.5/test/pystone.pys<module>!sT
6			
					
			
	



Man Man