summaryrefslogtreecommitdiff
path: root/src/benchmarks/eo/eo_bench_eo_do.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmarks/eo/eo_bench_eo_do.c')
-rw-r--r--src/benchmarks/eo/eo_bench_eo_do.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/benchmarks/eo/eo_bench_eo_do.c b/src/benchmarks/eo/eo_bench_eo_do.c
index 2bcdc4246e..9f84535254 100644
--- a/src/benchmarks/eo/eo_bench_eo_do.c
+++ b/src/benchmarks/eo/eo_bench_eo_do.c
@@ -13,7 +13,7 @@ bench_eo_do_simple(int request)
13 Eo *obj = eo_add(SIMPLE_CLASS, NULL); 13 Eo *obj = eo_add(SIMPLE_CLASS, NULL);
14 for (i = 0 ; i < request ; i++) 14 for (i = 0 ; i < request ; i++)
15 { 15 {
16 eo_do(obj, simple_a_set(i)); 16 simple_a_set(obj, i);
17 } 17 }
18 18
19 eo_unref(obj); 19 eo_unref(obj);
@@ -27,8 +27,8 @@ bench_eo_do_two_objs(int request)
27 Eo *obj2 = eo_add(SIMPLE_CLASS, NULL); 27 Eo *obj2 = eo_add(SIMPLE_CLASS, NULL);
28 for (i = 0 ; i < request ; i++) 28 for (i = 0 ; i < request ; i++)
29 { 29 {
30 eo_do(obj, simple_a_set(i)); 30 simple_a_set(obj, i);
31 eo_do(obj2, simple_a_set(i)); 31 simple_a_set(obj2, i);
32 } 32 }
33 33
34 eo_unref(obj); 34 eo_unref(obj);
@@ -43,7 +43,7 @@ bench_eo_do_two_objs_growing_stack(int request)
43 Eo *obj2 = eo_add(SIMPLE_CLASS, NULL); 43 Eo *obj2 = eo_add(SIMPLE_CLASS, NULL);
44 for (i = 0 ; i < request ; i++) 44 for (i = 0 ; i < request ; i++)
45 { 45 {
46 eo_do(obj, simple_other_call(obj2, 20)); 46 simple_other_call(obj, obj2, 20);
47 } 47 }
48 48
49 eo_unref(obj); 49 eo_unref(obj);
@@ -55,7 +55,7 @@ static const Eo_Class *cur_klass;
55static void 55static void
56_a_set(Eo *obj, void *class_data EINA_UNUSED, int a) 56_a_set(Eo *obj, void *class_data EINA_UNUSED, int a)
57{ 57{
58 eo_do_super(obj, cur_klass, simple_a_set(a)); 58 simple_a_set(eo_super(obj, cur_klass), a);
59} 59}
60 60
61static Eo_Op_Description op_desc[] = { 61static Eo_Op_Description op_desc[] = {
@@ -81,7 +81,7 @@ bench_eo_do_super(int request)
81 Eo *obj = eo_add(cur_klass, NULL); 81 Eo *obj = eo_add(cur_klass, NULL);
82 for (i = 0 ; i < request ; i++) 82 for (i = 0 ; i < request ; i++)
83 { 83 {
84 eo_do(obj, simple_a_set(i)); 84 simple_a_set(obj, i);
85 } 85 }
86 86
87 eo_unref(obj); 87 eo_unref(obj);