Core Animation cannot return correct FPS for benchmarks running on Mobile Safari

Hi, all,

Recently I find that when I run a web Canvas2D benchmark on mobile Safari, I use Core Animation in Instruments to get the fps and gpu utilization. But from JS side, the fps of my web benchmark is about 52 fps while Core Animation just returns 12 fps at the same time.

I also try it when building a native iOS app, this time Core Animation returns same FPS value compared to Xcode. So, can we use Core Animation to measure Web benchmark FPS or the mechanism of collecting FPS by Core Animation in Instruments is not designed for Web benchmarks?


Thanks