Exemplo n.º 1
0
def main():
    sock = client()
    while True:
        start = time.time()
        run(sock)
        end = time.time()
        print end - start
Exemplo n.º 2
0
def main():
    global n

    Thread(target=monitor).start()
    sock = client()
    while True:
        run(sock)
        n += 1
Exemplo n.º 3
0
Arquivo: perf2.py Projeto: 0xe/zwsgi
def main():
    global n

    Thread(target=monitor).start()
    sock = client()
    while True:
        run(sock)
        n += 1