summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaekyun Kim <tkq.kim@samsung.com>2011-07-12 13:27:05 +0900
committerTaekyun Kim <tkq.kim@samsung.com>2011-07-12 13:27:05 +0900
commitaa10697d8fc7b5695e826e4f00ce8a4d77ac20de (patch)
tree01e4dfdb0b788bd1541135e8e77a80bb2c997c96
parentaf9ab917f74079a6e2396660aa9de0c8e48276a5 (diff)
composite_bench: Beautify output message and some refinementtest_and_perf
-rw-r--r--test/composite_bench.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/composite_bench.c b/test/composite_bench.c
index 7ea8051..c25d2cd 100644
--- a/test/composite_bench.c
+++ b/test/composite_bench.c
@@ -28,7 +28,7 @@
#include <string.h>
#include "utils.h"
-#define BENCH_REPEAT_COUNT 1000
+#define BENCH_REPEAT_COUNT 10000
typedef struct _bench_op
{
@@ -126,10 +126,10 @@ bench_scale scales[] =
bench_repeat repeats[] =
{
-// { PIXMAN_REPEAT_NONE, "NONE " },
-// { PIXMAN_REPEAT_PAD, "PAD " },
+ { PIXMAN_REPEAT_NONE, "NONE " },
+ { PIXMAN_REPEAT_PAD, "PAD " },
{ PIXMAN_REPEAT_NORMAL, "NORMAL " },
-// { PIXMAN_REPEAT_REFLECT, "REFLECT" },
+ { PIXMAN_REPEAT_REFLECT, "REFLECT" },
};
double
@@ -216,12 +216,12 @@ bench_repeat_mode_op_format(int op, int src_format, int mask_format, int dst_for
double mpix_per_sec;
- printf("//////////////////////////////////////////////////////////////////////////////\n");
+ printf("///////////////////////////////////////////////////////////////\n");
printf("// op=%s, src=%s, mask=%s, dst=%s\n",
ops[op].name, src_formats[src_format].name, mask_formats[mask_format].name,
dst_formats[dst_format].name);
- printf("/////////////////////////////////////////////////////////////////////////////\n");
- printf("<<<<< Reference Compositing Performance 2000x2000 to 2000x2000 >>>>>\n");
+ printf("//////////////////////////////////////////////////////////////\n");
+ printf("<< Reference Compositing Performance 2000x2000 to 2000x2000 >>\n");
for (j=0; j<sizeof(scales)/sizeof(scales[0]); ++j)
{
@@ -233,18 +233,18 @@ bench_repeat_mode_op_format(int op, int src_format, int mask_format, int dst_for
dst_formats[dst_format].format,
0, 0, 2000, 2000,
100);
- printf("%s : %.2fMpix/s\n", scales[j].name, mpix_per_sec);
+ printf("%s : %.2f Mpix/s\n", scales[j].name, mpix_per_sec);
}
for( i=0; i<sizeof(image_size)/sizeof(image_size[0]); ++i )
{
- printf("<<<<< src = %d x %d dst = %d x %d >>>>>\n",
+ printf("<< src = %d x %d dst = %d x %d >>\n",
image_size[i].src_w, image_size[i].src_h,
image_size[i].dst_w, image_size[i].dst_h);
for (j=0; j<sizeof(scales)/sizeof(scales[0]); ++j)
{
- printf("- %s -\n", scales[j].name);
+ printf("* %s\n", scales[j].name);
for (k=0; k<sizeof(repeats)/sizeof(repeats[0]); ++k)
{
@@ -258,7 +258,7 @@ bench_repeat_mode_op_format(int op, int src_format, int mask_format, int dst_for
image_size[i].dst_x, image_size[i].dst_y,
image_size[i].dst_w, image_size[i].dst_h,
BENCH_REPEAT_COUNT);
- printf("%s : %.2fMpix/s\n", repeats[k].name, mpix_per_sec);
+ printf("%s : %.2f Mpix/s\n", repeats[k].name, mpix_per_sec);
}
}