- 论坛徽章:
- 0
|
- use Benchmark;
- use Data::Dumper;
- my $t0 = new Benchmark;
- my $threads;
- for (my $i=1;$i<=1000;$i++)
- {
- $threads = $threads." ('$i', '2', '0', '0', '0', '0', 'admin', '1', 'testestestes', '1234342389', '1234342389', 'admin', '2', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');";
- }
- print $threads;
- my $t1 = new Benchmark;
- my $td = timediff($t1, $t0);
- print "the code took:",timestr($td),"\n";
复制代码
- the code took: 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)
复制代码
不是这的问题吧
才1000次Benchmark都测不出来 |
|