I am running Selenium tests on the Chrome browser in SauceLabs and find the performance exceptionally slow.
Specifically, javascript queries (used to select objects) return in about 200ms in Sauce whereas the same queries return in about 5ms when running the test on my local machine. This 40x difference leads to total run-times that are about 5x longer in Sauce than if run local.
The code in question is basically:
return (List) driver.executeScript("return jQuery.find('.some_selector')");
Is there a known explanation for the slow response times?
Is there something I can change to speed up the javascript queries in Sauce?