bench/compile-keymap.c


Log

Author Commit Date CI Message
Ran Benita e120807b 2025-01-29T15:35:22 Update license notices to SDPX short identifiers + update LICENSE Fix #628. Signed-off-by: Ran Benita <ran@unusedvar.com>
Pierre Le Marre 842497d9 2025-01-22T16:46:11 clang-tidy: Fix implicit or incorrect integer casts
Pierre Le Marre b76617e6 2025-01-22T16:42:47 clang-tidy: Various fixes related to IO
Pierre Le Marre 4b0209df 2025-01-21T07:26:33 bench: Fix embedded directive within macro arguments Embedding a directive within macro arguments has undefined behavior.
Pierre Le Marre ddb731ce 2025-01-20T18:01:08 bench: Add xkb_keymap_get_as_string Based on the `compile-keymap` benchmark.
Pierre Le Marre f6f30c6b 2023-09-25T12:07:58 Add benchark for compile-keymap Implement `tasty-bench` method: 1. Set n = 1. 2. Measure execution time t_n of n iterations and execution time t_2n of 2n iterations. 3. Find t which minimizes deviation of (n·t, 2·n·t) from (t_n, t_2n), namely t = (t_n + 2·t_2n)/5n. 4. If deviation is small enough (see --stdev CLI parameter), return t as a mean execution time. 5. Otherwise set n = 2·n and jump back to Step 2. See: https://hackage.haskell.org/package/tasty-bench