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

2016-06-08 17:45:42 +08:00
 coolair
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
844 次点击
所在节点    问与答
1 条回复
mengzhuo
2016-06-08 19:37:00 +08:00
import time
start = time.time()
// .....
print time.time() - start

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/284436

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX