PhantomJS is very slow on Mac OS X
I am trying to use PhantomJS, I really like it but it is very slow ...
Simple code to open http://www.google.com and exit takes 47347ms which is very slow.
If I try to run with "sudo" it takes 1282 which is 40% faster, why is this happening? I am using phantom 1.8.1, Mac OS X 10.7.5.
+3
source to share
1 answer
Not sure about the sudo part, but maybe it works:
https://github.com/segmentio/nightmare/issues/126#issuecomment-75944613
This is a socket connection between the phantomjs module and its dependency, shoes.
You can manually edit the shoes yourself. Go to node_modules / phantom / shoe / index.js and change line 8 to read
var server = sockjs.createServer({ heartbeat_delay : 200 });
0
source to share