File: new.pl

package info (click to toggle)
libhtml-template-perl 2.97-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 740 kB
  • sloc: perl: 2,572; makefile: 8
file content (15 lines) | stat: -rwxr-xr-x 338 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env perl
use strict;
use warnings;
use Benchmark 'timethese';
use lib '../lib';
use HTML::Template;

timethese(
    1_000,
    {
        small_template => sub { HTML::Template->new(filename => 'templates/default.tmpl') },
        big_template   => sub { HTML::Template->new(filename => 'templates/long_loops.tmpl') }
    }
);