IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3014


Ignore:
Timestamp:
Jan 14, 2005, 4:40:55 PM (22 years ago)
Author:
jhoblitt
Message:

use timethese instead cmpthese

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/scripts/bench_test.pl

    r2785 r3014  
    55
    66use lib "./lib";
    7 use Benchmark qw( cmpthese );
    87
     8use Benchmark qw( timethese );
    99use PS::IPP::IData::Client;
    1010
     
    1313);
    1414
    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             }
     15my $key = shift || 'foobar';
    2316
     17timethese( -10,
     18    {
     19        'create/delete' => sub {
     20            my $fh = $idata->create( $key );
     21            close $fh;
    2422            $idata->delete( $key );
    2523        },
    26     },
    27     'all',
     24    }
    2825);
  • trunk/Nebulous/scripts/bench_test.pl

    r2785 r3014  
    55
    66use lib "./lib";
    7 use Benchmark qw( cmpthese );
    87
     8use Benchmark qw( timethese );
    99use PS::IPP::IData::Client;
    1010
     
    1313);
    1414
    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             }
     15my $key = shift || 'foobar';
    2316
     17timethese( -10,
     18    {
     19        'create/delete' => sub {
     20            my $fh = $idata->create( $key );
     21            close $fh;
    2422            $idata->delete( $key );
    2523        },
    26     },
    27     'all',
     24    }
    2825);
Note: See TracChangeset for help on using the changeset viewer.