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

Pipeline chunk files benchmark #227

Merged
merged 3 commits into from
Feb 29, 2024
Merged

Conversation

adamdecaf
Copy link
Member

Upgrading to moov-io/ach v1.35.0 as well, which has some performance improvements.

Without the moov-io/ach upgrade this benchmark reports

Benchmark_chunkFilesTogether
    merging_test.go:172: merged 10000 files
Benchmark_chunkFilesTogether/run
    merging_test.go:191: 3 files after merge
Benchmark_chunkFilesTogether/run-16         	       1	7218584114 ns/op	230712568 B/op	  871031 allocs/op
PASS
ok  	github.com/moov-io/achgateway/internal/pipeline	14.087s

After upgrading moov-io/ach

Benchmark_chunkFilesTogether
    merging_test.go:172: merged 10000 files
Benchmark_chunkFilesTogether/run
    merging_test.go:191: 3 files after merge
Benchmark_chunkFilesTogether/run-16         	       1	7234198724 ns/op	229498080 B/op	  700987 allocs/op
PASS
ok  	github.com/moov-io/achgateway/internal/pipeline	14.208s

There's still a lot of room for improvement in the merge files routine, but adding Filename to FileUploaded shouldn't hinder uploads.

@adamdecaf adamdecaf force-pushed the pipeline-chunk-files-benchmark branch from 10cefe2 to 8365ce6 Compare February 29, 2024 20:14
@@ -60,7 +64,11 @@ func TestProcessor(t *testing.T) {

require.NotNil(t, proc.HandledFile)
require.NotNil(t, proc.HandledFile.ACHFile)
require.Equal(t, "7ffdca32898fc89e5e680d0a01e9e1c2a1cd2717", proc.HandledFile.ACHFile.ID)
if runtime.GOOS == "windows" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting. Why is there a different file ID on windows?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure.. Maybe new Windows specific lines are throwing it off?

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 25.00000% with 12 lines in your changes are missing coverage. Please review.

Project coverage is 47.63%. Comparing base (dc6e821) to head (8365ce6).

Files Patch % Lines
internal/pipeline/merging.go 25.00% 11 Missing and 1 partial ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #227      +/-   ##
==========================================
- Coverage   47.70%   47.63%   -0.08%     
==========================================
  Files          97       97              
  Lines        4366     4377      +11     
==========================================
+ Hits         2083     2085       +2     
- Misses       1952     1960       +8     
- Partials      331      332       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@adamdecaf adamdecaf merged commit b6c9f49 into master Feb 29, 2024
7 checks passed
@adamdecaf adamdecaf deleted the pipeline-chunk-files-benchmark branch February 29, 2024 21:52
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.

3 participants