ops: update benchmarks script
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ def test_scrapling():
|
||||
# No need to do `.extract()` like parsel to extract text
|
||||
# Also, this is faster than `[t.text for t in Selector(large_html, adaptive=False).css('.item')]`
|
||||
# for obvious reasons, of course.
|
||||
return ScraplingSelector(large_html, adaptive=False).css(".item::text")
|
||||
return ScraplingSelector(large_html, adaptive=False).css(".item::text").getall()
|
||||
|
||||
|
||||
@benchmark
|
||||
|
||||
Reference in New Issue
Block a user