summaryrefslogtreecommitdiff
path: root/src/benchmarks/eo
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmarks/eo')
-rw-r--r--src/benchmarks/eo/eo_bench_callbacks.c3
-rw-r--r--src/benchmarks/eo/eo_bench_eo_do.c18
2 files changed, 14 insertions, 7 deletions
diff --git a/src/benchmarks/eo/eo_bench_callbacks.c b/src/benchmarks/eo/eo_bench_callbacks.c
index ab779f8417..2114234411 100644
--- a/src/benchmarks/eo/eo_bench_callbacks.c
+++ b/src/benchmarks/eo/eo_bench_callbacks.c
@@ -17,7 +17,8 @@ static void
17bench_eo_callbacks_add(int request) 17bench_eo_callbacks_add(int request)
18{ 18{
19 int i; 19 int i;
20 Eo *obj = eo_add(SIMPLE_CLASS, NULL); 20 Eo *obj = NULL;
21 eo_add(&obj, SIMPLE_CLASS, NULL);
21 22
22 for (i = 0 ; i < request ; i++) 23 for (i = 0 ; i < request ; i++)
23 { 24 {
diff --git a/src/benchmarks/eo/eo_bench_eo_do.c b/src/benchmarks/eo/eo_bench_eo_do.c
index 9f84535254..9160507c75 100644
--- a/src/benchmarks/eo/eo_bench_eo_do.c
+++ b/src/benchmarks/eo/eo_bench_eo_do.c
@@ -10,7 +10,8 @@ static void
10bench_eo_do_simple(int request) 10bench_eo_do_simple(int request)
11{ 11{
12 int i; 12 int i;
13 Eo *obj = eo_add(SIMPLE_CLASS, NULL); 13 Eo *obj = NULL;
14 eo_add(&obj, SIMPLE_CLASS, NULL);
14 for (i = 0 ; i < request ; i++) 15 for (i = 0 ; i < request ; i++)
15 { 16 {
16 simple_a_set(obj, i); 17 simple_a_set(obj, i);
@@ -23,8 +24,10 @@ static void
23bench_eo_do_two_objs(int request) 24bench_eo_do_two_objs(int request)
24{ 25{
25 int i; 26 int i;
26 Eo *obj = eo_add(SIMPLE_CLASS, NULL); 27 Eo *obj = NULL;
27 Eo *obj2 = eo_add(SIMPLE_CLASS, NULL); 28 eo_add(&obj, SIMPLE_CLASS, NULL);
29 Eo *obj2 = NULL;
30 eo_add(&obj2, SIMPLE_CLASS, NULL);
28 for (i = 0 ; i < request ; i++) 31 for (i = 0 ; i < request ; i++)
29 { 32 {
30 simple_a_set(obj, i); 33 simple_a_set(obj, i);
@@ -39,8 +42,10 @@ static void
39bench_eo_do_two_objs_growing_stack(int request) 42bench_eo_do_two_objs_growing_stack(int request)
40{ 43{
41 int i; 44 int i;
42 Eo *obj = eo_add(SIMPLE_CLASS, NULL); 45 Eo *obj = NULL;
43 Eo *obj2 = eo_add(SIMPLE_CLASS, NULL); 46 eo_add(&obj, SIMPLE_CLASS, NULL);
47 Eo *obj2 = NULL;
48 eo_add(&obj2, SIMPLE_CLASS, NULL);
44 for (i = 0 ; i < request ; i++) 49 for (i = 0 ; i < request ; i++)
45 { 50 {
46 simple_other_call(obj, obj2, 20); 51 simple_other_call(obj, obj2, 20);
@@ -78,7 +83,8 @@ bench_eo_do_super(int request)
78 cur_klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL); 83 cur_klass = eo_class_new(&class_desc, SIMPLE_CLASS, NULL);
79 84
80 int i; 85 int i;
81 Eo *obj = eo_add(cur_klass, NULL); 86 Eo *obj = NULL;
87 eo_add(&obj, cur_klass, NULL);
82 for (i = 0 ; i < request ; i++) 88 for (i = 0 ; i < request ; i++)
83 { 89 {
84 simple_a_set(obj, i); 90 simple_a_set(obj, i);