-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathperf_check.pl
More file actions
38 lines (30 loc) · 725 Bytes
/
perf_check.pl
File metadata and controls
38 lines (30 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env perl
use strict;
use warnings;
use Benchmark qw/cmpthese timethese/;
use Koha::Biblios;
my $biblio = Koha::Biblios->find( 25 );
my $record = $biblio->metadata->record;
my @items = $biblio->items->as_list;
my $record_processor = Koha::RecordProcessor->new({
filters => ['EmbedItems'],
options => {
interface => 'opac',
items => \@items
}
});
cmpthese(
-10,
{
noPassMSS => sub {
$record_processor->process( $record, 0);
},
passMSS => sub {
$record_processor->process( $record, 1);
},
}
);
#for ( my $i = 0 ; $i < 250 ; $i++ ) {
# my $found = $hold->found;
# my $wait = $found && $found eq 'W';
#}