catchpoint/WebPageTest.api-nodejs

Is it possible to do page speed testing for multiple urls?

gauravgandhi15 opened this issue · 1 comments

Is it possible to do page speed testing for multiple urls?

Yes, webpagetest runs are asynchronous, therefore you can:

  • use the convenient batch command via command line,
  • loop thorugh a list of urls in node: ['http://a.com', 'http://b.com'].forEach(wpt.runTest) or
  • loop in bash: for url in `cat urls.txt`; do webpagetest test $url; done