diff options
author | Nicholas Clark <nick@ccl4.org> | 2012-12-03 21:12:33 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2013-01-11 11:21:31 +0100 |
commit | 1765a17458779629f77333645777cc05c08e1981 (patch) | |
tree | 703434f6bf095c07afa0afc2fb457fcac8cb1cfa /write_buildcustomize.pl | |
parent | 64bb98afbbc7c215df7bc389ce005faffa473132 (diff) | |
download | perl-1765a17458779629f77333645777cc05c08e1981.tar.gz |
Don't use a fixed iteration count in dist/threads-shared/t/stress.t
Looping 500,000 times takes between 0.025s and 1s depending on hardware and
optimisation levels on machines I have access to. For a fixed iteration
count, on a particularly slow machine the timeout can fire before all
threads have had a realistic chance to complete, but dropping the iteration
count will cause fast machines to finish each thread too quickly.
So use an initial busy loop (single-thread) to estimate a suitable iteration
count to use for the per-thread test loop.
Diffstat (limited to 'write_buildcustomize.pl')
0 files changed, 0 insertions, 0 deletions