blob: 57ffb87b1c8d5fe08b82abf3cf723f42978867da [file] [log] [blame]
David Reiss3000b5b2008-03-31 21:38:29 +00001# This probably should not go into "make check", because it is an experiment,
2# not a test. Specifically, it is meant to determine how likely realloc is
3# to avoid a copy. This is poorly documented.
4
5run: realloc_test
6 for it in 1 4 64 ; do \
7 for nb in 1 8 64 512 ; do \
8 for mins in 64 512 ; do \
9 for maxs in 2048 262144 ; do \
10 for db in 8 64 ; do \
11 ./realloc_test $$nb $$mins $$maxs $$db $$it \
12 ; done \
13 ; done \
14 ; done \
15 ; done \
16 ; done \
17 > raw_stats
18
19CFLAGS = -Wall -g -std=c99
20LDLIBS = -ldl
21realloc_test: realloc_test.c