template_benchmark.py 文件源码

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

项目:annotated-py-tornado 作者: hhstore 项目源码 文件源码
def main():
    parse_command_line()
    if options.dump:
        print tmpl.code
        sys.exit(0)
    t = Timer(render)
    results = t.timeit(options.num) / options.num
    print '%0.3f ms per iteration' % (results*1000)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号