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

feat(gcs): Create unit tests + benchmarks #42

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

Pokom
Copy link
Contributor

@Pokom Pokom commented Dec 8, 2023

Introduces unit tests and benchmarks for the bucket_cache.go file. It was raised during implementation that using defer has a performance penalty, but I wanted to use benchmarks to measure it. By removing defers, we end up with roughly 5% performance gains. In practice though, this should be minor and have negligible impact on overall performance.

Introduces unit tests and benchmarks for the bucket_cache.go file.
It was raised during implementation that using `defer` has a performance penalty, but I wanted to use benchmarks to measure it.
By removing defers, we end up with roughly 5% performance gains.
In practice though, this should be minor and have neglibable impact on overall performance.
@Pokom Pokom requested review from skl and the-it December 8, 2023 15:17
Copy link
Contributor

@skl skl left a comment

Choose a reason for hiding this comment

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

💯

@Pokom Pokom merged commit bb6f494 into main Dec 8, 2023
1 check passed
@Pokom Pokom deleted the google/gcs-bucket-cache-testing branch December 8, 2023 15:25
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