mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-09 02:48:04 +02:00
green coloring fixed
This commit is contained in:
parent
d9cc4478a2
commit
7c7322fb5e
1 changed files with 2 additions and 2 deletions
|
|
@ -57,9 +57,9 @@ with open(benchmark_file, 'w') as f:
|
|||
|
||||
# Write the test result to the HTML file
|
||||
if baseline_value > benchmark_value:
|
||||
f.write(f'<tr><td>{baseline_match.group(1)}</td><td style="background-color: green;">{baseline_match.group(3)}</td><td>{benchmark_match.group(3)}</td></tr>\n')
|
||||
f.write(f'<tr><td>{baseline_match.group(1)}</td><td>{baseline_match.group(3)} µs/op</td><td style="background-color: green;">{benchmark_match.group(3)} µs/op</td></tr>\n')
|
||||
else:
|
||||
f.write(f'<tr><td>{baseline_match.group(1)}</td><td>{baseline_match.group(3)}</td><td style="background-color: green;">{benchmark_match.group(3)}</td></tr>\n')
|
||||
f.write(f'<tr><td>{baseline_match.group(1)}</td><td style="background-color: green;">{baseline_match.group(3)} µs/op</td><td>{benchmark_match.group(3)} µs/op</td></tr>\n')
|
||||
|
||||
f.write('</table>\n')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue