[Koha-bugs] [Bug 14778] Get rid of DBIx::Connector
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Sep 4 12:54:23 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14778
--- Comment #6 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
MariaDB [koha]> delete from aqbooksellers;
% more benchmark_bookseller.pl
#!/usr/bin/perl
use Modern::Perl;
use C4::Bookseller;
use Koha::Acquisition::Bookseller;
for my $i ( 1 .. 1000 ) {
C4::Bookseller::AddBookseller({
name => "name$i",
});
}
my $booksellers = Koha::Acquisition::Bookseller->search;
Koha::Acquisition::Bookseller->search;
% git checkout master
% time perl benchmark_bookseller.pl
perl benchmark_bookseller.pl 4.89s user 0.14s system 8% cpu 1:00.42 total
MariaDB [koha]> delete from aqbooksellers;
% git checkout bug_14778
% time perl benchmark_bookseller.plt
perl benchmark_bookseller.pl 5.02s user 0.17s system 8% cpu 1:00.64 total
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list