The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!perl

# Name: Regexp matching of /constant/
# Require: 4
# Desc:
#


require 'benchlib.pl';

$a = ("-" x 100) . "foo" . ("-" x 100);

&runtest(15, <<'ENDTEST');

   $a =~ /foo/;
   $a =~ /---/;
   $a =~ /bar/;

   $a =~ /foo/;
   $a =~ /---/;
   $a =~ /bar/;

ENDTEST