public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "H.J. Lu" <hjl.tools@gmail.com>
To: GNU C Library <libc-alpha@sourceware.org>
Subject: Re: [PATCH] benchtests: Sort benches in Makefile
Date: Mon, 7 Feb 2022 07:08:36 -0800	[thread overview]
Message-ID: <CAMe9rOqKOwo=3YCTxDAWwEnjUFmW2CMFLmeMk_P-WfqXGPwOww@mail.gmail.com> (raw)
In-Reply-To: <20220207143925.1704926-1-hjl.tools@gmail.com>

On Mon, Feb 7, 2022 at 6:39 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> Put one bench per line and sort them.
> ---
>  benchtests/Makefile | 129 +++++++++++++++++++++++++++++++++++++-------
>  1 file changed, 110 insertions(+), 19 deletions(-)
>
> diff --git a/benchtests/Makefile b/benchtests/Makefile
> index 4c6af01c5f..7c330e9967 100644
> --- a/benchtests/Makefile
> +++ b/benchtests/Makefile
> @@ -86,16 +86,30 @@ bench-math := \
>    y1 \
>
>  ifneq (,$(filter yes,$(float96-fcts)))
> -bench-math += cbrtl
> +bench-math += \
> +  cbrtl \
> +# bench-math
>  endif
>
>  ifneq (,$(filter yes,$(float128-fcts) $(float128-alias-fcts)))
> -bench-math += expf128 powf128 sinf128 ilogbf128
> +bench-math += \
> +  expf128 \
> +  ilogbf128 \
> +  powf128 \
> +  sinf128 \
> +# bench-math
>  endif
>
> -bench-pthread := pthread_once thread_create pthread-locks
> +bench-pthread := \
> +  pthread-locks \
> +  pthread_once \
> +  thread_create \
> +# bench-pthread
>
> -bench-string := ffs ffsll
> +bench-string := \
> +  ffs \
> +  ffsll \
> +# bench-string
>
>  ifeq (${BENCHSET},)
>  bench := $(bench-math) $(bench-pthread) $(bench-string)
> @@ -104,19 +118,75 @@ bench := $(foreach B,$(filter bench-%,${BENCHSET}), ${${B}})
>  endif
>
>  # String function benchmarks.
> -string-benchset := memccpy memchr memcmp memcmpeq memcpy memmem memmove \
> -                  mempcpy memset rawmemchr stpcpy stpncpy strcasecmp strcasestr \
> -                  strcat strchr strchrnul strcmp strcpy strcspn strlen \
> -                  strncasecmp strncat strncmp strncpy strnlen strpbrk strrchr \
> -                  strspn strstr strcpy_chk stpcpy_chk memrchr strsep strtok \
> -                  strcoll memcpy-large memcpy-random memmove-large memset-large \
> -                  memcpy-walk memset-walk memmove-walk
> +string-benchset := \
> +  memccpy \
> +  memchr \
> +  memcmp \
> +  memcmpeq \
> +  memcpy \
> +  memcpy-large \
> +  memcpy-random \
> +  memcpy-walk \
> +  memmem \
> +  memmove \
> +  memmove-large \
> +  memmove-walk \
> +  mempcpy \
> +  memrchr \
> +  memset \
> +  memset-large \
> +  memset-walk \
> +  rawmemchr \
> +  stpcpy \
> +  stpcpy_chk \
> +  stpncpy \
> +  strcasecmp \
> +  strcasestr \
> +  strcat \
> +  strchr \
> +  strchrnul \
> +  strcmp \
> +  strcoll \
> +  strcpy \
> +  strcpy_chk \
> +  strcspn \
> +  strlen \
> +  strncasecmp \
> +  strncat \
> +  strncmp \
> +  strncpy \
> +  strnlen \
> +  strpbrk \
> +  strrchr \
> +  strsep \
> +  strspn \
> +  strstr \
> +  strtok \
> +# string-benchset
>
>  # Build and run locale-dependent benchmarks only if we're building natively.
>  ifeq (no,$(cross-compiling))
> -wcsmbs-benchset := wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat \
> -                  wcscmp wcsncmp wcschr wcschrnul wcsrchr wcsspn wcspbrk wcscspn \
> -                  wmemchr wmemset wmemcmp
> +wcsmbs-benchset := \
> +  wcpcpy \
> +  wcpncpy \
> +  wcscat \
> +  wcschr \
> +  wcschrnul \
> +  wcscmp \
> +  wcscpy \
> +  wcscspn \
> +  wcslen \
> +  wcsncat \
> +  wcsncmp \
> +  wcsncpy \
> +  wcsnlen \
> +  wcspbrk \
> +  wcsrchr \
> +  wcsspn \
> +  wmemchr \
> +  wmemcmp \
> +  wmemset \
> +# wcsmbs-benchset
>  else
>  wcsmbs-benchset :=
>  endif
> @@ -125,11 +195,32 @@ string-benchset-all := $(string-benchset) ${wcsmbs-benchset}
>
>  ifeq (no,$(cross-compiling))
>  # We have to generate locales
> -LOCALES := en_US.UTF-8 tr_TR.UTF-8 cs_CZ.UTF-8 fa_IR.UTF-8 fr_FR.UTF-8 \
> -          ja_JP.UTF-8 si_LK.UTF-8 en_GB.UTF-8 vi_VN.UTF-8 ar_SA.UTF-8 \
> -          da_DK.UTF-8 pl_PL.UTF-8 pt_PT.UTF-8 el_GR.UTF-8 ru_RU.UTF-8 \
> -          he_IL.UTF-8 is_IS.UTF-8 es_ES.UTF-8 hi_IN.UTF-8 sv_SE.UTF-8 \
> -          hu_HU.UTF-8 it_IT.UTF-8 sr_RS.UTF-8 zh_CN.UTF-8
> +LOCALES := \
> +  ar_SA.UTF-8 \
> +  cs_CZ.UTF-8 \
> +  da_DK.UTF-8 \
> +  el_GR.UTF-8 \
> +  en_GB.UTF-8 \
> +  en_US.UTF-8 \
> +  es_ES.UTF-8 \
> +  fa_IR.UTF-8 \
> +  fr_FR.UTF-8 \
> +  he_IL.UTF-8 \
> +  hi_IN.UTF-8 \
> +  hu_HU.UTF-8 \
> +  is_IS.UTF-8 \
> +  it_IT.UTF-8 \
> +  ja_JP.UTF-8 \
> +  pl_PL.UTF-8 \
> +  pt_PT.UTF-8 \
> +  ru_RU.UTF-8 \
> +  si_LK.UTF-8 \
> +  sr_RS.UTF-8 \
> +  sv_SE.UTF-8 \
> +  tr_TR.UTF-8 \
> +  vi_VN.UTF-8 \
> +  zh_CN.UTF-8 \
> +# LOCALES
>  include ../gen-locales.mk
>  endif
>
> --
> 2.34.1
>

I am checking it in.

-- 
H.J.

      reply	other threads:[~2022-02-07 15:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-07 14:39 H.J. Lu
2022-02-07 15:08 ` H.J. Lu [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMe9rOqKOwo=3YCTxDAWwEnjUFmW2CMFLmeMk_P-WfqXGPwOww@mail.gmail.com' \
    --to=hjl.tools@gmail.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).