Is there a possibility for you to post the code here or, open a ticket for support to review the behavior?
An increase of 1,800ms for the insertion of two lines using Groovy is something we need to explore.
Also, can you check the Step's Think Time and ensure it is set to 0.