Performance Comparison: Selenium Ruby, Python, and JavaScript (Node.js)

Zhimin Zhan
3 min readApr 9, 2021

Selenium WebDriver comes with 5 official programming languages: Ruby, Java, Python, JavaScript and C#. My Selenium WebDriver Recipes books cover all five languages.

When there are choices, comparisons follow. Which Selenium language binding is fastest? First of all, based on the Selenium WebDriver architecture, the difference will be small. The majority of test execution time resides on the driver (native) driving the browser (on the right side).

Image credit: https://www.yiibai.com/selenium/selenium-webdriver-architecture.html

Still, there will be differences. For my benchmark tests, I selected 81 simple tests (from my recipe books) such as clicking a radio button by name or ID and assert page text. The test scripts are written in the same way for all languages. I excluded Java and C# here because I seldom use them for automated testing (I professionally coded 10+ years in Java and 3 years in C#), simply because they are not scripting languages.

--

--

Zhimin Zhan
Zhimin Zhan

Written by Zhimin Zhan

Test automation & CT coach, author, speaker and award-winning software developer. Help teams succeed with Agile/DevOps by implementing real Continuous Testing.

No responses yet