Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update mockgen to 1.4.3 #3379

Merged
merged 1 commit into from
Apr 16, 2020
Merged

update mockgen to 1.4.3 #3379

merged 1 commit into from
Apr 16, 2020

Conversation

stevendanna
Copy link
Contributor

This release of mockgen has an important speed improvement:

golang/mock#397

On linux, with tools already installed and a primed cache, we go from:

> time compile_client_mocks
...
real	0m55.859s
user	1m39.088s
sys 	1m40.395s

to

> time compile_client_mocks
...
real	0m9.133s
user	0m12.420s
sys 	0m7.568s

Unfortunately, on macOS+Docker, the impact isn't as dramatic:

> time compile_client_mocks
...
real	1m32.170s
user	1m46.861s
sys 	2m31.633s

to

> time compile_client_mocks
...
real	1m8.510s
user	0m21.225s
sys 	0m24.807s

Signed-off-by: Steven Danna steve@chef.io

This release of mockgen has an important speed improvement:

 golang/mock#397

On linux, with tools already installed and a primed cache, we go from:

    > time compile_client_mocks
    ...
    real	0m55.859s
    user	1m39.088s
    sys 	1m40.395s

to

    > time compile_client_mocks
    ...
    real	0m9.133s
    user	0m12.420s
    sys 	0m7.568s

Unfortunately, on macOS+Docker, the impact isn't as dramatic:

    > time compile_client_mocks
    ...
    real	1m32.170s
    user	1m46.861s
    sys 	2m31.633s

to

    > time compile_client_mocks
    ...
    real	1m8.510s
    user	0m21.225s
    sys 	0m24.807s

Signed-off-by: Steven Danna <steve@chef.io>
Copy link
Contributor

@srenatus srenatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@stevendanna
Copy link
Contributor Author

The massive line increase is mostly from:

 vendor/golang.org/x/net/idna/tables12.00.go                                 | 4733 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

@stevendanna stevendanna merged commit 2973259 into master Apr 16, 2020
@chef-expeditor chef-expeditor bot deleted the ssd/update-mockgen branch April 16, 2020 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants