xref: /freebsd/tools/test/malloc/Makefile (revision 953a3198a35204535cc9d450f04da982a4fea59b)
1953a3198SPoul-Henning KampPROG=	malloc
2953a3198SPoul-Henning KampNOMAN=	sorry
3953a3198SPoul-Henning Kamp
4953a3198SPoul-Henning Kamplibcmalloc:
5953a3198SPoul-Henning Kamp	make clean
6953a3198SPoul-Henning Kamp	make "CFLAGS=-O2"
7953a3198SPoul-Henning Kamp	mv malloc libcmalloc
8953a3198SPoul-Henning Kamp	@echo
9953a3198SPoul-Henning Kamp	@csh -x -c "time ./libcmalloc      500000  2000 8192"
10953a3198SPoul-Henning Kamp	@csh -x -c "time ./libcmalloc    50000000  2000 8192"
11953a3198SPoul-Henning Kamp	@csh -x -c "time ./libcmalloc      500000 14000 8192"
12953a3198SPoul-Henning Kamp	@csh -x -c "time ./libcmalloc    20000000 20000 2048"
13953a3198SPoul-Henning Kamp
14953a3198SPoul-Henning Kampgnumalloc:
15953a3198SPoul-Henning Kamp	make clean
16953a3198SPoul-Henning Kamp	make "CFLAGS=-lgnumalloc -O2"
17953a3198SPoul-Henning Kamp	mv malloc gnumalloc
18953a3198SPoul-Henning Kamp	@csh -x -c "time ./gnumalloc   500000  2000 8192"
19953a3198SPoul-Henning Kamp	@csh -x -c "time ./gnumalloc 50000000  2000 8192"
20953a3198SPoul-Henning Kamp	@csh -x -c "time ./gnumalloc   500000 14000 8192"
21953a3198SPoul-Henning Kamp	@csh -x -c "time ./gnumalloc 20000000 20000 2048"
22953a3198SPoul-Henning Kamp
23953a3198SPoul-Henning Kamp.include <bsd.prog.mk>
24