def start_service(addr, n, authenticator):
s = Service(addr, authenticator=authenticator)<EOL>s.register('<STR_LIT>', lambda x, y: x + y)<EOL>started = time.time()<EOL>for _ in range(n):<EOL><INDENT>s.process()<EOL><DEDENT>duration = time.time() - started<EOL>time.sleep(<NUM_LIT:0.1>)<EOL>print('<STR_LIT>')<EOL>util.print_stats(n, duration)<EOL>return<EOL>
Start a service