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

use IndexByte improve scan bench #523

Merged
merged 1 commit into from
Oct 15, 2020
Merged

Conversation

imxyb
Copy link
Contributor

@imxyb imxyb commented Oct 12, 2020

bench result:

benchmark                  old ns/op     new ns/op     delta
BenchmarkScanStruct-12     1259          1083          -13.98%

benchmark                  old allocs     new allocs     delta
BenchmarkScanStruct-12     20             17             -15.00%

benchmark                  old bytes     new bytes     delta
BenchmarkScanStruct-12     696           600           -13.79%

@imxyb
Copy link
Contributor Author

imxyb commented Oct 12, 2020

btw, this bench is based on not using structSpecCache.

@stevenh stevenh merged commit 51dc771 into gomodule:master Oct 15, 2020
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