diff --git a/Makefile.am b/Makefile.am
index d0b5796..3a4f291 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -111,7 +111,10 @@ html-single:
test: check
check: $(src_tests) test-suite
-# performance tests
+# performance tests (order matters here)
+perf-html: perf.log.html
+perf.%.html: perf.%
+ sort "$<" | $(path_tools)/perf2html -F\| > "$@"
perf: perf.log
perf.%: FORCE
if HAS_NODE
diff --git a/tools/perf2html b/tools/perf2html
new file mode 100755
index 0000000..842bb72
--- /dev/null
+++ b/tools/perf2html
@@ -0,0 +1,97 @@
+#!/usr/bin/awk -f
+# Renders performance test output
+#
+# Copyright (C) 2014 Mike Gerwitz
+#
+# This file is part of GNU ease.js.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see
Description | " \ + "Iterations | " \ + "Seconds/iter | " \ + "Total (s) | " \ + "
---|---|---|---|
%s | ", styleout( i ) + } + printf "
Total running time: " runtime " seconds
" \ + "" \ + "" +}