Is seriously question if they were doing the same work.if #1 finishes in 2 seconds and #2 finishes in .4 seconds but sends 1.6MB into GC each run
If you can query and fetch all the data in LESS time remotely than performing it on the server in a well structured sql query; what pathological issue are you dealing with.