[html-formfu] Performance

Tobias Kremer list at funkreich.de
Mon Jun 25 21:10:13 GMT 2007


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)

--Tobias






More information about the HTML-FormFu mailing list