To get a better picture which part of the code is slower, you could profile it via e.g. Nsight Systems as described here 3. This would give you the timeline and you could compare your workloads to each other.