<s> import time <EOL> import numpy as np <EOL> from amqp_map . config import SERVICE_HOST <EOL> from amqp_map . core import connect , Mapper <EOL> server = connect ( SERVICE_HOST ) <EOL> square = Mapper ( server , "<STR_LIT>" ) <EOL> t0 = time . time ( ) <EOL> n = <NUM_LIT> <EOL> print "<STR_LIT>" , n <EOL> [ x * x for x in xrange ( n ) ] <EOL> print "<STR_LIT>" , <NUM_LIT:1000> * ( time . time ( ) - t0 ) / n , "<STR_LIT>" <EOL> t0 = time . time ( ) <EOL> n = <NUM_LIT:100> <EOL> print "<STR_LIT>" , n <EOL> square ( [ x * np . ones ( <NUM_LIT:3> ) for x in xrange ( n ) ] ) <EOL> print "<STR_LIT>" , <NUM_LIT:1000> * ( time . time ( ) - t0 ) / n , "<STR_LIT>" </s>
