Show
Ignore:
Timestamp:
10/07/08 15:48:46 (3 months ago)
Author:
bonnu
Message:

lang/perl/Method-Cached - derivation & syntax correct

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Method-Cached/trunk/t/benchmark.pl

    r20848 r20895  
    77use Method::Cached::Manager 
    88    -default => { 
    9         storage_class    => 'Cache::Memcached::Fast', 
    10         storage_args     => [ 
     9        storage_class => 'Cache::Memcached::Fast', 
     10        storage_args  => [ 
    1111            { servers    => [qw/ 127.0.0.1:11211 /] }, 
    1212        ], 
    13         key_regularizer  => 'SERIALIZE', # SERIALIZE / LIST 
     13        key_rule      => 'SERIALIZE', # SERIALIZE / LIST 
    1414    }, 
    1515    -domains => { 
    1616        'memcached-fast' => { 
    17             storage_class    => 'Cache::Memcached::Fast', 
    18             storage_args     => [ 
     17            storage_class => 'Cache::Memcached::Fast', 
     18            storage_args  => [ 
    1919                { servers    => [qw/ 127.0.0.1:11211 /] }, 
    2020            ], 
    21             key_regularizer  => 'SERIALIZE', # SERIALIZE / LIST 
     21            key_rule      => 'SERIALIZE', # SERIALIZE / LIST 
    2222        }, 
    2323        'fastmmap'       => { 
    24             storage_class    => 'Cache::FastMmap', 
    25             storage_args     => [ 
     24            storage_class => 'Cache::FastMmap', 
     25            storage_args  => [ 
    2626                share_file     => '/tmp/fastmmap.bin', 
    2727                unlink_on_exit => 0, 
    2828            ], 
    29             key_regularizer  => 'SERIALIZE', # SERIALIZE / LIST 
     29            key_rule      => 'SERIALIZE', # SERIALIZE / LIST 
    3030        }, 
    3131    }, 
     
    8383sub m_fib   { $m_fib   = $num; $m_fib   = Dummy::fib_memoize($m_fib)    } 
    8484 
    85 cmpthese(50000, { 
     85cmpthese(10000, { 
    8686    'fib'               => \&fib, 
    8787    'C(default)'        => \&def_fib,