Yes, I agree with you. As you mentioned in some other posts, GPU calls are asynchronous so syncing forces them to finish.
But back to my first post - I want to know why this 10 seconds happens only in the docker container?