mirror of https://github.com/pulumi/pulumi.git
19 lines
435 B
Go
19 lines
435 B
Go
package hcl2
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/pulumi/pulumi/pkg/v3/codegen/internal/test"
|
|
"github.com/pulumi/pulumi/pkg/v3/codegen/schema"
|
|
"github.com/pulumi/pulumi/sdk/v3/go/common/util/contract"
|
|
)
|
|
|
|
func BenchmarkLoadPackage(b *testing.B) {
|
|
loader := schema.NewPluginLoader(test.NewHost(testdataPath))
|
|
|
|
for n := 0; n < b.N; n++ {
|
|
_, err := NewPackageCache().loadPackageSchema(loader, "aws")
|
|
contract.AssertNoError(err)
|
|
}
|
|
}
|