The ESP32's Xtensa LX6 processor generally offers better floating-point performance, crucial for mathematical computations, while the RP2040's Cortex-M0+ cores lack hardware floating-point instructions, making it significantly slower for complex floating-point tasks.