dev/c/malloc_speed_test/malloc_speed_test.c

17 lines
184 B
C

#include <stdlib.h>
const unsigned long long MAX_I=0x00ffffff;
int main()
{
unsigned long long i;
void *p = NULL;
for (i = 0; i < MAX_I; i++)
p = malloc(1);
return 0;
}