Created
December 28, 2017 12:49
-
-
Save gnucifer/a86feeac08dac9bc1bb699f52b95f8b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use C4::Context; | |
use C4::Biblio; | |
use t::lib::Mocks; | |
my $biblionumber = <biblionumber_with_items_goes_here>; | |
# Warm up caches to get a more fair benchmark | |
GetMarcBiblio({biblionumber => $biblionumber, embed_items => 1}); | |
DB::enable_profile(); | |
t::lib::Mocks::mock_preference('item-level_itypes', '1'); | |
my $i = 200; | |
while($i--) { | |
GetMarcBiblio({biblionumber => $biblionumber, embed_items => 1}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment