Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CachingDriverFactory.ThreadLocalCache performance #421

schillingr opened this issue Feb 17, 2016 · 1 comment

CachingDriverFactory.ThreadLocalCache performance #421

schillingr opened this issue Feb 17, 2016 · 1 comment


Copy link

When running UI tests in a thread (thread per Specification), the synchronized nature of ThreadLocalCache impacts performance dramatically. Since ThreadLocalCache uses a ThreadLocal as a backing store it is already thread-safe and the synchronized get() shouldn't be necessary.

In local testing it saved ~7 minutes of runtime @ 50 threads (1 grid node per thread), which equated to about a 30% speed improvement.

@erdi erdi added this to the 0.13.1 milestone Feb 20, 2016
@erdi erdi self-assigned this Feb 20, 2016
Copy link

erdi commented Feb 20, 2016

Thanks for reporting @schillingr. You are right, synchronizing these methods was totally unnecessary. The fix will be part of 0.13.1 which will be released imminently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants