Closed samherrmann closed 1 year ago
Thanks for the perf improvement change @samherrmann 🎉
I can confirm that for one of our projects the generation time reduced significantly.
Before:
task gen 131.44s user 31.98s system 611% cpu 26.742 total
After:
task gen 17.54s user 24.17s system 485% cpu 8.582 total
Is it possible to tag this? We install moq via go.mod, it would be nice if we could pin it to a specific stable version.
I have added a tag - https://github.com/matryer/moq/releases/tag/v0.3.3. However, there was a problem with goreleaser config and it did not attach the binaries to the release. Will fix the goreleaser config when I can, until then, hope the tag suffices.
This merge request is a performance improvement to address #178. The merge request contains two commits, in which the first commit adds a benchmark test. This allows the benchmark test to be executed before and after the changes in the second commit for comparison. Further optimization may be required to close #178, but I hope that this merge request is a step in the right direction.
The following are the benchmark results on my dev machine:
Before:
After:
The following shows an approximate time improvement to execute all tests on my dev machine:
Before:
After: