Changeset 1726
- Timestamp:
- 09/27/07 14:14:12
- Files:
-
- trunk/cherrypy/test/benchmark.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/test/benchmark.py
r1627 r1726 81 81 'log.error.file': '', 82 82 'environment': 'production', 83 'server.socket_host': ' localhost',83 'server.socket_host': '127.0.0.1', 84 84 'server.socket_port': 8080, 85 85 'server.max_request_header_size': 0, … … 138 138 Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/ 139 139 140 Benchmarking localhost(be patient)140 Benchmarking 127.0.0.1 (be patient) 141 141 Completed 100 requests 142 142 Completed 200 requests … … 151 151 152 152 Server Software: CherryPy/3.1alpha 153 Server Hostname: localhost153 Server Hostname: 127.0.0.1 154 154 Server Port: 8080 155 155 … … 210 210 assert self.concurrency > 0 211 211 assert self.requests > 0 212 return ("-k -n %s -c %s http:// localhost:%s%s" %212 return ("-k -n %s -c %s http://127.0.0.1:%s%s" % 213 213 (self.requests, self.concurrency, port, self.path)) 214 214 … … 366 366 def run(): 367 367 port = cherrypy.server.socket_port 368 print ("You may now open http:// localhost:%s%s/" %368 print ("You may now open http://127.0.0.1:%s%s/" % 369 369 (port, SCRIPT_NAME)) 370 370

