use warnings ;
use Template::Simple ;
-use Benchmark qw( timethese ) ;
+use Benchmark qw( timethese cmpthese ) ;
use Data::Dumper ;
-my @dims = @ARGV ? @ARGV : ( 3, 6 ) ;
+my @dims = @ARGV ? (shift, shift) : ( 3, 5) ;
my $data = generate_data( @dims ) ;
#print Dumper $data ;
# print $$joined ;
#print $$comp_rendered ;
-timethese( shift || -2,
+cmpthese( shift || -2,
{
render => sub { my $x = $tmpl->render( 'bench', $data ) },
joined => sub { my $x = joined( $data ) },