summaryrefslogtreecommitdiff
path: root/bench
Commit message (Collapse)AuthorAgeFilesLines
* bench: simplify the bench helpersRan Benita2018-07-056-137/+50
| | | | | | | | | Trim the API a bit. Also, just always use gettimeofday(), which is portable. Hopefully the system clock doesn't change while a benchmark is running. Signed-off-by: Ran Benita <ran234@gmail.com>
* build: remove unneeded preprocessor include flagsRan Benita2017-07-311-2/+2
| | | | | | Better to avoid these unexpected include paths. Signed-off-by: Ran Benita <ran234@gmail.com>
* bench: fix compilation on hurdRan Benita2016-09-192-0/+3
| | | | | | | | Patch by Samuel Thibault. https://github.com/xkbcommon/libxkbcommon/issues/39 Signed-off-by: Ran Benita <ran234@gmail.com>
* bench/compose: tabs -> spacesRan Benita2016-09-161-4/+4
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* bench: Check for errors opening Compose fileBryce Harrington2016-09-161-0/+6
| | | | | | | | Otherwise it can segfault e.g. running ./compose inside the bench directory. Signed-off-by: Bryce Harrington <bryce@bryceharrington.org> Signed-off-by: Ran Benita <ran234@gmail.com>
* test: assert/ignore some warn_unused_result'sRan Benita2016-03-151-5/+8
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* bench: Modify benchmarks for a wider range of platformsKazunobu Kuriyama2015-08-286-48/+242
| | | | | | | | - Add the new files bench.c and bench.h to implement a timer module. - Implement the module with clock_gettime(), mach_absolute_time(), or gettimeofday(), depending on a given platform. - Replace the time measurement code of the benchmark programs with the functions of the module.
* bench/compose: add new benchmarkRan Benita2014-10-052-0/+77
| | | | Signed-off-by: Ran Benita <ran234@gmail.com>
* Move benchmarks from tests to their own files in bench/Ran Benita2014-10-024-0/+233
The tests only contain tests, and the benchmarks are more visible. Signed-off-by: Ran Benita <ran234@gmail.com>