Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 169620
b: refs/heads/master
c: ff676b1
h: refs/heads/master
v: v3
  • Loading branch information
Hitoshi Mitake authored and Ingo Molnar committed Nov 10, 2009
1 parent 20bda95 commit 48587c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 79e295d4bd0f524257299e7c4e42f643f21abcc2
refs/heads/master: ff676b193a401b23c84a79a7ec06559f3eaae917
11 changes: 6 additions & 5 deletions trunk/tools/perf/bench/sched-pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,18 @@ int bench_sched_pipe(int argc, const char **argv,

switch (bench_format) {
case BENCH_FORMAT_DEFAULT:
printf("(executing %d pipe operations between two tasks)\n\n",
printf("# Extecuted %d pipe operations between two tasks\n\n",
loops);

result_usec = diff.tv_sec * 1000000;
result_usec += diff.tv_usec;

printf("\tTotal time:%lu.%03lu sec\n",
diff.tv_sec, diff.tv_usec / 1000);
printf("\t\t%lf usecs/op\n",
printf(" %14s: %lu.%03lu [sec]\n\n", "Total time",
diff.tv_sec, diff.tv_usec/1000);

printf(" %14lf usecs/op\n",
(double)result_usec / (double)loops);
printf("\t\t%d ops/sec\n",
printf(" %14d ops/sec\n",
(int)((double)loops /
((double)result_usec / (double)1000000)));
break;
Expand Down

0 comments on commit 48587c0

Please sign in to comment.