这是一个创建于 2571 天前的主题,其中的信息可能已经有所发展或是发生改变。
测试语句如下:
In [13]: driver = webdriver.Chrome()
In [14]: %time driver.get('http://www.baidu.com')
CPU times: user 1.1 ms, sys: 1.07 ms, total: 2.17 ms
Wall time: 3.47 s
In [16]: firefox = webdriver.Firefox()
In [17]: %time firefox.get('http://www.baidu.com')
CPU times: user 1.08 ms, sys: 1.06 ms, total: 2.14 ms
Wall time: 637 ms
chrome 的 Wall time 远超过 firefox。这是什么原因啊?有什么优化的方法吗?