summaryrefslogtreecommitdiff
path: root/lib/ccan/htable/tools/Makefile
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-12-05 16:42:49 +1030
committerRusty Russell <rusty@rustcorp.com.au>2011-12-05 16:42:49 +1030
commit18cd3dd2add0420d57118ccf58b28a48d9d68018 (patch)
tree8c487c348f9e8a213a501a86809c03547f53debc /lib/ccan/htable/tools/Makefile
parent5917d979911b024714d2d3a7b64255bffa37ec60 (diff)
downloadsamba-18cd3dd2add0420d57118ccf58b28a48d9d68018.tar.gz
samba-18cd3dd2add0420d57118ccf58b28a48d9d68018.tar.bz2
samba-18cd3dd2add0420d57118ccf58b28a48d9d68018.zip
lib/ccan/htable: benchmark against hsearch(3)
Since that has a fixed hash table size and doesn't support delete, we can't do a thorough comparison, but we can insert and search. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 95757f0e9d979e7c653e9b53bb640deb4f0ea1f9)
Diffstat (limited to 'lib/ccan/htable/tools/Makefile')
-rw-r--r--lib/ccan/htable/tools/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ccan/htable/tools/Makefile b/lib/ccan/htable/tools/Makefile
index 289d92b335..a21c51cb55 100644
--- a/lib/ccan/htable/tools/Makefile
+++ b/lib/ccan/htable/tools/Makefile
@@ -1,7 +1,7 @@
CFLAGS=-Wall -Werror -O3 -I../../..
#CFLAGS=-Wall -Werror -g -I../../..
-all: speed stringspeed
+all: speed stringspeed hsearchspeed
speed: speed.o hash.o
@@ -14,5 +14,7 @@ stringspeed: stringspeed.o hash.o ../../talloc.o ../../str_talloc.o ../../grab_f
stringspeed.o: speed.c ../htable.h ../htable.c
+hsearchspeed: hsearchspeed.o ../../talloc.o ../../str_talloc.o ../../grab_file.o ../../str.o ../../time.o ../../noerr.o
+
clean:
- rm -f stringspeed speed
+ rm -f stringspeed speed hsearchspeed *.o