benchmark.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:watcher 作者: nosmokingbandit 项目源码 文件源码
def run_standard_benchmarks():
    print("")
    print("Client Thread Report (1000 requests, 14 byte response body, "
          "%s server threads):" % cherrypy.server.thread_pool)
    print_report(thread_report())

    print("")
    print("Client Thread Report (1000 requests, 14 bytes via staticdir, "
          "%s server threads):" % cherrypy.server.thread_pool)
    print_report(thread_report("%s/static/index.html" % SCRIPT_NAME))

    print("")
    print("Size Report (1000 requests, 50 client threads, "
          "%s server threads):" % cherrypy.server.thread_pool)
    print_report(size_report())


#                         modpython and other WSGI                         #
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号