DEV Community

Discussion on: Using Selenium with Rust

Collapse
 
gdledsan profile image
Edmundo Sanchez

Now I need ti learn rust.
One QQ though, do you have a oerformance comparison between thid and seleniummin ruby ir python?
Maybe java too?

Collapse
 
stevepryde profile image
Steve Pryde

I have not done any such performance comparison. Selenium is essentially done by just firing off a bunch of web requests to either selenium server or the WebDriver itself (you can use it with chromedriver directly, for example). I guess rust can probably issue more requests in less time than those other languages but the difference is going to be small I think. Especially if you add polling or waiting into the mix. Performance is also dependent on the website being navigated to some degree.

The advantage with rust would probably be in the correctness / safety guarantees it provides and also the lower CPU and memory overhead.

Collapse
 
gdledsan profile image
Edmundo Sanchez

That id whatI thought, the logic part should not be heavy on the code using selenium srver or webdriver anyway.
Thanks!