Add validation and rendering benchmarks

This commit is contained in:
2026-10-09 00:09:15 +00:00
parent 3fde1f6cbb
commit 0eb009ad5a
3 changed files with 299 additions and 0 deletions

View File

@@ -501,6 +501,8 @@ func TestGoRendererArtifactTextLifecycle(t *testing.T) {
}
}
// BenchmarkGoRendererArtifactReferences measures NewGoRenderer's per-call
// template-parsing fallback rather than the captured compiled path.
func BenchmarkGoRendererArtifactReferences(b *testing.B) {
body := bytes.Repeat([]byte("document content "), (artifactTextChunkSize*4)/len("document content "))
inputs := map[string]*domain.Artifact{