+
+ for (i = 0; i < n; i++)
+ for (j = 0; j < n; j++)
+ for (k = 0; k < n; k++)
+ C[i * n + j] += A[i * n + k] * B[k * n + j];
+
+ GRAS_BENCH_ONCE_RUN_ONCE_END();
+ now = gras_os_time() - now;
+ XBT_INFO("Iteration %d : %g ", l, now);
+ }
+
+ now = gras_os_time() - start;
+ XBT_INFO("End matrix multiplication loop (time: %g; Duration: %g)",
+ gras_os_time(), now);
+
+ start = now = gras_os_time();
+ XBT_INFO("Begin malloc loop (time: %g)", start);
+ for (l = 0; l < 4; l++) {
+ now = gras_os_time();
+ GRAS_BENCH_ONCE_RUN_ONCE_BEGIN();
+ free(A);
+ A = malloc(n * n * sizeof(double));