Commits

Robert Brewer  committed a12b220

server.thread_pool now defaults to 10.

  • Participants
  • Parent commits d05fe89

Comments (0)

Files changed (3)

File cherrypy/config.py

     'server.log_tracebacks': True,
     'server.log_file': '',
     'server.reverse_dns': False,
-    'server.thread_pool': 0,
+    'server.thread_pool': 10,
     'server.environment': "development",
     
     '/favicon.ico': {

File cherrypy/filters/xmlrpcfilter.py

 ##    cherrypy.root = Root()
 ##    cherrypy.config.update({'xmlrpc_filter.on': True,
 ##                            'socket_port': 9001,
-##                            'thread_pool':0,
+##                            'thread_pool':10,
 ##                            'socket_queue_size':10 })
 ##    if __name__=='__main__':
 ##        cherrypy.server.start()

File cherrypy/test/benchmark.py

 
 def run_standard_benchmarks():
     print
-    print "Thread Report (1000 requests, 14 byte response body):"
+    print ("Client Thread Report (1000 requests, 14 byte response body, "
+           "%s server threads):" % cherrypy.config.get('server.thread_pool'))
     print_report(thread_report())
     
     print
-    print "Thread Report (1000 requests, 14 bytes via static_filter):"
+    print ("Client Thread Report (1000 requests, 14 bytes via static_filter, "
+           "%s server threads):" % cherrypy.config.get('server.thread_pool'))
     print_report(thread_report("%s/static/index.html" % MOUNT_POINT))
     
     print
-    print "Size Report (1000 requests, 50 threads):"
+    print ("Size Report (1000 requests, 50 client threads, "
+           "%s server threads):" % cherrypy.config.get('server.thread_pool'))
     print_report(size_report())