<s> import os <EOL> import time <EOL> import perf <EOL> import zopkio . runtime as runtime <EOL> import zopkio . test_utils as testutilities <EOL> def create_sample ( n ) : <EOL> sample_list = [ ] <EOL> for i in xrange ( <NUM_LIT:1> , n + <NUM_LIT:1> ) : <EOL> sample_list . append ( i ) <EOL> return sample_list <EOL> SMALL_SAMPLE = create_sample ( <NUM_LIT:3> ) <EOL> MEDIUM_SAMPLE = create_sample ( <NUM_LIT:100> ) <EOL> LARGE_SAMPLE = create_sample ( <NUM_LIT:1000> ) <EOL> test_phase = <NUM_LIT:3> <EOL> def test_single_client_perf ( ) : <EOL> """<STR_LIT>""" <EOL> print "<STR_LIT>" <EOL> client_deployer = runtime . get_deployer ( "<STR_LIT>" ) <EOL> client_deployer . start ( "<STR_LIT>" , configs = { "<STR_LIT:args>" : "<STR_LIT>" . split ( ) + MEDIUM_SAMPLE , "<STR_LIT>" : True } ) <EOL> def validate_single_client_perf ( ) : <EOL> """<STR_LIT>""" <EOL> print "<STR_LIT>" <EOL> metrics = runtime . get_active_test_metrics ( "<STR_LIT>" ) <EOL> assert metrics [ "<STR_LIT>" ] [ "<STR_LIT>" ] [ "<STR_LIT>" ] > <NUM_LIT:100> , "<STR_LIT>" <EOL> assert metrics [ "<STR_LIT>" ] [ "<STR_LIT>" ] [ "<STR_LIT>" ] < <NUM_LIT> , "<STR_LIT>" </s>
