Changeset cc8dfa


Ignore:
Timestamp:
03/05/08 19:15:13 (4 years ago)
Author:
Tomash Brechko <tomash.brechko@…>
Branches:
master, ketama-compat
Children:
a0b8bf
Parents:
bc8e86
git-author:
Tomash Brechko <tomash.brechko@…> (03/05/08 19:15:13)
git-committer:
Tomash Brechko <tomash.brechko@…> (03/05/08 19:15:13)
Message:

Add benchmark for latency issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • script/benchmark.pl

    rbc8e86 rcc8dfa  
    1818# small-range ACK packets are being sent, and this increases the 
    1919# latency.  Because of this '*_multi (%h)', which comes first, has 
    20 # bigger wallclock time than '*_multi (%h)', which comes next.  I 
     20# bigger wallclock time than '*_multi (@h)', which comes next.  I 
    2121# tried pre-warming the connection, but this doesn't help in all 
    2222# cases.  Seems like 'noreply' mode is also affected, and maybe 
     
    297297    &$sub(@$args); 
    298298} 
     299 
     300 
     301# Benchmark latency issues. 
     302if ($noreply) { 
     303    cmpthese(timethese($count, { 
     304        "set noreply followed by get" 
     305            => sub { 
     306                $new_noreply->set('snfbg', $value); 
     307                my $res = $new_noreply->get('snfbg'); 
     308            } 
     309    })); 
     310} 
Note: See TracChangeset for help on using the changeset viewer.