Back to Scrapling

Performance Benchmarks

docs/benchmarks.md

0.4.111.2 KB
Original Source

Performance Benchmarks

Scrapling isn't just powerful - it's also blazing fast. The following benchmarks compare Scrapling's parser with the latest versions of other popular libraries.

Text Extraction Speed Test (5000 nested elements)

#LibraryTime (ms)vs Scrapling
1Scrapling1.981.0x
2Parsel/Scrapy1.991.005
3Raw Lxml2.481.253
4PyQuery23.15~12x
5Selectolax196.09~99x
6MechanicalSoup1531.24~773.4x
7BS4 with Lxml1535.19~775.3x
8BS4 with html5lib3388.16~1711.2x

Element Similarity & Text Search Performance

Scrapling's adaptive element finding capabilities significantly outperform alternatives:

LibraryTime (ms)vs Scrapling
Scrapling2.291.0x
AutoScraper12.465.441x

All benchmarks represent averages of 100+ runs. See benchmarks.py for methodology.