Add performance tests to clue-matches-tests.c
Sample output:
=================================== 12/12 ====================================
test: clue-matches-tests
start time: 11:59:26
duration: 1.04s
result: exit status 0
command: G_TEST_SRCDIR=/home/victor/crosswords/src MESON_TEST_ITERATION=1 MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 MALLOC_PERTURB_=156 ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 G_TEST_BUILDDIR=/home/victor/crosswords/_build/src UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 /home/victor/crosswords/_build/src/clue-matches-tests --tap -k
----------------------------------- stdout -----------------------------------
TAP version 14
# random seed: R02S89b2a748cf227378598cdc437f8acec1
1..19
# Start of clue_matches tests
ok 1 /clue_matches/test_simple_across_ipuz
ok 2 /clue_matches/test_simple_down_ipuz
ok 3 /clue_matches/test_valid_intersection_ipuz
ok 4 /clue_matches/test_invalid_intersection_ipuz
ok 5 /clue_matches/test_dense_ipuz
ok 6 /clue_matches/test_block_cells_ipuz
ok 7 /clue_matches/test_null_cells_ipuz
ok 8 /clue_matches/test_rebus_ipuz
# MESSAGE:
# MESSAGE: test_performance_empty runtime: 0.096857 seconds
# MESSAGE:
ok 9 /clue_matches/test_performance_empty
# MESSAGE:
# MESSAGE: test_american_empty runtime: 0.161251 seconds
# MESSAGE:
ok 10 /clue_matches/test_american_empty
# MESSAGE:
# MESSAGE: test_american_sparse runtime: 0.269902 seconds
# MESSAGE:
ok 11 /clue_matches/test_american_sparse
# MESSAGE:
# MESSAGE: test_american_half runtime: 0.088121 seconds
# MESSAGE:
ok 12 /clue_matches/test_american_half
# MESSAGE:
# MESSAGE: test_american_most runtime: 0.023250 seconds
# MESSAGE:
ok 13 /clue_matches/test_american_most
# MESSAGE:
# MESSAGE: test_american_full runtime: 0.001747 seconds
# MESSAGE:
ok 14 /clue_matches/test_american_full
# MESSAGE:
# MESSAGE: test_cryptic_empty runtime: 0.141168 seconds
# MESSAGE:
ok 15 /clue_matches/test_cryptic_empty
# MESSAGE:
# MESSAGE: test_cryptic_sparse runtime: 0.182835 seconds
# MESSAGE:
ok 16 /clue_matches/test_cryptic_sparse
# MESSAGE:
# MESSAGE: test_cryptic_half runtime: 0.025491 seconds
# MESSAGE:
ok 17 /clue_matches/test_cryptic_half
# MESSAGE:
# MESSAGE: test_cryptic_most runtime: 0.002300 seconds
# MESSAGE:
ok 18 /clue_matches/test_cryptic_most
# MESSAGE:
# MESSAGE: test_cryptic_full runtime: 0.001485 seconds
# MESSAGE:
ok 19 /clue_matches/test_cryptic_full
# End of clue_matches tests
# MESSAGE:
# MESSAGE: **************************************
# MESSAGE: * PERFORMANCE TESTS RESULTS *
# MESSAGE: * *
# MESSAGE: * Combined runtime: 0.994407 seconds *
# MESSAGE: * Average runtime: 0.090401 seconds *
# MESSAGE: **************************************
# MESSAGE:
==============================================================================