Can anyone please tell me which is better ?

So i have a problem … maybe not … but when i tested the game on my device (lenovo a6010) the performace was ok .
But when i tested it on the other device (Huawei) the performance was so bad .

So what i want to know is why ?
Is it because of the device or because of the game ?

I noticed the memory cache was higher in lenovo a6010 … so is that what is making the game run better on my device or what ?