Leser: 1
9 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl
use Time::HiRes qw(gettimeofday tv_interval);
my $t = [gettimeofday];
for( 0 .. 1000000 )
{
$str = "Im a TEST: 1, 2, 5;";
$str =~ s/\W+//g;
}
print "Content-type: text/html\n\n";
print "Time passed: ", tv_interval($t);
1
2
3
4
5
6
7
8
9
my $start = (times)[0];
for( 0 .. 1000000 )
{
$str = "Im a TEST: 1, 2, 5;";
$str =~ s/\W+//g;
}
my $result = (times)[0]-$start;
print "Content-type: text/html\n\n";
print "Time passed: $result";
9 Einträge, 1 Seite |