diff options
| author | Wangyang Guo <wangyang.guo@intel.com> | 2024-11-29 16:05:35 +0800 |
|---|---|---|
| committer | H.J. Lu <hjl.tools@gmail.com> | 2024-11-29 19:04:28 +0800 |
| commit | 2d6427a63cad8056ba6bcaaaa8df21977c8dde3d (patch) | |
| tree | 0af48fd8aa244a5193202a5ebe59e58a1e0e1f37 /benchtests/Makefile | |
| parent | 19a198f05802fcc05441c364ed75311ef3f6d663 (diff) | |
| download | glibc-2d6427a63cad8056ba6bcaaaa8df21977c8dde3d.tar.xz glibc-2d6427a63cad8056ba6bcaaaa8df21977c8dde3d.zip | |
benchtests: Add calloc test
Two new benchmarks related to calloc added:
- bench-calloc-simple
- bench-calloc-thread
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'benchtests/Makefile')
| -rw-r--r-- | benchtests/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile index 23db840666..2ee5516d55 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -308,11 +308,14 @@ CFLAGS-bench-isfinite.c += $(config-cflags-signaling-nans) ifeq (${BENCHSET},) bench-malloc := \ + calloc-simple \ + calloc-thread \ malloc-simple \ malloc-thread \ # bench-malloc else bench-malloc := $(filter malloc-%,${BENCHSET}) +bench-malloc += $(filter calloc-%,${BENCHSET}) endif ifeq (${STATIC-BENCHTESTS},yes) @@ -429,6 +432,8 @@ VALIDBENCHSETNAMES := \ bench-math \ bench-pthread \ bench-string \ + calloc-simple \ + calloc-thread \ hash-benchset \ malloc-simple \ malloc-thread \ @@ -469,7 +474,7 @@ bench-set: $(binaries-benchset) bench-malloc: $(binaries-bench-malloc) for run in $^; do \ echo "$${run}"; \ - if [ `basename $${run}` = "bench-malloc-thread" ]; then \ + if [[ `basename $${run}` =~ bench-[cm]alloc-thread ]]; then \ for thr in 1 8 16 32; do \ echo "Running $${run} $${thr}"; \ $(run-bench) $${thr} > $${run}-$${thr}.out; \ |
