• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • Python性能分析指南(4)

    發表于:2013-11-12來源:開源中國社區作者:袁不語點擊數: 標簽:性能測試
    print ? 01 from timer import Timer 02 from redis import Redis 03 rdb = Redis() 04 05 with Timer() as t: 06 rdb.lpush( foo , bar ) 07 print = elasped lpush: %s s % t.secs 08 09 with Timer as t: 10 rdb.
    print?
    01 from timer import Timer
    02 from redis import Redis
    03 rdb = Redis()
    04  
    05 with Timer() as t:
    06     rdb.lpush("foo", "bar")
    07 print "=> elasped lpush: %s s" % t.secs
    08  
    09 with Timer as t:
    10     rdb.lpop("foo")

    原文轉自:http://www.oschina.net/translate/python-performance-analysis

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>