[PATCH] Speedup nptl/tst-cond11 and nptl/tst-cond11-static.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Speedup nptl/tst-cond11 and nptl/tst-cond11-static.

Stefan Liebler-2
Hi,

each test runs for 5s as run_test is called 5 times.
in run_test, the timeout for pthread_cond_timedwait
or pthread_cond_clockwait is tested by adding 1s to
current time.

This patch reduces the timeout to 0.3s which leads to
a runtime of 1.5s for one invocation.
As the nptl tests run in sequence, this patch saves roughly
7s of runtime for "make check".

Bye,
Stefan

ChangeLog:

        * nptl/tst-cond11.c (run_test): Reduce timeout.

20190912_nptl_tstcond11.patch (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Speedup nptl/tst-cond11 and nptl/tst-cond11-static.

Carlos O'Donell-6
On 9/12/19 8:16 AM, Stefan Liebler wrote:

> Hi,
>
> each test runs for 5s as run_test is called 5 times.
> in run_test, the timeout for pthread_cond_timedwait
> or pthread_cond_clockwait is tested by adding 1s to
> current time.
>
> This patch reduces the timeout to 0.3s which leads to
> a runtime of 1.5s for one invocation.
> As the nptl tests run in sequence, this patch saves roughly
> 7s of runtime for "make check".
>
> Bye,
> Stefan
>
> ChangeLog:
>
>     * nptl/tst-cond11.c (run_test): Reduce timeout.

Same comment as with "[PATCH] Speedup various nptl/tst-mutex5 tests."

--
Cheers,
Carlos.