Commit Graph

60 Commits

Author SHA1 Message Date
Stefan Schmidt 9c773ed5cf benchmarks: eina: make sure we do not divide by zero
Make sure we do not divide by i if it is zero here.

CID: 1400768

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D11956
2020-06-17 14:06:17 +02:00
Stefan Schmidt 59127058af benchmarks: use EFL_BUILD=1 in c_args
Original patch by Vincent Torri.

Reviewed-by: Vincent Torri <vincent.torri@gmail.com>
Reviewed-by: João Paulo Taylor Ienczak Zanette <joao.tiz@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D11853
2020-05-26 10:15:17 +02:00
Stefan Schmidt 4b5abd151c benchmark: fix ident in meson.build file
Use two spaces indent as in other files.

Differential Revision: https://phab.enlightenment.org/D11852

Signed-off-by: Stefan Schmidt <s.schmidt@samsung.com>
2020-05-25 16:02:08 +02:00
Carsten Haitzler 63b5d81983 Revert "Fix EAPI definition by defining EFL_BUILD for each built DLL"
This reverts commit 3ade45cbc8.
2020-05-18 11:13:59 +01:00
Vincent Torri 3ade45cbc8 Fix EAPI definition by defining EFL_BUILD for each built DLL
Summary: EAPI must be defined to dllexport when building DLL, and to dllimport when using these DLL. To achieve this, define EFL_BUILD for each library and module, and set DLL_EXPORT unconditionally. Static library are and will be not supported

Test Plan: compilation

Reviewers: zmike, raster, jptiz

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11834
2020-05-18 09:51:48 +01:00
Vincent Torri d135957ffa Use __func__ C99 identifier instead of __FUNCTION__ compiler extension
Summary: see http://www.open-std.org/JTC1/SC22/wg14/www/docs/n1124.pdf section 6.4.2.2 page 52

Test Plan: compilation

Reviewers: raster, devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11785
2020-05-07 09:27:07 -04:00
Tom Callaway c245b576aa Fix build with gcc 10 (which has -fno-common enabled by default).
EFL failed to build from source in Fedora Rawhide as a result of the update to GCC 10. GCC 10 enables -fno-common by default, and this found three issues in EFL:

  # The eina benchmark code defined int key_size in a header that was included in multiple places.
  # The elementary test code defines the "dt1", "dt2", "dt3" vars in two code files which are compiled together (but these variables do not appear to be used globally)
  # The eio test code defines the "ee" var in two code files which are compiled together (but this variable does not appear to be used globally)

I've fixed these issues and confirmed locally that the code builds again in Fedora.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D11259
2020-01-31 14:31:57 +01:00
Mike Blumenkrantz d417868c90 benchmarks/eina: fix possible div by zero in ecore_hash
Summary: CID 1400768

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10397
2019-10-18 13:29:07 -04:00
Boris Faure 511faf3cbf meson.build: allow to disable tiff evas loader
Summary:
@fix

eina benchmarks: ssize_t is defined in <sys/types.h>

Reviewers: #reviewers, bu5hm4n, zmike, stefan_schmidt

Reviewed By: zmike

Subscribers: vtorri, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9927
2019-09-13 11:26:19 -04:00
Shinwoo Kim 1d96fc9202 eina benchmarks: remove dereference of null
Summary:
A static analysis tool detects return value of malloc could be NULL and its
following lines could have derefernece of NULL case.

Reviewers: bu5hm4n, zmike, Hermet

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9812
2019-09-03 12:21:27 -04:00
Marcel Hollerbach 639869703f autotools: REMOVAL!
Get your seatbelt fastend! It is happening! AUTOTOOLS IS GONE NOW!
All praise to meson!

This time the final version, ci has been adjusted, and now does not try
anymore to build a removed buildsystem. However, the scripts in there
need cleaning up.

Differential Revision: https://phab.enlightenment.org/D9027
2019-06-18 08:56:34 +02:00
Marcel Hollerbach 4f8e15c16c Revert "autotools: REMOVAL!"
This reverts commit e8c69667b0.

git push on a wrong branch, sorry. This will land today, but not now.
2019-06-18 08:12:53 +02:00
Marcel Hollerbach e8c69667b0 autotools: REMOVAL!
Get your seatbelt fastend! It is happening! AUTOTOOLS IS GONE NOW!
All praise to meson!

Differential Revision: https://phab.enlightenment.org/D9027
2019-06-18 08:11:55 +02:00
Christopher Michael d15b37eea1 benchmarks: Fix copy-paste error
Coverity reports this as a copy-paste error, and checking the code it
certainly looks that way, so lets call the proper hash function here

