V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
coolair
V2EX  ›  问与答

有人知道 Python 的这种时间测试是用的什么工具么?

  •  
  •   coolair · 2016-06-08 17:45:42 +08:00 · 797 次点击
    这是一个创建于 2893 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Here are all the details:
    My excel file:
    9 sheets, 111 columns 8788 rows each.
    Actually most of the cells are blank (let's say whe have about 3000
    cells filled)
    Anyway the workbook will be progressively filled, up to 2millions
    cells filled.

    I am running my script on windows Vista Home and on Sun Solaris 5.9

    times (Vista Home)
    xlutils.copy() (on_demand = True) : 42.940000 seconds
    xlutils.copy() (on_demand = False) : 39.146000 seconds

    times (Solaris 5.9)
    xlutils.copy() (on_demand = True) : 02 mins 42.486900 seconds
    xlutils.copy() (on_demand = False) : 02 mins 29.924702 seconds


    versions (both vista and solaris):
    Python 2.5.4
    xlutils 1.3.2
    xlrd: 0.7.1
    xlwt 0.7.2

    cheers
    Mauro
    1 条回复    2016-06-08 19:37:00 +08:00
    mengzhuo
        1
    mengzhuo  
       2016-06-08 19:37:00 +08:00 via iPhone
    import time
    start = time.time()
    // .....
    print time.time() - start
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1247 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 18:12 · PVG 02:12 · LAX 11:12 · JFK 14:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.