[html-formfu] Performance

Carl Franks fireartist at gmail.com
Tue Jun 26 10:02:22 GMT 2007


Tobias,

On 25/06/07, Tobias Kremer <list at funkreich.de> wrote:
> Am 25.06.2007 um 21:46 schrieb Tobias Kremer:
> > my $widget = HTML::Widget->new();
> > $widget->element('Textfield')->name('text')->label('Text')->size
> > (30) for( 1..20 );
> > timethis( 1000, sub { $widget->process } );
>
> Hmmm ... I suppose that last line should be:
>
> timethis( 1000, sub { $widget->process->as_xml(); } );
>
> but nevertheless:
>
> (widget) timethis 1000:  7 wallclock secs ( 7.26 usr +  0.35 sys =
> 7.61 CPU) @ 131.41/s (n=1000)
> (formfu) timethis 1000: 63 wallclock secs (59.00 usr +  2.99 sys =
> 61.99 CPU) @ 16.13/s (n=1000)

Thanks for these figures, I'm setting some time aside today to look into this.
First step will be to create some benchmarking scripts that can be
kept in the repository, and then start profiling.

Cheers,
Carl



More information about the HTML-FormFu mailing list