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

Benchmarking reflection API calls, via ReportAllocs() #506

Open
advancedwebdeveloper opened this issue Mar 18, 2021 · 0 comments
Open

Benchmarking reflection API calls, via ReportAllocs() #506

advancedwebdeveloper opened this issue Mar 18, 2021 · 0 comments

Comments

@advancedwebdeveloper
Copy link

Hi.

I have applied such a patch - and it allowed to build, test the project:

https://gist.github.com/advancedwebdeveloper/bda9cfc45c8e133464f5eea9a4f0e50e
.

@ianlancetaylor proposed such a benchmarking option:
https://groups.google.com/g/golang-nuts/c/S2gBW3BV4QU/m/uW9KN7AuFwAJ
https://golang.org/pkg/testing/#B.ReportAllocs
.

I see such lines, which invoked the reflection API:

defaultHeader := reflect.TypeOf(collection).String()

WEB_SECURE_ANNOT, reflect.TypeOf(existingSecret), reflect.TypeOf(secureSecret))

"verbs": reflect.ValueOf(whisk.ApiVerbs).MapKeys()})

.

What is the minimal scenario, to perform a strictly bench-marking test?

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

No branches or pull requests

1 participant