Changeset 3014
- Timestamp:
- Jan 14, 2005, 4:40:55 PM (22 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
Nebulous-Server/scripts/bench_test.pl (modified) (2 diffs)
-
Nebulous/scripts/bench_test.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/scripts/bench_test.pl
r2785 r3014 5 5 6 6 use lib "./lib"; 7 use Benchmark qw( cmpthese );8 7 8 use Benchmark qw( timethese ); 9 9 use PS::IPP::IData::Client; 10 10 … … 13 13 ); 14 14 15 my $key = "foobarbazbongbungbutufu"; 16 cmpthese( 10, { 17 'Image Server' => sub { 18 { 19 my $fh = $idata->create( $key ); 20 close $fh; 21 $idata->unlock( $key, 'write' ); 22 } 15 my $key = shift || 'foobar'; 23 16 17 timethese( -10, 18 { 19 'create/delete' => sub { 20 my $fh = $idata->create( $key ); 21 close $fh; 24 22 $idata->delete( $key ); 25 23 }, 26 }, 27 'all', 24 } 28 25 ); -
trunk/Nebulous/scripts/bench_test.pl
r2785 r3014 5 5 6 6 use lib "./lib"; 7 use Benchmark qw( cmpthese );8 7 8 use Benchmark qw( timethese ); 9 9 use PS::IPP::IData::Client; 10 10 … … 13 13 ); 14 14 15 my $key = "foobarbazbongbungbutufu"; 16 cmpthese( 10, { 17 'Image Server' => sub { 18 { 19 my $fh = $idata->create( $key ); 20 close $fh; 21 $idata->unlock( $key, 'write' ); 22 } 15 my $key = shift || 'foobar'; 23 16 17 timethese( -10, 18 { 19 'create/delete' => sub { 20 my $fh = $idata->create( $key ); 21 close $fh; 24 22 $idata->delete( $key ); 25 23 }, 26 }, 27 'all', 24 } 28 25 );
Note:
See TracChangeset
for help on using the changeset viewer.
