Workflow - Paralell vs in-Series Node Execution #10855
PedroGomes02
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Self Checks
Content
To improve the efficiency of my workflow, I have been investigating the advantages of parallel execution compared to running tasks in series.
I assumed that parallel execution would always be faster than running tasks in series, but sometimes the in-series execution is actually faster than the parallel one. Is this normal?
I have also noticed that when the nodes' executions are more complex and take longer, parallel execution tends to be faster. However, for simpler node executions, the difference between the two approaches is very small.
Should we always use parallel execution, or are there cases where in-series execution is the better choice?
Examples (both have 8 nodes of equal JSON Parse tool execution):
![image](https://private-user-images.githubusercontent.com/113145167/387580704-8b214025-0e90-4cbc-9086-d452996316b5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3OTc4MDQsIm5iZiI6MTczOTc5NzUwNCwicGF0aCI6Ii8xMTMxNDUxNjcvMzg3NTgwNzA0LThiMjE0MDI1LTBlOTAtNGNiYy05MDg2LWQ0NTI5OTYzMTZiNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxN1QxMzA1MDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01ZTc4YzYxM2I1ODBhZThiYWFhMTA2NjMyMjcxZTBhOTEyZDc0ODA1YzcxZTU0NGU4ODU3Mjg0OTBlOWZhYTFhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.d2MUHcUogu3MDBIHqgEq6JEaEqyr1MJsZCytXxGtrZA)
![image](https://private-user-images.githubusercontent.com/113145167/387580943-b12022bb-157f-4ec6-9193-f44ecea24e45.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3OTc4MDQsIm5iZiI6MTczOTc5NzUwNCwicGF0aCI6Ii8xMTMxNDUxNjcvMzg3NTgwOTQzLWIxMjAyMmJiLTE1N2YtNGVjNi05MTkzLWY0NGVjZWEyNGU0NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxN1QxMzA1MDRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01Njg0M2UzZDc3NzFjMTZkYWZlOTdhMjY2MzA2ZWI5YzE5MzA2Njk0ZjAwMTk1YjcxMTQ4ZTgyNTkzOTkxODRmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.PI3_ORzP43mPzhdxZlWbv6UV0BwV4gIyFvA6PyHVbvw)
in Series Run
in Parallel Run
Beta Was this translation helpful? Give feedback.
All reactions