the thing is, the timings you see in the logic app run history include overhead that you wouldn't have in a pure c# app. every time you call a nested workflow or a function app, there's a bit of orchestration latency. azure has to spin up the action, validate permissions, and handle the communication between services. that can easily add a second or two per call.
so when your main flow shows 6 seconds for step 'c', but the sub-flow itself only took 4.3 seconds, that extra 1.7 seconds is likely the overhead of starting and stopping that child workflow. same thing with your function apps. the http connector itself might report 0.8 seconds, but the function app's cold start time and execution time are bundled into that.
this might help in other scenarios too, always expect some overhead with distributed systems.
if you want to get a more accurate picture, add some logging at the very start and very end of your function apps. log the exact datetime when the function begins and ends. compare that to the timings in the logic app. you'll probably see that the function itself is fast, but the trigger and response steps add time.
also, check the scale settings on your app service plan. if you're on a lower tier, cold starts can be more pronounced. moving to a premium plan might shave off some time, but it won't eliminate the orchestration overhead completely.
unfortunately, that's just the nature of a low code platform like logic apps. you trade off raw performance for development speed and ease of use. for most business processes, a 10 second total run time is acceptable, but if you need millisecond performance, a custom c# app running on a dedicated app service would be the way to go.
hope this clarifies things. those timings are probably "accurate" from azure's perspective, even if they include overhead you wouldn't expect. let me know if you want to dive deeper into optimizing specific steps.
Best regards,
Alex
and "yes" if you would follow me at Q&A - personaly thx.
P.S. If my answer help to you, please Accept my answer