From eb15aae444a0c2f383b00ec572be707366c2f27e Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Wed, 26 Nov 2025 02:50:01 +0200 Subject: [PATCH] docs: update benchmarks with the current results --- docs/README.md | 21 +++++++++++---------- docs/README_AR.md | 27 ++++++++++++++------------- docs/README_CN.md | 29 +++++++++++++++-------------- docs/README_DE.md | 27 ++++++++++++++------------- docs/README_ES.md | 29 +++++++++++++++-------------- docs/README_JP.md | 29 +++++++++++++++-------------- docs/README_RU.md | 27 ++++++++++++++------------- docs/benchmarks.md | 22 +++++++++++----------- 8 files changed, 109 insertions(+), 102 deletions(-) diff --git a/docs/README.md b/docs/README.md index d5b9a75..fa1f217 100644 --- a/docs/README.md +++ b/docs/README.md @@ -244,14 +244,15 @@ Scrapling isn't just powerful—it's also blazing fast, and the updates since ve | # | Library | Time (ms) | vs Scrapling | |---|:-----------------:|:---------:|:------------:| -| 1 | Scrapling | 1.92 | 1.0x | -| 2 | Parsel/Scrapy | 1.99 | 1.036x | -| 3 | Raw Lxml | 2.33 | 1.214x | -| 4 | PyQuery | 20.61 | ~11x | -| 5 | Selectolax | 80.65 | ~42x | -| 6 | BS4 with Lxml | 1283.21 | ~698x | -| 7 | MechanicalSoup | 1304.57 | ~679x | -| 8 | BS4 with html5lib | 3331.96 | ~1735x | +| 1 | Scrapling | 1.99 | 1.0x | +| 2 | Parsel/Scrapy | 2.01 | 1.01x | +| 3 | Raw Lxml | 2.5 | 1.256x | +| 4 | PyQuery | 22.93 | ~11.5x | +| 5 | Selectolax | 80.57 | ~40.5x | +| 6 | BS4 with Lxml | 1541.37 | ~774.6x | +| 7 | MechanicalSoup | 1547.35 | ~777.6x | +| 8 | BS4 with html5lib | 3410.58 | ~1713.9x | + ### Element Similarity & Text Search Performance @@ -259,8 +260,8 @@ Scrapling's adaptive element finding capabilities significantly outperform alter | Library | Time (ms) | vs Scrapling | |-------------|:---------:|:------------:| -| Scrapling | 1.87 | 1.0x | -| AutoScraper | 10.24 | 5.476x | +| Scrapling | 2.46 | 1.0x | +| AutoScraper | 13.3 | 5.407x | > All benchmarks represent averages of 100+ runs. See [benchmarks.py](https://github.com/D4Vinci/Scrapling/blob/main/benchmarks.py) for methodology. diff --git a/docs/README_AR.md b/docs/README_AR.md index b3d6416..eab7c2f 100644 --- a/docs/README_AR.md +++ b/docs/README_AR.md @@ -233,24 +233,25 @@ Scrapling ليس قوياً فقط - إنه أيضاً سريع بشكل مذه ### اختبار سرعة استخراج النص (5000 عنصر متداخل) | # | المكتبة | الوقت (ms) | vs Scrapling | -|---|:-----------------:|:---------:|:------------:| -| 1 | Scrapling | 1.92 | 1.0x | -| 2 | Parsel/Scrapy | 1.99 | 1.036x | -| 3 | Raw Lxml | 2.33 | 1.214x | -| 4 | PyQuery | 20.61 | ~11x | -| 5 | Selectolax | 80.65 | ~42x | -| 6 | BS4 with Lxml | 1283.21 | ~698x | -| 7 | MechanicalSoup | 1304.57 | ~679x | -| 8 | BS4 with html5lib | 3331.96 | ~1735x | +|---|:-----------------:|:----------:|:------------:| +| 1 | Scrapling | 1.99 | 1.0x | +| 2 | Parsel/Scrapy | 2.01 | 1.01x | +| 3 | Raw Lxml | 2.5 | 1.256x | +| 4 | PyQuery | 22.93 | ~11.5x | +| 5 | Selectolax | 80.57 | ~40.5x | +| 6 | BS4 with Lxml | 1541.37 | ~774.6x | +| 7 | MechanicalSoup | 1547.35 | ~777.6x | +| 8 | BS4 with html5lib | 3410.58 | ~1713.9x | + ### أداء تشابه العناصر والبحث النصي قدرات العثور على العناصر التكيفية لـ Scrapling تتفوق بشكل كبير على البدائل: -| المكتبة | الوقت (ms) | vs Scrapling | -|-------------|:---------:|:------------:| -| Scrapling | 1.87 | 1.0x | -| AutoScraper | 10.24 | 5.476x | +| المكتبة | الوقت (ms) | vs Scrapling | +|-------------|:----------:|:------------:| +| Scrapling | 2.46 | 1.0x | +| AutoScraper | 13.3 | 5.407x | > تمثل جميع المعايير متوسطات أكثر من 100 تشغيل. انظر [benchmarks.py](https://github.com/D4Vinci/Scrapling/blob/main/benchmarks.py) للمنهجية. diff --git a/docs/README_CN.md b/docs/README_CN.md index c013b0f..b06a0cf 100644 --- a/docs/README_CN.md +++ b/docs/README_CN.md @@ -232,25 +232,26 @@ Scrapling不仅功能强大——它还速度极快,自0.3版本以来的更 ### 文本提取速度测试(5000个嵌套元素) -| # | 库 | 时间(ms) | vs Scrapling | -|---|:--------------:|:--------:|:------------:| -| 1 | Scrapling | 1.92 | 1.0x | -| 2 | Parsel/Scrapy | 1.99 | 1.036x | -| 3 | Raw Lxml | 2.33 | 1.214x | -| 4 | PyQuery | 20.61 | ~11x | -| 5 | Selectolax | 80.65 | ~42x | -| 6 | BS4 with Lxml | 1283.21 | ~698x | -| 7 | MechanicalSoup | 1304.57 | ~679x | -| 8 |BS4 with html5lib| 3331.96 | ~1735x | +| # | 库 | 时间(ms) | vs Scrapling | +|---|:-----------------:|:-------:|:------------:| +| 1 | Scrapling | 1.99 | 1.0x | +| 2 | Parsel/Scrapy | 2.01 | 1.01x | +| 3 | Raw Lxml | 2.5 | 1.256x | +| 4 | PyQuery | 22.93 | ~11.5x | +| 5 | Selectolax | 80.57 | ~40.5x | +| 6 | BS4 with Lxml | 1541.37 | ~774.6x | +| 7 | MechanicalSoup | 1547.35 | ~777.6x | +| 8 | BS4 with html5lib | 3410.58 | ~1713.9x | + ### 元素相似性和文本搜索性能 Scrapling的自适应元素查找功能明显优于替代方案: -| 库 | 时间(ms) | vs Scrapling | -|-------------|:--------:|:------------:| -| Scrapling | 1.87 | 1.0x | -| AutoScraper | 10.24 | 5.476x | +| 库 | 时间(ms) | vs Scrapling | +|-------------|:------:|:------------:| +| Scrapling | 2.46 | 1.0x | +| AutoScraper | 13.3 | 5.407x | > 所有基准测试代表100+次运行的平均值。请参阅[benchmarks.py](https://github.com/D4Vinci/Scrapling/blob/main/benchmarks.py)了解方法。 diff --git a/docs/README_DE.md b/docs/README_DE.md index 6312d5f..0cfbc40 100644 --- a/docs/README_DE.md +++ b/docs/README_DE.md @@ -232,25 +232,26 @@ Scrapling ist nicht nur leistungsstark – es ist auch blitzschnell, und die Upd ### Textextraktions-Geschwindigkeitstest (5000 verschachtelte Elemente) -| # | Bibliothek | Zeit (ms) | vs Scrapling | -|---|:--------------------:|:---------:|:------------:| -| 1 | Scrapling | 1.92 | 1.0x | -| 2 | Parsel/Scrapy | 1.99 | 1.036x | -| 3 | Raw Lxml | 2.33 | 1.214x | -| 4 | PyQuery | 20.61 | ~11x | -| 5 | Selectolax | 80.65 | ~42x | -| 6 | BS4 mit Lxml | 1283.21 | ~698x | -| 7 | MechanicalSoup | 1304.57 | ~679x | -| 8 | BS4 mit html5lib | 3331.96 | ~1735x | +| # | Bibliothek | Zeit (ms) | vs Scrapling | +|---|:-----------------:|:---------:|:------------:| +| 1 | Scrapling | 1.99 | 1.0x | +| 2 | Parsel/Scrapy | 2.01 | 1.01x | +| 3 | Raw Lxml | 2.5 | 1.256x | +| 4 | PyQuery | 22.93 | ~11.5x | +| 5 | Selectolax | 80.57 | ~40.5x | +| 6 | BS4 with Lxml | 1541.37 | ~774.6x | +| 7 | MechanicalSoup | 1547.35 | ~777.6x | +| 8 | BS4 with html5lib | 3410.58 | ~1713.9x | + ### Element-Ähnlichkeit & Textsuche-Leistung Scraplings adaptive Element-Finding-Fähigkeiten übertreffen Alternativen deutlich: -| Bibliothek | Zeit (ms) | vs Scrapling | +| Bibliothek | Zeit (ms) | vs Scrapling | |-------------|:---------:|:------------:| -| Scrapling | 1.87 | 1.0x | -| AutoScraper | 10.24 | 5.476x | +| Scrapling | 2.46 | 1.0x | +| AutoScraper | 13.3 | 5.407x | > Alle Benchmarks stellen Durchschnittswerte von über 100 Durchläufen dar. Siehe [benchmarks.py](https://github.com/D4Vinci/Scrapling/blob/main/benchmarks.py) für die Methodik. diff --git a/docs/README_ES.md b/docs/README_ES.md index 9cca19f..1ed495d 100644 --- a/docs/README_ES.md +++ b/docs/README_ES.md @@ -232,25 +232,26 @@ Scrapling no solo es poderoso, también es increíblemente rápido, y las actual ### Prueba de Velocidad de Extracción de Texto (5000 elementos anidados) -| # | Biblioteca | Tiempo (ms) | vs Scrapling | -|---|:--------------------:|:-----------:|:------------:| -| 1 | Scrapling | 1.92 | 1.0x | -| 2 | Parsel/Scrapy | 1.99 | 1.036x | -| 3 | Raw Lxml | 2.33 | 1.214x | -| 4 | PyQuery | 20.61 | ~11x | -| 5 | Selectolax | 80.65 | ~42x | -| 6 | BS4 con Lxml | 1283.21 | ~698x | -| 7 | MechanicalSoup | 1304.57 | ~679x | -| 8 | BS4 con html5lib | 3331.96 | ~1735x | +| # | Biblioteca | Tiempo (ms) | vs Scrapling | +|---|:-----------------:|:-----------:|:------------:| +| 1 | Scrapling | 1.99 | 1.0x | +| 2 | Parsel/Scrapy | 2.01 | 1.01x | +| 3 | Raw Lxml | 2.5 | 1.256x | +| 4 | PyQuery | 22.93 | ~11.5x | +| 5 | Selectolax | 80.57 | ~40.5x | +| 6 | BS4 with Lxml | 1541.37 | ~774.6x | +| 7 | MechanicalSoup | 1547.35 | ~777.6x | +| 8 | BS4 with html5lib | 3410.58 | ~1713.9x | + ### Rendimiento de Similitud de Elementos y Búsqueda de Texto Las capacidades de búsqueda adaptativa de elementos de Scrapling superan significativamente a las alternativas: -| Biblioteca | Tiempo (ms) | vs Scrapling | -|--------------|:-----------:|:------------:| -| Scrapling | 1.87 | 1.0x | -| AutoScraper | 10.24 | 5.476x | +| Biblioteca | Tiempo (ms) | vs Scrapling | +|-------------|:-----------:|:------------:| +| Scrapling | 2.46 | 1.0x | +| AutoScraper | 13.3 | 5.407x | > Todos los benchmarks representan promedios de más de 100 ejecuciones. Ver [benchmarks.py](https://github.com/D4Vinci/Scrapling/blob/main/benchmarks.py) para la metodología. diff --git a/docs/README_JP.md b/docs/README_JP.md index 597c98f..826d63e 100644 --- a/docs/README_JP.md +++ b/docs/README_JP.md @@ -232,25 +232,26 @@ Scraplingは強力であるだけでなく、驚くほど高速で、バージ ### テキスト抽出速度テスト(5000個のネストされた要素) -| # | ライブラリ | 時間(ms) | vs Scrapling | -|---|:-------------------:|:--------:|:------------:| -| 1 | Scrapling | 1.92 | 1.0x | -| 2 | Parsel/Scrapy | 1.99 | 1.036x | -| 3 | Raw Lxml | 2.33 | 1.214x | -| 4 | PyQuery | 20.61 | ~11x | -| 5 | Selectolax | 80.65 | ~42x | -| 6 | BS4 with Lxml | 1283.21 | ~698x | -| 7 | MechanicalSoup | 1304.57 | ~679x | -| 8 | BS4 with html5lib | 3331.96 | ~1735x | +| # | ライブラリ | 時間(ms) | vs Scrapling | +|---|:-----------------:|:-------:|:------------:| +| 1 | Scrapling | 1.99 | 1.0x | +| 2 | Parsel/Scrapy | 2.01 | 1.01x | +| 3 | Raw Lxml | 2.5 | 1.256x | +| 4 | PyQuery | 22.93 | ~11.5x | +| 5 | Selectolax | 80.57 | ~40.5x | +| 6 | BS4 with Lxml | 1541.37 | ~774.6x | +| 7 | MechanicalSoup | 1547.35 | ~777.6x | +| 8 | BS4 with html5lib | 3410.58 | ~1713.9x | + ### 要素類似性とテキスト検索のパフォーマンス Scraplingの適応型要素検索機能は代替手段を大幅に上回ります: -| ライブラリ | 時間(ms) | vs Scrapling | -|-------------|:--------:|:------------:| -| Scrapling | 1.87 | 1.0x | -| AutoScraper | 10.24 | 5.476x | +| ライブラリ | 時間(ms) | vs Scrapling | +|-------------|:------:|:------------:| +| Scrapling | 2.46 | 1.0x | +| AutoScraper | 13.3 | 5.407x | > すべてのベンチマークは100回以上の実行の平均を表します。方法論については[benchmarks.py](https://github.com/D4Vinci/Scrapling/blob/main/benchmarks.py)を参照してください。 diff --git a/docs/README_RU.md b/docs/README_RU.md index bdcccb1..0d868ca 100644 --- a/docs/README_RU.md +++ b/docs/README_RU.md @@ -232,25 +232,26 @@ Scrapling не только мощный - он также невероятно ### Тест скорости извлечения текста (5000 вложенных элементов) -| # | Библиотека | Время (мс) | vs Scrapling | -|---|:--------------------:|:----------:|:------------:| -| 1 | Scrapling | 1.92 | 1.0x | -| 2 | Parsel/Scrapy | 1.99 | 1.036x | -| 3 | Raw Lxml | 2.33 | 1.214x | -| 4 | PyQuery | 20.61 | ~11x | -| 5 | Selectolax | 80.65 | ~42x | -| 6 | BS4 с Lxml | 1283.21 | ~698x | -| 7 | MechanicalSoup | 1304.57 | ~679x | -| 8 | BS4 с html5lib | 3331.96 | ~1735x | +| # | Библиотека | Время (мс) | vs Scrapling | +|---|:-----------------:|:----------:|:------------:| +| 1 | Scrapling | 1.99 | 1.0x | +| 2 | Parsel/Scrapy | 2.01 | 1.01x | +| 3 | Raw Lxml | 2.5 | 1.256x | +| 4 | PyQuery | 22.93 | ~11.5x | +| 5 | Selectolax | 80.57 | ~40.5x | +| 6 | BS4 with Lxml | 1541.37 | ~774.6x | +| 7 | MechanicalSoup | 1547.35 | ~777.6x | +| 8 | BS4 with html5lib | 3410.58 | ~1713.9x | + ### Производительность подобия элементов и текстового поиска Возможности адаптивного поиска элементов Scrapling значительно превосходят альтернативы: -| Библиотека | Время (мс) | vs Scrapling | +| Библиотека | Время (мс) | vs Scrapling | |-------------|:----------:|:------------:| -| Scrapling | 1.87 | 1.0x | -| AutoScraper | 10.24 | 5.476x | +| Scrapling | 2.46 | 1.0x | +| AutoScraper | 13.3 | 5.407x | > Все тесты производительности представляют собой средние значения более 100 запусков. См. [benchmarks.py](https://github.com/D4Vinci/Scrapling/blob/main/benchmarks.py) для методологии. diff --git a/docs/benchmarks.md b/docs/benchmarks.md index 4e207ad..37fc6b1 100644 --- a/docs/benchmarks.md +++ b/docs/benchmarks.md @@ -8,20 +8,20 @@ Scrapling isn't just powerful—it's also blazing fast, and the updates since ve | # | Library | Time (ms) | vs Scrapling | |---|:-----------------:|:---------:|:------------:| -| 1 | Scrapling | 1.92 | 1.0x | -| 2 | Parsel/Scrapy | 1.99 | 1.036x | -| 3 | Raw Lxml | 2.33 | 1.214x | -| 4 | PyQuery | 20.61 | ~11x | -| 5 | Selectolax | 80.65 | ~42x | -| 6 | BS4 with Lxml | 1283.21 | ~698x | -| 7 | MechanicalSoup | 1304.57 | ~679x | -| 8 | BS4 with html5lib | 3331.96 | ~1735x | +| 1 | Scrapling | 1.99 | 1.0x | +| 2 | Parsel/Scrapy | 2.01 | 1.01x | +| 3 | Raw Lxml | 2.5 | 1.256x | +| 4 | PyQuery | 22.93 | ~11.5x | +| 5 | Selectolax | 80.57 | ~40.5x | +| 6 | BS4 with Lxml | 1541.37 | ~774.6x | +| 7 | MechanicalSoup | 1547.35 | ~777.6x | +| 8 | BS4 with html5lib | 3410.58 | ~1713.9x | ### Element Similarity & Text Search Performance Scrapling's adaptive element finding capabilities significantly outperform alternatives: -| Library | Time (ms) | vs Scrapling | +| Library | Time (ms) | vs Scrapling | |-------------|:---------:|:------------:| -| Scrapling | 1.87 | 1.0x | -| AutoScraper | 10.24 | 5.476x | +| Scrapling | 2.46 | 1.0x | +| AutoScraper | 13.3 | 5.407x |