0

I'd like to know if using a headless browser, (such as phantomJS) with RSelenium significanly faster than running scripts with a regular browser (such as chrome)? Also driving it directly or using a selenium server ?

Is there a short function to check/plot difference in speeds?

Oren Bochman
  • 1,173
  • 3
  • 16
  • 37
  • Run the benchmark yourself. – Artjom B. Aug 10 '15 at 06:43
  • Any idea how, the RSelenium package has a scant documentation on benchmarking. – Oren Bochman Aug 10 '15 at 08:50
  • Use the tools that R gives you to measure time. – Artjom B. Aug 10 '15 at 08:51
  • In PhantomJS you can implement resource listeners. Basically, you start timer when you open your url, and you wait for the last resource to load, and stop the timer. The problems are with AJAX requests, then you have to listen for specific `div` to load etc. – MrD Aug 11 '15 at 11:16

0 Answers0