libxkbcommon/test
Ran Benita c1c1b720b0 test: add key processing benchmark
This runs a bunch of random keys against xkb_state_update_key() and
xkb_state_key_get_one_sym(), in a fairly unintelligent way.

It might be nice to check when modifying this code path, or changing it,
to see things haven't slowed down considerably. However, given the
numbers this benchmark gives, it is pretty clear that we are not going
to be the bottleneck for anything. So this can more-or-less be ignored.

Incidentally, this also turned out to be a poor man's fuzzer, because it
turned up the fix in the previous commit. Maybe we should consider
beefing it up with an actual 'break stuff' intention and running it as
part of 'make check'.

Signed-off-by: Ran Benita <ran234@gmail.com>
2012-10-24 23:27:40 +02:00
..
data parser: remove XkbCompMapList rule 2012-09-30 14:20:16 +02:00
.gitignore test: add key processing benchmark 2012-10-24 23:27:40 +02:00
bench-key-proc.c test: add key processing benchmark 2012-10-24 23:27:40 +02:00
common.c Don't use xkbcommon-compat names in internal code 2012-09-24 09:08:53 +10:00
context.c Organize src/ and test/ headers 2012-09-16 15:20:18 +03:00
filecomp.c parser: remove XkbCompMapList rule 2012-09-30 14:20:16 +02:00
interactive.c test/interactive: use num_layouts_for_key() 2012-10-23 17:22:13 +02:00
keyseq.c Add xkb_keysym_from_name() flags argument for case-insensitive search 2012-10-16 21:29:09 +02:00
keysym.c Add xkb_keysym_from_name() flags argument for case-insensitive search 2012-10-16 21:29:09 +02:00
log.c Change log env vars to XKB_LOG_LEVEL/VERBOSITY 2012-10-12 10:17:57 +02:00
print-compiled-keymap.c Add format argument to xkb_keymap_get_as_string 2012-09-24 09:13:32 +10:00
rmlvo-to-kccgst.c Organize src/ and test/ headers 2012-09-16 15:20:18 +03:00
rules-file.c API: add _context prefix to log-related functions 2012-09-24 09:08:54 +10:00
rulescomp.c API: add _context prefix to log-related functions 2012-09-24 09:08:54 +10:00
state.c Split the mods, layout, leds parts of xkb_state_components 2012-10-22 21:48:40 +02:00
stringcomp.c stringcomp: test compilation of a dump of a keymap created from rules 2012-10-10 19:44:23 +02:00
test.h Don't use xkbcommon-compat names in internal code 2012-09-24 09:08:53 +10:00