Selenium:PhantomJS比Firefox慢
我编写了Selenium测试,它通过我的ExtJS Twisted web应用程序点击,运行速度非常慢 有人能解释为什么PhantomJS在我的配置上运行得比Firefox慢很多吗?urllib2的方法recv有什么问题 探查器统计信息:Selenium:PhantomJS比Firefox慢,selenium,phantomjs,urllib2,Selenium,Phantomjs,Urllib2,我编写了Selenium测试,它通过我的ExtJS Twisted web应用程序点击,运行速度非常慢 有人能解释为什么PhantomJS在我的配置上运行得比Firefox慢很多吗?urllib2的方法recv有什么问题 探查器统计信息: 幻影 Ran 1 test in 137.150s ncalls tottime percall cumtime percall filename:lineno(function) 4485 124.000 0.028 124.000
- 幻影
Ran 1 test in 137.150s ncalls tottime percall cumtime percall filename:lineno(function) 4485 124.000 0.028 124.000 0.028 {method 'recv' of '_socket.socket' objects}
- 火狐
Ran 1 test in 36.660s ncalls tottime percall cumtime percall filename:lineno(function) 96910 23.061 0.000 23.061 0.000 {method 'recv' of '_socket.socket' objects}
- 77号运行web应用程序
- 第65次与PhantomJS一起运行
(原因:)Docker
- 第83次运行本地
或Firefox
,从第65次运行到第77次运行web应用程序PhantomJS
[tester@server ~]$ tracepath 192.168.200.65
1: 192.168.200.77 (192.168.200.77) 0.207ms pmtu 1500
1: 192.168.200.65 (192.168.200.65) 0.773ms reached
1: 192.168.200.65 (192.168.200.65) 0.351ms reached
Resume: pmtu 1500 hops 1 back 64
[tester@server ~]$ tracepath 192.168.200.83
1: 192.168.200.77 (192.168.200.77) 0.087ms pmtu 1500
1: 192.168.200.83 (192.168.200.83) 0.733ms reached
1: 192.168.200.83 (192.168.200.83) 0.654ms reached
Resume: pmtu 1500 hops 1 back 64