about summary refs log tree commit diff
path: root/benchtests/Makefile
diff options
context:
space:
mode:
authorLeonhard Holz <leonhard.holz@web.de>2015-05-12 22:52:14 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2015-05-13 13:05:29 +0530
commit60ccaf7514b2a4b153a03302752f1afa340e66c0 (patch)
tree5d5f9eefed0531d4c71fd1ecf8a143eda9f27d3e /benchtests/Makefile
parent9f53d7ad577db870c4383b4378cd23131f516c42 (diff)
downloadglibc-60ccaf7514b2a4b153a03302752f1afa340e66c0.tar.gz
glibc-60ccaf7514b2a4b153a03302752f1afa340e66c0.tar.xz
glibc-60ccaf7514b2a4b153a03302752f1afa340e66c0.zip
Add strcoll benchmark
Diffstat (limited to 'benchtests/Makefile')
-rw-r--r--benchtests/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile
index 08603a2ced..cb7a97ee75 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -34,9 +34,18 @@ string-bench := bcopy bzero memccpy memchr memcmp 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
+		strspn strstr strcpy_chk stpcpy_chk memrchr strsep strtok \
+		strcoll
 string-bench-all := $(string-bench)
 
+# 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 \
+	   iw_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
+include ../gen-locales.mk
+
 stdlib-bench := strtod
 
 benchset := $(string-bench-all) $(stdlib-bench)
@@ -107,7 +116,7 @@ bench-clean:
 	rm -f $(binaries-bench-malloc) $(addsuffix .o,$(binaries-bench-malloc))
 	rm -f $(timing-type) $(addsuffix .o,$(timing-type))
 
-bench: $(timing-type) bench-set bench-func bench-malloc
+bench: $(timing-type) $(gen-locales) bench-set bench-func bench-malloc
 
 bench-set: $(binaries-benchset)
 	for run in $^; do \