[html-formfu] Performance

Tobias Kremer list at funkreich.de
Mon Jun 25 20:46:01 GMT 2007


Am 25.06.2007 um 21:41 schrieb Tobias Kremer:

> I'm not sure if what my script is measuring is comparable, but if  
> it is, the results are devastating IMHO. Here's the source:

Err, that was a little bit too quick :) Let's try that again ...

use HTML::FormFu;
use HTML::Widget;
use Benchmark qw/:all/;

my $formfu = HTML::FormFu->new();
$formfu->element( { type => 'text', name => 'text', size => 30, label  
=> 'Text' } ) for( 1..20 );
timethis( 1000, sub { "$formfu" } );

my $widget = HTML::Widget->new();
$widget->element('Textfield')->name('text')->label('Text')->size(30)  
for( 1..20 );
timethis( 1000, sub { $widget->process } );

--Tobias




More information about the HTML-FormFu mailing list