diff options
-rw-r--r-- | NEWS.txt | 3 | ||||
-rw-r--r-- | bs4/diagnose.py | 4 |
2 files changed, 3 insertions, 4 deletions
@@ -20,7 +20,8 @@ a URL or the name of a file on disk (a common beginner mistake). * A number of optimizations improve the performance of the lxml tree - builder by about 33%, and the html.parser tree builder by about 20%. + builder by about 33%, the html.parser tree builder by about 20%, and + the html5lib tree builder by about 15%. = 4.2.1 (20130531) = diff --git a/bs4/diagnose.py b/bs4/diagnose.py index df72f65..4d0b00a 100644 --- a/bs4/diagnose.py +++ b/bs4/diagnose.py @@ -201,6 +201,4 @@ def profile(num_elements=100000, parser="lxml"): stats.print_stats('_html5lib|bs4', 50) if __name__ == '__main__': - #diagnose(sys.stdin.read()) - profile(100000, parser="lxml") - # benchmark_parsers() + diagnose(sys.stdin.read()) |