I'm currently working on a code snippet that involves running a parse cloud function followed by processing the results. This code utilizes their javascript api (1.3.0) and is implemented in an ionic framework app. Interestingly, when executed on a Mac using Chrome browser, the response time is consistently around 500ms. However, when the same code is run on iOS devices, the performance varies significantly. It can take anywhere from 3 to 20 seconds to complete. Both the Mac and the iOS devices are connected to the same wireless network. I'm puzzled as to why there's such a discrepancy in speed between the two platforms and what steps I can take to optimize it.
var start = Date.now();
console.log("PARSE CLOUD RUN");
Parse.Cloud.run('getFixtures', {teamID : teamID, divisionID : divisionIDs}, {
success: function(response) {
console.log("PARSE CLOUD SUCCESS :" + (Date.now() - start));