#include #include #include int main() { clock_t tic, toc; tic = clock(); int * list = calloc( 10000000, sizeof(int)); toc = clock(); printf("calloc: %fs\n", (double) (toc - tic) / CLOCKS_PER_SEC); tic = clock(); list = malloc( 10000000 * sizeof(int)); toc = clock(); free(list); printf("malloc: %fs\n", (double) (toc - tic) / CLOCKS_PER_SEC); return 0; }