Python threading (was: Re: global interpreter lock not working as it should)
mwh at python.net
Wed Aug 7 13:15:46 CEST 2002
a-steinhoff at web.de (Armin Steinhoff) writes:
> As an intermediate solution I have only inserts two
> lines in cevel.c ... here some performance numbers.
> Performance unmodified:
> time ../../python test_threading.py
Are you aware what test_threading does?
delay = random.random() * 2
make me doubtful of the use of this test as a benchmark...
> 4.16s real 0.14s user 0.02s system
> 2.66s real 0.16s user 0.02s system
> The performance is increased by ~90 %
Even given the apparent uselessness of this benchmark, where do you
get 90% from here?
y'rs - tim
-- Tim Peters dishes out versioning advice on python-dev
More information about the Python-list