Fixes CID1401052

@fix
2019-05-22 08:48:11 -04:00
Mike Blumenkrantz 7c7998b3dc meson: enforce 61s timeout for tests, remove explicit timeouts from build files
unit tests automatically abort with info after 60s, and tests should be run with
an appropriate timeout to avoid conflict with the test runner's default 30s timeout

set explicit timeout in eio test for now because there's still frequent bugs here

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8894
2019-05-15 18:49:51 +02:00
Christopher Michael db195e76cd eina_bench_stringshare: Fix resourcce leak
Summary:
Coverity reports that we leak the return from eina_counter_dump here,
so store the result, print it out, then we can free it.

Fixes CID1400975

@fix
Depends on D8767

Reviewers: raster, cedric, zmike, bu5hm4n, segfaultxavi

Reviewed By: segfaultxavi

Subscribers: segfaultxavi, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8768
2019-05-02 13:46:33 +02:00
Vincent Torri 79e809d945 eina benchmark: fix warnings on Windows 64 bits
Summary: long is always a 32 bits type on Windows

Test Plan: compilation

Reviewers: raster, zmike, cedric

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8482
2019-03-27 11:00:28 -04:00
Lauro Moura 95069a3038 meson: Enable dev flags for cpp
Had to add a pragma around CityHash64 to make it work with
-f-visibility=hidden

Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de>
Differential Revision: https://phab.enlightenment.org/D7466
2018-12-17 16:38:40 +01:00
Marcel Hollerbach 883092816d meson: fix running of benchmark
Differential Revision: https://phab.enlightenment.org/D7362
2018-12-03 19:22:28 +01:00
Carsten Haitzler 172f6000d6 evas mempool bench - fix warning about unused param
unused in some ifdefs - so make as unused.
2018-11-09 11:43:59 +00:00
Carsten Haitzler e8b9492600 evas list benchmarks - fix warning about if guarding 2018-11-09 11:43:59 +00:00
Carsten Haitzler 98042f98eb eina bench array - fix warning about if case not guarding
fix warning noise... no change in code function though.
2018-11-09 11:43:59 +00:00
Carsten Haitzler ea6edad4fb eina bech - hash - warn - fix type for hash func to have proper types
wrap cityhash with proepr typed hash gen func. fix warning
2018-11-09 11:43:58 +00:00
Marcel Hollerbach 46d464e5bf here comes meson
a new shiny buildtool that currently completes in the total of ~ 4 min..
1 min. conf time
2:30 min. build time
Where autotools takes:
1:50 min. conf time
3:40 min. build time.

meson was taken because it went quite good for enlightenment, and is a traction gaining system that is also used by other mayor projects. Additionally, the DSL that is defined my meson makes the configuration of the builds a lot easier to read.

Further informations can be gathered from the README.meson

Right now, bindings & windows support are missing.

It is highly recommented to use meson 0.48 due to optimizations in meson
that reduced the time the meson call would need.

Co-authored-by: Mike Blumenkrantz <zmike@samsung.com>

Differential Revision: https://phab.enlightenment.org/D7012
Depends on D7011
2018-10-02 17:22:50 +02:00
Vincent Torri f5b01ac5ce all: Simplify definition of EAPI
This will help in the transition from Autotools to Meson. This has been
tested on Windows for which EFL_XXX_BUILD were first introduced.
2018-01-18 18:04:03 +09:00
Stefan Schmidt 53485e5949 benchmarks: eine: include header for using time()
../src/benchmarks/eina/eina_bench_sort.c: In function ‘eina_bench_sort_eina’:
../src/benchmarks/eina/eina_bench_sort.c:52:10: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
    srand(time(NULL));

Found due to the nice quite build output in our meson feature branch.
2018-01-02 14:18:14 +01:00
Cedric BAIL f4f926f2bd eina: remove tests and benchmark for long dead mempool. 2017-08-15 13:46:38 -07:00
Cedric BAIL 5db949196e eina: remove benchmark for Eina_Promise. 2016-11-07 11:12:33 -08:00
Lauro Moura 46843551c0 eina: Remove value type promises
All values in promises are now considered as by-pointer.
2016-06-09 22:38:54 -03:00
Stefan Schmidt 14c8ddc678 benchmark: remove unused variable
Looks like this was forgotten during some re-factoring of the code.
2016-06-06 14:17:07 +02:00
Lauro Moura c6733fbbed eina: Fixes on promises benchmark
- Updated after pointer vs value change
- Updated callbacks after removal of promise argument
2016-06-05 21:57:08 -03:00
Felipe Magno de Almeida 8fec0d5139 eina: Remove unnecessary indirection to promises
Now when dealing with pointer types, we will not get pointer to
pointer semantics in callbacks and eina_promise_owner_value_set
for Eina_Promise.

