Testing the improvement of GPU calculations over CPU calculations