Revision 0bf9fcf7 xseg/xtypes/xobj_test.c

b/xseg/xtypes/xobj_test.c
135 135
	timersub(&end, &start, &end);
136 136
	unsigned long us;
137 137
	us = end.tv_sec * 1000000 + end.tv_usec;
138
	printf("Allocated %lu objects\n", c);
138
	printf("Allocated %lu objects of size %d (Total size: %lu)\n",
139
			c, sizeof(struct foo), c*sizeof(struct foo));
139 140
	printf("Total time: %lu us\n", us);
140 141
	unsigned long tpa =  (unsigned long) ((us*1000) / allocations);
141 142
	printf("Time per allocation: %lu ns\n\n", tpa);

Also available in: Unified diff