Arm Cortex-M vs ESP32: Which is More Efficient?