from Hacker News

Show HN: Which is faster? Puppeteer, Playwright or Selenium

by eneuman on 9/9/23, 11:24 AM with 4 comments

Hey Everyone, I just ran a [rather silly] race between Puppeteer (JS), Playwright (Python) and Selenium (Python) to see which one would be fastest on a simple scrape (using Google Colab so you can also run it)

Far from a comprehensive benchmark, this race is 100% free from advanced configurations, multi-threading or anything complicated. It just opens Wallapop (a second hand marketplace in Spain) and times how long it takes to extract the first 2000 results of a search.

If you like this simple format, have any ideas on how to improve a race like this or have a strong urge to prove Ward Cunningham wright, let me know in the comments!

  • by CharlieDigital on 9/9/23, 1:36 PM

        > Puppeteer (JS), Playwright (Python) and Selenium (Python)
    
    Lots of questionable design choices here.

        - Why not all JS or all Python?
        - Why is the Playwright code scrolling?
        - Why is the Playwright code using explicit timeouts?
        - Why is the Playwright code using `evaluate` rather than `locators` and `click`?
  • by jawerty on 9/9/23, 4:33 PM

    Man I love puppeteer