From: Siddhesh Poyarekar <siddhesh@gotplt.org>
To: DJ Delorie <dj@redhat.com>, libc-alpha@sourceware.org
Subject: Re: [v2] New benchtest: pthread locks
Date: Wed, 14 Oct 2020 06:57:13 +0530 [thread overview]
Message-ID: <95b4cd6d-3f74-c26d-aad3-fadd1a0fbf5d@gotplt.org> (raw)
In-Reply-To: <xnblha68gd.fsf@greed.delorie.com>
On 10/10/20 9:25 AM, DJ Delorie via Libc-alpha wrote:
>
> v2 changes do_bench_2 to run multiple passes and provide a mean and
> standard deviation as well as some other statistics, since I got tired
> of running the whole benchmark multiple times and computing them
> manually ;-)
>
> From 94653e93eec9403ebf61b00179799751ce12088d Mon Sep 17 00:00:00 2001
> From: DJ Delorie <dj@redhat.com>
> Date: Wed, 7 Oct 2020 17:04:12 -0400
> Subject: New benchtest: pthread locks
>
> Performance benchmarks for various posix locks: mutex, rwlock,
> spinlock, condvar, and semaphore. Each test is performed with
> an empty loop body or with a computationally "interesting" (i.e.
> difficult to optimize away, and used just to allow lock code to
> be "hidden" in the filler's CPU cycles).
This is good to commit, thanks for writing these tests!
> +/* The point of this benchmark is to measure the overhead of an empty
> + critical section or a small critical section. This is never going
> + to be indicative of real application performance. Instead we are
> + trying to benchmark the effects of the compiler and the runtime
> + coupled with a particular set of hardware atomic operations.
> + The numbers from this benchmark should be taken with a massive gain
> + of salt and viewed through the eyes of expert reviewers. */
That is a great comment. All benchmarks should have a goal set like
this so that it is clear to whoever evaluates them that just getting
better numbers in a specific benchmark is not good enough and one would
have to evaluate why a certain set of results supports their optimisation.
Siddhesh
next prev parent reply other threads:[~2020-10-14 1:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-08 5:34 New benchtest: pthread locks DJ Delorie via Libc-alpha
2020-10-10 3:55 ` [v2] " DJ Delorie via Libc-alpha
2020-10-12 7:05 ` Paul Zimmermann
2020-10-12 17:33 ` DJ Delorie via Libc-alpha
2020-10-13 8:25 ` Paul Zimmermann
2020-10-14 1:27 ` Siddhesh Poyarekar [this message]
2020-10-14 1:32 ` DJ Delorie via Libc-alpha
2020-10-21 15:18 ` DJ Delorie via Libc-alpha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/libc/involved.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=95b4cd6d-3f74-c26d-aad3-fadd1a0fbf5d@gotplt.org \
--to=siddhesh@gotplt.org \
--cc=dj@redhat.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).