def start_service(addr, n):
s = Service(addr)<EOL>started = time.time()<EOL>for _ in range(n):<EOL><INDENT>msg = s.socket.recv()<EOL>s.socket.send(msg)<EOL><DEDENT>s.socket.close()<EOL>duration = time.time() - started<EOL>print('<STR_LIT>')<EOL>util.print_stats(n, duration)<EOL>return<EOL>
Start a service