]> https://gitweb.dealii.org/ - dealii.git/commit
Swap out burn() for sleep in an erratic test. 16086/head
authorDavid Wells <drwells@email.unc.edu>
Tue, 3 Oct 2023 20:23:25 +0000 (16:23 -0400)
committerDavid Wells <drwells@email.unc.edu>
Tue, 3 Oct 2023 20:23:25 +0000 (16:23 -0400)
commit285ac6075fc727b9c6ecfa9e8f502173d8f8a968
treee6d34d83ceb070d9e2711b0deb8da8cd74fa640e
parent740c00a5f940db07b83d4d2dd392e1238c86d8d4
Swap out burn() for sleep in an erratic test.

I did some experiments and, under load, I can get a few percentage points of
difference between section 1 and section 2 when using burn(). These go
away (also under load) when I use sleep(), so that should make this test more
reliable.
tests/base/timer_03.cc

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.