Bug 17783: Test to print performance of get_effective_issuing_rule
authorLari Taskula <lari.taskula@jns.fi>
Thu, 15 Dec 2016 16:35:13 +0000 (18:35 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 23 Dec 2016 12:01:56 +0000 (12:01 +0000)
commit5b35c8e038a49a4e998656c60ba08e88dd982498
tree3f90af185e71517654c6c4d4f3f370b5a1760624
parentf708b2e8d1f52efbbca9728d1cd7262a6fc0722c
Bug 17783: Test to print performance of get_effective_issuing_rule

This test prints the amount of issuing rule matches per second for
1. worst case, when non-existent branchcode, categorycode and itemtype is
   being searched (currently 8 queries)
2. mid case (rule found on 4th query)
3. 2nd best case (rule found on 2nd query)
4. best case, when an issuing rule is defined for exactly those branchcode,
   categorycode and itemtype (currently 1 query)

To test:
1. Run t/db_dependent/Koha/IssuingRules.t
2. Write down the per-second amount to compare with next patch

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
t/db_dependent/Koha/IssuingRules.t