diff options
author | Andrew Sidwell <andy@entai.co.uk> | 2008-07-31 15:11:12 +0000 |
---|---|---|
committer | Andrew Sidwell <andy@entai.co.uk> | 2008-07-31 15:11:12 +0000 |
commit | 923baf72744a3b91a82266e535fb45fa66d9cc19 (patch) | |
tree | 08684a67ab77966370aecca28e420854c4350396 /perf/html5libtest.py | |
parent | 41d22f924edf05a2356270f918580b720cc92e7a (diff) | |
download | libhubbub-923baf72744a3b91a82266e535fb45fa66d9cc19.tar.gz libhubbub-923baf72744a3b91a82266e535fb45fa66d9cc19.tar.bz2 |
Add my cobbled-together perftests.
svn path=/trunk/hubbub/; revision=4842
Diffstat (limited to 'perf/html5libtest.py')
-rwxr-xr-x | perf/html5libtest.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/perf/html5libtest.py b/perf/html5libtest.py new file mode 100755 index 0000000..3630fe8 --- /dev/null +++ b/perf/html5libtest.py @@ -0,0 +1,12 @@ +#!/usr/bin/python + +import sys +import html5lib + +if len(sys.argv) != 2: + print "Usage: %s <file>" % sys.argv[0] + sys.exit(1) + +f = open(sys.argv[1]) +parser = html5lib.HTMLParser() +document = parser.parse(f) |