diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2013-06-03 12:37:15 -0400 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2013-06-03 12:37:15 -0400 |
commit | 2eef2140cb422406b68be05a913b88045ba34025 (patch) | |
tree | 3ba889969b21c5e287e8ba59e1e6e7ef3d597345 | |
parent | 37f53a378ddab1c67a54448bb87cb61b5e122a44 (diff) |
Updated NEWS.
-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()) |