Skip to content

Commit dfc658e

Browse files
committed
fixup! add benchmark for WorkspaceTagDefaultsFromFile
1 parent fdec500 commit dfc658e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

provisioner/terraform/tfparse/tfparse_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,14 @@ func createZip(t testing.TB, files map[string]string) []byte {
361361
return za
362362
}
363363

364+
// Current benchmark results before any changes / caching.
365+
// goos: linux
366+
// goarch: amd64
367+
// pkg: github.com/coder/coder/v2/provisioner/terraform/tfparse
368+
// cpu: AMD EPYC 7502P 32-Core Processor
369+
// BenchmarkWorkspaceTagDefaultsFromFile/Tar-16 766 1493850 ns/op 339935 B/op 2238 allocs/op
370+
// BenchmarkWorkspaceTagDefaultsFromFile/Zip-16 706 1633258 ns/op 389421 B/op 2296 allocs/op
371+
// PASS
364372
func BenchmarkWorkspaceTagDefaultsFromFile(b *testing.B) {
365373
files := map[string]string{
366374
"main.tf": `

0 commit comments

Comments
 (0)