File: benchmark.pl

package info (click to toggle)
libapache-ssi-perl 2.09-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 272 kB
  • ctags: 36
  • sloc: perl: 1,829
file content (9 lines) | stat: -rw-r--r-- 230 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9

use lib "/home/ken/modules/Apache-SSI/blib/lib";
use Apache::SSI;
use Benchmark;

my $text = '<!--#perl sub="sub {$_[0]*2-$_[1]}" args=5,7 pass_request=no-->';
$p = new Apache::SSI($text);

timethis(10000, '$::p->get_output()');