~ubuntu-branches/ubuntu/vivid/python-gevent/vivid

« back to all changes in this revision

Viewing changes to greentest/bench_sendall.py

  • Committer: Bazaar Package Importer
  • Author(s): Örjan Persson
  • Date: 2011-05-17 16:43:20 UTC
  • mto: (14.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: james.westby@ubuntu.com-20110517164320-jyr5vamkqi3jfeab
Tags: upstream-0.13.6
Import upstream version 0.13.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    server = StreamServer(("127.0.0.1", 0), recvall)
14
14
    server.start()
15
15
 
16
 
    length = 50*0x100000
 
16
    length = 50 * 0x100000
17
17
    data = "x" * length
18
 
    
 
18
 
19
19
    spent_total = 0
20
20
    N = 10
21
21
 
31
31
    server.stop()
32
32
 
33
33
 
34
 
if __name__=="__main__":
 
34
if __name__ == "__main__":
35
35
    main()
36