summaryrefslogtreecommitdiff
path: root/legacy/eina/src/tests/eina_bench_hash.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2010-02-13 12:32:22 +0000
committerVincent Torri <vincent.torri@gmail.com>2010-02-13 12:32:22 +0000
commitb87e1d6fae74fc26eea10e295027751f94020fa6 (patch)
tree3045a7790ecb09ca223a4ec0b7f57f194e85f27d /legacy/eina/src/tests/eina_bench_hash.c
parent0a87819b441faa6872b83f9fb83be701c72b550e (diff)
* -fno-strict-aliasing is checked at linked time (to make sure
that it is disabled for suncc) * add old evas data types in tests. Tell me if you encounter problems with them SVN revision: 46136
Diffstat (limited to '')
-rw-r--r--legacy/eina/src/tests/eina_bench_hash.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/legacy/eina/src/tests/eina_bench_hash.c b/legacy/eina/src/tests/eina_bench_hash.c
index 66c00a232f..686ab924c2 100644
--- a/legacy/eina/src/tests/eina_bench_hash.c
+++ b/legacy/eina/src/tests/eina_bench_hash.c
@@ -29,11 +29,8 @@
29# include <glib.h> 29# include <glib.h>
30#endif 30#endif
31 31
32#ifdef EINA_BENCH_HAVE_EVAS 32#include "Evas_Data.h"
33# include <Evas.h> 33#include "Ecore_Data.h"
34#endif
35
36# include <Ecore_Data.h>
37 34
38#include "eina_hash.h" 35#include "eina_hash.h"
39#include "eina_array.h" 36#include "eina_array.h"
@@ -278,8 +275,6 @@ eina_bench_lookup_ghash(int request)
278} 275}
279#endif 276#endif
280 277
281#ifdef EINA_BENCH_HAVE_EVAS
282#if 0
283static void 278static void
284eina_bench_lookup_evas(int request) 279eina_bench_lookup_evas(int request)
285{ 280{
@@ -298,7 +293,7 @@ eina_bench_lookup_evas(int request)
298 293
299 tmp_val = malloc(sizeof (int)); 294 tmp_val = malloc(sizeof (int));
300 295
301 if (!tmp_key || !tmp_val) continue ; 296 if (!tmp_val) continue ;
302 297
303 eina_convert_itoa(i, tmp_key); 298 eina_convert_itoa(i, tmp_key);
304 *tmp_val = i; 299 *tmp_val = i;
@@ -327,8 +322,6 @@ eina_bench_lookup_evas(int request)
327 322
328 eina_array_free(array); 323 eina_array_free(array);
329} 324}
330#endif
331#endif
332 325
333typedef struct _Eina_Bench_Ecore Eina_Bench_Ecore; 326typedef struct _Eina_Bench_Ecore Eina_Bench_Ecore;
334struct _Eina_Bench_Ecore 327struct _Eina_Bench_Ecore
@@ -386,10 +379,6 @@ void eina_bench_hash(Eina_Benchmark *bench)
386#ifdef EINA_BENCH_HAVE_GLIB 379#ifdef EINA_BENCH_HAVE_GLIB
387 eina_benchmark_register(bench, "ghash-lookup", EINA_BENCHMARK(eina_bench_lookup_ghash), 10, 3000, 10); 380 eina_benchmark_register(bench, "ghash-lookup", EINA_BENCHMARK(eina_bench_lookup_ghash), 10, 3000, 10);
388#endif 381#endif
389#ifdef EINA_BENCH_HAVE_EVAS
390#if 0
391 eina_benchmark_register(bench, "evas-lookup", EINA_BENCHMARK(eina_bench_lookup_evas), 10, 3000, 10); 382 eina_benchmark_register(bench, "evas-lookup", EINA_BENCHMARK(eina_bench_lookup_evas), 10, 3000, 10);
392#endif
393#endif
394 eina_benchmark_register(bench, "ecore-lookup", EINA_BENCHMARK(eina_bench_lookup_ecore), 10, 3000, 10); 383 eina_benchmark_register(bench, "ecore-lookup", EINA_BENCHMARK(eina_bench_lookup_ecore), 10, 3000, 10);
395} 384}