http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14778

--- Comment #6 from Jonathan Druart <jonathan.dru...@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.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to