From 923baf72744a3b91a82266e535fb45fa66d9cc19 Mon Sep 17 00:00:00 2001 From: Andrew Sidwell Date: Thu, 31 Jul 2008 15:11:12 +0000 Subject: Add my cobbled-together perftests. svn path=/trunk/hubbub/; revision=4842 --- perf/html5libtest.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 perf/html5libtest.py (limited to 'perf/html5libtest.py') 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 " % sys.argv[0] + sys.exit(1) + +f = open(sys.argv[1]) +parser = html5lib.HTMLParser() +document = parser.parse(f) -- cgit v1.2.3