-í G°w=csÿdZdkZdkZdkZdkZdkZdkZdkZdkZdk Z dk Z dk Z dk lZdklZde ifd„ƒYZdZdeifd„ƒYZed „Zd „Zd „Zed joeeid ƒndS(sÄTest speed of a ZODB storage Options: -d file The data file to use as input. The default is this script. -n n The number of repititions -s module A module that defines a 'Storage' attribute, which is an open storage. If not specified, a FileStorage will ne used. -z Test compressing data -D Run in debug mode -L Test loads as well as stores by minimizing the cache after eachrun -M Output means only -C Run with a persistent client cache -U Run ZEO using a Unix domain socket -t n Number of concurrent threads to run. N(sforker(s ConflictErrorsPcstZRS(N(s__name__s __module__(((s7/usr/pkg/lib/python2.2/site-packages/ZEO/tests/speed.pysP6ss zeo-speed.fssZEOExitcs;tZdZd„Zd„Zd„Zd„Zd„ZRS(s/Used to exit ZEO.StorageServer when run is donecsdSdS(Ni((sself((s7/usr/pkg/lib/python2.2/site-packages/ZEO/tests/speed.pyswritable=scsdSdS(Ni((sself((s7/usr/pkg/lib/python2.2/site-packages/ZEO/tests/speed.pysreadable?scs*|idƒ}|iƒtidƒdS(Nii(sselfsrecvsbufs delete_fssoss_exit(sselfsbuf((s7/usr/pkg/lib/python2.2/site-packages/ZEO/tests/speed.pys handle_readAs cs dGH|iƒtidƒdS(Ns"Parent process exited unexpectedlyi(sselfs delete_fssoss_exit(sself((s7/usr/pkg/lib/python2.2/site-packages/ZEO/tests/speed.pys handle_closeFs cs3titƒtitdƒtitdƒdS(Ns.locks.tmp(sossunlinksfs_name(sself((s7/usr/pkg/lib/python2.2/site-packages/ZEO/tests/speed.pys delete_fsJs (s__name__s __module__s__doc__swritablesreadables handle_reads handle_closes delete_fs(((s7/usr/pkg/lib/python2.2/site-packages/ZEO/tests/speed.pysZEOExit;s     cs xt|ƒD]ö}xíddddfD]Ù}tiƒ}d} |iƒ}xdoùyÔt ƒi ƒ|i ƒ} d|}| i|ƒo| |} ntƒ| |<} xnt|ƒD]`} t| t| ƒtƒƒ}|tj o||ƒ|_n ||_t| t| ƒ|ƒq¶Wt ƒiƒWntj o| d} nXPqMW|iƒtiƒ|}|oB|tjod|||| fGHnd|||| |fGHn||i!|| fƒt} } } }|oti#d ƒ|i$d ƒnq&Wq WdS( Nii idièiss%ss %s %s %.4f %ds%s %s %.4f %d %di(%srangesnrepsjsrstimests conflictssdbsopensjarsget_transactionsbeginsrootsrtskeyshas_keyspsPsisgetattrsstrsvscompresssNonesdatasdssetattrscommits ConflictErrorsclosesdetailedsthreadnosresultssappendsminimizessleeps cacheMinimize(sdbsresultssnrepscompresssdatasdetailedsminimizesthreadnoskeys conflictssrtsdspsisjsjarsrstsv((s7/usr/pkg/lib/python2.2/site-packages/ZEO/tests/speed.pysworkOsL            c sËti|dƒ\}}t}t} tid}d} d}d}t}d}d}x,|D]$\}}|djot|ƒ} nü|djo |}nå|djo |}nÎ|d jodk}|i} n«|d jo d}n”|d jo d}n}|d jo$d tid