Tensorflow performance on mac

I am using tensorflow on mac with M1 chip and following tensorflow configs,
tensorflow-estimator 2.9.0
tensorflow-macos 2.9.2
tensorflow-metal 0.5.0

But my epoch time is huge I am getting around 15 hrs whereas the same code in colab runs in 2 mins.
I am unable to understand why is it the case.
Please reply, Thank you.