hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.32k stars 1.73k forks source link

Profile Magic Modules code speed #19645

Open c2thorn opened 2 weeks ago

c2thorn commented 2 weeks ago

What kind of contribution is this issue about?

Other (specify in details)

Details

With the Go rewrite of Magic Modules, initial measurements showed similar speeds between the Ruby and Go engines when generating all products. We've received feedback of users noticing a general speedup in the Go engine, so there may be differences in machines and commands used.

We can profile MM to determine where most of the time is going to during generation. One way to visualize this is with a flame graph.

We can also get some data on the times of various machines.

References

No response

rileykarson commented 2 days ago

Note: We may want to document how to do this as part of this work.