def bench(client, n):
items = list(range(n))<EOL>started = time.time()<EOL>msg = b'<STR_LIT>'<EOL>for i in items:<EOL><INDENT>client.socket.send(msg)<EOL><DEDENT>duration = time.time() - started<EOL>print('<STR_LIT>')<EOL>util.print_stats(n, duration)<EOL>
Benchmark n requests