It will work as expected:

Eina_Promise_Owner* promise = eina_promise_add();

void* p = malloc(sizeof(T));
eina_promise_owner_value_set(promise, p, &free);
2016-06-03 17:22:12 -03:00
Felipe Magno de Almeida 1eafe1d16a eina: Add non-allocated version to benchmark 2016-05-30 17:01:40 -03:00
Felipe Magno de Almeida 6e02d52fbb eina: Add mempool usage in benchmark 2016-05-30 16:22:27 -03:00
Felipe Magno de Almeida edd99d24ef eina: Add benchmarks for eina promises 2016-05-26 14:20:24 -03:00
Vincent Torri 3b44645363 efl: add binary mode to f(re)open() calls
This allows better compatibility with Windows

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-05 21:04:36 +01:00
vivek eec4a7bd0c eina: add benchmark for crc hash in eina benchmark
Summary:
The code added is actually benchmarking all hash function key with various length (8, 32, 256 bytes).

Signed-off-by: vivek <vivek.ellur@samsung.com>

Reviewers: Sergeant_Whitespace, cedric

Reviewed By: cedric

Subscribers: Sergeant_Whitespace, cedric

Differential Revision: https://phab.enlightenment.org/D2217

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-07 09:53:11 +02:00
Avi Levin d5496b09ad eina: fix eina_bench.c compilation error.
Summary:
When trying to compile eina_bench.c we get an error that say we didnt
defined the variables that EINA_ARRAY_ITER_NEXT. I defined them.
@fix

Reviewers: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1952

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-09 22:04:51 +01:00
Srivardhan Hebbar 75b77c4722 eina: removed multiple eina_init call.
Summary:
I observed that eina_init() was called twice in this function and eina_shutdown() once. So thought this might be a mistake, and so have cleaned it.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: devilhorns, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1748

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-09 11:17:54 +01:00
Srivardhan Hebbar da548e5910 eina: Refactored code and removed unwanted assignment.
Summary:
Removed unused assignment for length.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1739
2014-12-08 14:46:50 +01:00
Srivardhan Hebbar c13ee92297 eina: corrected documentation of ecore_hash_destroy function in benchmarj.
Summary:
ecore_hash_destroy function return nothing, still in the documentation of the function, it was mentioned that it would return true or false. So corrected the documentation.

Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>

Reviewers: devilhorns, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1738

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-08 09:18:15 +01:00
kabeer khan abb03f76c4 eina: Remove TODO, add code to delete the modules array
Summary:
As mentioned in TODO in eina_bench.c I added the code to loop through _modules array and delete each item.:

Signed-off-by: kabeer khan <kabeer.khan@samsung.com>

Reviewers: cedric, raster

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1446

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-09-22 14:59:27 +02:00
Daniel Juyung Seo 8ba2cc6fe9 doc: fixed typo. 2014-08-18 01:10:39 +09:00
Savio Sena 073b666022 autotools: Fixed 'make examples' and 'make examples-install'
It was broken in set-ups with ($(builddir) != $(srcdir)) && ($(builddir) !=
$(srcdir)/build)
2014-07-02 20:01:09 -03:00
Cedric Bail 029087d004 eina: ignore benchmark binary. 2013-12-04 18:33:05 +09:00
Cedric Bail 46ca166599 eina: improve benchmark logic to be able to choose which one to run.
Note: Eina_Hash benchmark is not really matching all our usecase.
We need a better tests that would expand the bench with a wider range
of key size. Basically giving a 3d dimension to our gnuplot. Don't know
if it is doable.
2013-09-26 15:51:25 +09:00
Carsten Haitzler f2b1039e05 fix examples makefiles to find Efl_Config.h 2013-04-25 02:08:49 +09:00
Igor Murzov 1373f0ba4a Fix incorrect printf format usage 2013-04-16 12:07:36 +04:00
Gustavo Sverzut Barbieri 7499e9dee0 efl: distcheck will run tests and compile all examples.
Tests are disabled by default, but they should be mandatory for
distcheck. So should be examples, we should have them to at least
compile.

As there is no way to force "make distcheck" to run "make examples",
I've created --enable-always-build-examples to make examples regular
noinst_PROGRAMS, being always compiled. distcheck will use that
option.



SVN revision: 82276
2013-01-05 14:41:14 +00:00
Gustavo Sverzut Barbieri deeaf20150 efl/eina: add source benchmark file.
SVN revision: 82235
2013-01-04 20:12:28 +00:00