Skip to content

Commit

Permalink
also show result in Mb/s
Browse files Browse the repository at this point in the history
  • Loading branch information
yyshen committed Jan 12, 2015
1 parent ceaaaf2 commit d0aaca1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mbw.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static int mt_init(void)
int i = 0;
int j = 0;

printf("Thread number %d\n", mt_num);
printf("Number of Threads %d\n", mt_num);
ret = pthread_barrier_init(&mt_barrier, 0, mt_num);
if (ret) { printf("init barrier error %d\n", ret); return ret; }

Expand All @@ -136,7 +136,7 @@ static int mt_init(void)
/* assuming 8 cores max */
for (i = 0; i < 8; i++) {
if (CPU_ISSET(i, &cs)) {
printf("core %d\n", i);
printf("Core %d\n", i);
num_cores++;
}
}
Expand Down Expand Up @@ -314,7 +314,8 @@ void printout(double te, double mt, int type)
}
printf("Elapsed: %.5f\t", te);
printf("MiB: %.5f\t", mt);
printf("Copy: %.3f MiB/s\n", mt/te);
printf("Copy: %.3f MiB/s", mt/te);
printf(" %.3f Mb/s\n", (mt * 8 * 1024 * 1024) / 1000 / 1000 / te);
return;
}

Expand Down

0 comments on commit d0aaca1

Please sign in to comment.