dev/c/malloc_speed_test/malloc_speed_test.c

17 lines
184 B
C
Raw Normal View History

2011-04-28 14:42:44 +04:00
#include <stdlib.h>
const unsigned long long MAX_I=0x00ffffff;
int main()
{
unsigned long long i;
void *p = NULL;
2011-04-28 14:42:44 +04:00
for (i = 0; i < MAX_I; i++)
p = malloc(1);
2011-04-28 14:42:44 +04:00
return 0;
}