Flush cache between runs of the benchmark.

This commit is contained in:
Tom Wilkie
2016-01-25 13:53:38 -08:00
parent 41d48224aa
commit f8cbaf0794
2 changed files with 6 additions and 0 deletions

View File

@@ -30,6 +30,10 @@ func memoisedRender(r Renderer, rpt report.Report) RenderableNodes {
return output
}
func ResetCache() {
renderCache.Purge()
}
// Renderer is something that can render a report to a set of RenderableNodes.
type Renderer interface {
Render(report.Report) RenderableNodes