예제 #1
0
파일: perf1.py 프로젝트: stephica/zwsgi
def main():
    sock = client()
    while True:
        start = time.time()
        run(sock)
        end = time.time()
        print end - start
예제 #2
0
def main():
    global n

    Thread(target=monitor).start()
    sock = client()
    while True:
        run(sock)
        n += 1
예제 #3
0
파일: perf2.py 프로젝트: 0xe/zwsgi
def main():
    global n

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