GuOrg / Gu.Wpf.UiAutomation

MIT License
96 stars 17 forks source link

Will caching of conditions work? #34

Closed JohanLarsson closed 7 years ago

JohanLarsson commented 7 years ago

Optimization. Also static UiAutomation? Risky perhaps.

JohanLarsson commented 7 years ago

https://github.com/JohanLarsson/Gu.Wpf.UiAutomation/tree/caching

With caching FindCheckBox(100):

Launch:       83 ms
MainWindow:   209 ms (293)
FindCheckBox: 704 ms  (997)

No caching FindCheckBox(100):

Launch:       127 ms
MainWindow:   323 ms (451)
FindCheckBox: 1048 ms  (1499)