summaryrefslogtreecommitdiff
path: root/perf/html5libtest.py
diff options
context:
space:
mode:
authorAndrew Sidwell <andy@entai.co.uk>2008-07-31 15:11:12 +0000
committerAndrew Sidwell <andy@entai.co.uk>2008-07-31 15:11:12 +0000
commit923baf72744a3b91a82266e535fb45fa66d9cc19 (patch)
tree08684a67ab77966370aecca28e420854c4350396 /perf/html5libtest.py
parent41d22f924edf05a2356270f918580b720cc92e7a (diff)
downloadlibhubbub-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-xperf/html5libtest.py12
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)