Fredrik Lundh wrote: > M.-A. Lemburg wrote: > >> I just had an idea: if we could get each test to run >> inside a single time slice assigned by the OS scheduler, >> then we could benefit from the better resolution of the >> hardware timers while still keeping the noise to a >> minimum. >> >> I suppose this could be achieved by: >> >> * making sure that each tests needs less than 10ms to run > > iirc, very recent linux kernels have a 1 millisecond tick. so does > alphas, and probably some other platforms. Indeed, that's also what the microbench.py example that I posted demonstrates. And of, course, you have to call time.sleep() *before* running the test (which microbench.py does). -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Jun 06 2006) >>> Python/Zope Consulting and Support ... http://www.egenix.com/ >>> mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ ::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4