summaryrefslogtreecommitdiff
path: root/perf/html5libtest.py
diff options
context:
space:
mode:
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)