-
Notifications
You must be signed in to change notification settings - Fork 18k
net/http: add request file upload benchmarks #30424
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
net/http: add request file upload benchmarks #30424
Conversation
This PR (HEAD: 293394b) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/163862 to see it. Tip: You can toggle comments from me using the |
Message from Ian Lance Taylor: Patch Set 1: (3 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/163862. |
This PR (HEAD: 4ad1c51) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/163862 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: 7a6a51e) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/163862 to see it. Tip: You can toggle comments from me using the |
Message from Chris Marchesi: Patch Set 4: (3 comments) Ack! I imported the benchmarks from another repository and missed the update to remove the references for net/http. I've made the necessary changes as well and also fixed the change link in https://golang.org/cl/163737 as well. Cheers and thanks for catching all of that! Please don’t reply on this GitHub thread. Visit golang.org/cl/163862. |
Message from Emmanuel Odeke: Patch Set 4: Hello Chris, thanks for working on this. I have made an adaptation of your CL that'll allow you to test with various sizes too but also with some other updates, please see below: const ( func BenchmarkFileAndServer_1KB(b *testing.B) { func BenchmarkFileAndServer_16MB(b *testing.B) { func BenchmarkFileAndServer_64MB(b *testing.B) { func benchmarkFileAndServer(b *testing.B, n int64) {
} func runFileAndServerBenchmarks(b *testing.B, tlsOption bool, f *os.File, n int64) {
} Please don’t reply on this GitHub thread. Visit golang.org/cl/163862. |
This adds benchmarks to test file uploads using PUT requests. It's designed to complement changes https://golang.org/cl/163599 and https://golang.org/cl/163737, allowing an easy comparison of performance before and after these changes are applied. Updates #30377. Co-authored-by: Emmanuel Odeke <[email protected]>
Message from Chris Marchesi: Patch Set 4:
Thanks for this Emmanuel! There are some things here for sure that I missed (ensuring not to count seeks) and things that I didn't know (that you can get a configured client from the test server now), so yeah, thank you! I'll update the CL shortly and will add you as a co-author. Please don’t reply on this GitHub thread. Visit golang.org/cl/163862. |
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the ℹ️ Googlers: Go here for more info. |
This PR (HEAD: 242622b) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/163862 to see it. Tip: You can toggle comments from me using the |
This adds benchmarks to test file uploads using PUT requests. It's designed to complement changes https://golang.org/cl/163599 and https://golang.org/cl/163737, allowing an easy comparison of performance before and after these changes are applied. Updates #30377. Co-authored-by: Emmanuel Odeke <[email protected]> Change-Id: Ib8e692c61e1f7957d88c7101669d4f7fb8110c65 GitHub-Last-Rev: 242622b GitHub-Pull-Request: #30424 Reviewed-on: https://go-review.googlesource.com/c/go/+/163862 Run-TryBot: Emmanuel Odeke <[email protected]> Reviewed-by: Emmanuel Odeke <[email protected]>
This PR can now be closed at CL https://go-review.googlesource.com/c/go/+/163862 was merged. |
This adds benchmarks to test file uploads using PUT requests.
It's designed to complement changes https://golang.org/cl/163599 and
https://golang.org/cl/163737, allowing an easy comparison of
performance before and after these changes are applied.
Updates #30377.
Co-authored-by: Emmanuel Odeke [email protected]