From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3B89E387088C; Tue, 25 Jun 2024 18:15:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B89E387088C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1719339343; bh=evFsFMgqTbSES6l3+xvp7rcinn6+cDoOGAh6L++8VCs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IJTEjqIy8fxqy3VrpVU1+xiHKL6zho3C4tdXCaqDoWwPHdrVo/v/AoyirHdgXzgcV qgFB1t9RelrHQIPXn8KKA1TYlzvjU3ZjpKbIfEj+5vxuIsEy793htrNA1MVQ+HtHDt 9gXwKRkHscuCwNd3HSenssxigAI98nZ2oVibTEro= From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/98678] 30_threads/future/members/poll.cc execution test FAILs Date: Tue, 25 Jun 2024 18:15:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: testsuite-fail X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98678 John David Anglin changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #58500|0 |1 is obsolete| | --- Comment #13 from John David Anglin --- Created attachment 58515 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D58515&action=3Dedit Really fix poll.cc on hppa-linux hppa-linux doesn't have high resolution timer support. Timer resolutions range from 1 to 10ms depending on CONFIG_HZ. The ready loop takes about 5ns per call. As a result, we need a lot of iterations to obtain reasonable accuracy in the ready loop. I reduced the number of iteration in the wait_until_sys_epoch and wait_until_steady_epoch loops to 1000 so test would run in a reasonable time. The results for these two loops are currently not checked. Here is output on 1GHz c8000 with HZ=3D250: dave@atlas:~/gnu/gcc/objdir/hppa-linux-gnu/libstdc++-v3/testsuite$ ./poll.e= xe wait_for(0s): 4919957362ns for 100000000 calls, avg 49.1996ns per call wait_until(system_clock minimum): 22053828859ns for 100000000 calls, avg 220.538ns per call wait_until(steady_clock minimum): 22277782883ns for 100000000 calls, avg 222.778ns per call wait_until(system_clock epoch): 3999965336ns for 1000 calls, avg 3.99997e+0= 6ns per call wait_until(steady_clock epoch: 3999965335ns for 1000 calls, avg 3.99997e+06= ns per call wait_for when ready: 519995494ns for 100000000 calls, avg 5.19995ns per cal= l=