Checking performance on distance calculation between points