[cairo-commit] 2 commits - perf/make-html.py

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Mar 26 09:54:15 UTC 2023


 perf/make-html.py |   88 ------------------------------------------------------
 1 file changed, 88 deletions(-)

New commits:
commit d2b44eccb7d72fd8a2c0c511682ea3cc7f572179
Merge: ae60e48ac c6bd76899
Author: Uli Schlachter <psychon at znc.in>
Date:   Sun Mar 26 09:54:13 2023 +0000

    Merge branch 'patch-1' into 'master'
    
    Delete cairo/perf/make-html.py
    
    See merge request cairo/cairo!448

commit c6bd76899457ff9acb19a3ce823bf98b33356356
Author: Christian Clauss <cclauss at me.com>
Date:   Sun Feb 5 17:42:08 2023 +0000

    Delete cairo/perf/make-html.py
    
    This file has not been updated in 13 years and does not correspond to
    the current implementation of cairo perf.  The code is in Python 2 and
    will generate syntax errors on current versions of Python.
    
    See !7 and !357

diff --git a/perf/make-html.py b/perf/make-html.py
deleted file mode 100755
index 0b4533581..000000000
--- a/perf/make-html.py
+++ /dev/null
@@ -1,88 +0,0 @@
-#!/usr/bin/python
-
-from string import strip
-from sys import stdin
-
-targets = {}
-smilies = {'slowdown': '☹' , 'speedup': '☺'}
-
-for line in stdin:
-	line = map(strip, filter(None, line.split(' ')))
-
-	if 9 == len(line):
-		target, name = line[0:2]
-		factor, dir = line[-2:]
-
-		name = name.split('-')
-		name, size = '-'.join(name[:-1]), name[-1]
-
-		target_tests = targets.get(target, {})
-		name_tests = target_tests.get(name, {})
-
-		name_tests[int(size)] = (factor, dir)
-		target_tests[name] = name_tests
-		targets[target] = target_tests
-
-print '''\
-<html><head>
-<title>Performance Changes</title>
-<style type="text/css">/*<![CDATA[*/
-    body { background: white; color: black; }
-    table { border-collapse: collapse; }
-
-    th, td { border: 1px solid silver; padding: 0.2em; }
-    td { text-align: center; }
-    th:first-child { text-align: left; }
-    th { background: #eee; }
-
- /* those colors also should work for color blinds */
-    td.slowdown { background: #f93; }
-    td.speedup { background: #6f9; }
-/*]]>*/</style>
-</head><body>
-<h1>Performance Changes</h1>'''
-
-targets = targets.items()
-targets.sort(lambda a, b: cmp(a[0], b[0]))
-
-for target, names in targets:
-	sizes = {}
-
-	for tests in names.values():
-		for size in tests.keys():
-			sizes[size] = True	
-
-	sizes = sizes.keys()
-	sizes.sort()
-
-	names = names.items()
-	names.sort(lambda a, b: cmp(a[0], b[0]))
-
-	print '<h2><a name="%s">%s</a></h2>' % (target, target)
-	print '<table><thead><tr><th> </th>'
-
-	for size in sizes:
-		print '<th>%s</th>' % size
-
-	print '</tr></thead><tbody>'
-
-	for name, tests in names:
-		print '<tr><th>%s</th>' % name
-		
-		for size in sizes:
-			result = tests.get(size)
-
-			if result:
-				factor, dir = result
-				print '<td class="%s">%s %s</td>' % (
-					dir, factor, smilies[dir])
-
-			else:
-				print '<td> </td>'
-
-		print '</tr>'
-
-
-	print '</tbody></table>'
-
-print '</body></html>'


More information about the cairo-commit mailing list