[reportlab-users] performance test

Robin Becker robin at reportlab.com
Tue Aug 1 15:12:09 EDT 2017


I'm surpised no swapping started :(

On 1 August 2017 at 19:36, Tim Roberts <timr at probo.com> wrote:

> Johannes Eckstein wrote:
> >
> > I recently ran a performance test on reportlab 3.4.0 py36 and found an
> > unexpected behavior:
> >
> > somewhere in between 500 to 600 iterations, which is equivalent to at
> > most 2055 to 2465 pages of pdf output, the time spent per cycle
> increases:
> >
> > 10 in 0.67 seconds; per ch_pair:= 0,067
> > 100 in 2.964 seconds; per ch_pair:= 0,029
> > 200 in 7.801 seconds; per ch_pair:= 0,039
> > 400 in 27.064 seconds; per ch_pair:= 0,06016
> > 500 in 44.385 seconds; per ch_pair:= 0,0887
> > 600 in 63.645 seconds; per ch_pair:= 0,1
> > 800 in 120.183 seconds; per ch_pair:= 0,15
> > 1000 in 200.063 seconds; per ch_pair:= 0,2
> >
> > why is the cycle time increasing, shouldn't this be linear?
>
> I can't say I'm surprised, especially when you add a table of contents.
> Building a table of contents is essentially a quadratic process; every
> change to the table of contents means you have to reprocess the rest of
> components to update links and page numbers.
>
> --
> Tim Roberts, timr at probo.com
> Providenza & Boekelheide, Inc.
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at lists2.reportlab.com
> https://pairlist2.pair.net/mailman/listinfo/reportlab-users
>



-- 
Robin Becker
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/reportlab-users/attachments/20170801/167fea2b/attachment-0001.html>


More information about the reportlab-users mailing list