dev/c/malloc_speed_test/malloc_speed_test.c

15 lines
165 B
C

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