Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdfc658e

Browse files
committed
fixup! add benchmark for WorkspaceTagDefaultsFromFile
1 parentfdec500 commitdfc658e

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
returnza
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
funcBenchmarkWorkspaceTagDefaultsFromFile(b*testing.B) {
365373
files:=map[string]string{
366374
"main.tf":`

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp