Benchmark marshal (#550)

This commit is contained in:
Thomas Pelletier
2021-06-02 09:29:19 -04:00
committed by GitHub
parent b0d6c62255
commit f3bb20ea79
6 changed files with 246 additions and 78 deletions
+11 -4
View File
@@ -204,11 +204,18 @@ def printtable(data):
</table>""")
fold = 3
printtable(results[:fold])
def match(x):
return "ReferenceFile" in x[0] or "HugoFrontMatter" in x[0]
above = [x for x in results if match(x)]
below = [x for x in results if not match(x)]
printtable(above)
print("<details><summary>See more</summary>")
print('<p>The table above has the results of the most common use-cases. The table below contains the results of all benchmarks, including unrealistic ones. is provided for completeness.</p>')
printtable(results[fold:])
print("""<p>The table above has the results of the most common use-cases. The table below
contains the results of all benchmarks, including unrealistic ones. It is
provided for completeness.</p>""")
printtable(below)
print('<p>This table can be generated with <code>./ci.sh benchmark -a -html</code>.</p>')
print("</details>")