summaryrefslogtreecommitdiff
path: root/src/benchmarks/eo/eo_bench_eo_do.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-09-26 06:56:52 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-09-26 06:56:52 +0000
commit3b5a3448b7dfc53c2f129bdb04bea9f7a02741a6 (patch)
tree18ad8a6b1841e9832c85a46f887b2cd6d6dacc4b /src/benchmarks/eo/eo_bench_eo_do.c
parent195d31c73fef88cfaa803b07b2ae3cba983a4093 (diff)
merge: add eo
SVN revision: 77072
Diffstat (limited to 'src/benchmarks/eo/eo_bench_eo_do.c')
-rw-r--r--src/benchmarks/eo/eo_bench_eo_do.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/benchmarks/eo/eo_bench_eo_do.c b/src/benchmarks/eo/eo_bench_eo_do.c
new file mode 100644
index 0000000000..1e8d484979
--- /dev/null
+++ b/src/benchmarks/eo/eo_bench_eo_do.c
@@ -0,0 +1,26 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#include "Eo.h"
6#include "eo_bench.h"
7#include "class_simple.h"
8
9static void
10bench_eo_do_general(int request)
11{
12 int i;
13 Eo *obj = eo_add(SIMPLE_CLASS, NULL);
14 for (i = 0 ; i < request ; i++)
15 {
16 eo_do(obj, simple_a_set(i));
17 }
18
19 eo_unref(obj);
20}
21
22void eo_bench_eo_do(Eina_Benchmark *bench)
23{
24 eina_benchmark_register(bench, "various",
25 EINA_BENCHMARK(bench_eo_do_general), 100, 10000, 500);
26}