ATmega328P vs ESP8266EX

The same measures, side by side. A dot marks the stronger figure where two numbers can be ranked.

Microchip (Atmel)ATmega328PThe 8-bit chip at the heart of the Arduino Uno. Simple, well understood, and happy on 5 V.
Espressif SystemsESP8266EXA 32-bit processor and a complete 2.4 GHz Wi-Fi radio in a 5 mm package.Not recommended for new designs. Espressif suggests the ESP8684 instead.
Core and memory
ArchitectureAVR, 8-bitTensilica L106, 32-bit
Cores11
Max clock20 MHz160 MHz (stronger)
RAM2 kBUnder 50 kB (stronger)
On-chip flash32 kBNone
External flashNoneUp to 16 MB, SPI
Connectivity
WirelessNoneWi-Fi 802.11 b/g/n
USBNoneNone
Inputs and outputs
GPIO pins23 (stronger)17
ADC8 inputs, 10-bit1 input, 10-bit
UART12 (one transmit-only)
SPI2 (one through the UART)2 (one shares the flash pins)
I2C11, in software
PWM6 channels (stronger)4 outputs
Programmable IONoneNone
Power
Supply1.8–5.5 V2.5–3.6 V
Deepest sleep0.1 µA at 1.8 V (stronger)20 µA
Temperature−40 to +105 °C−40 to +125 °C
Package
PackageTQFP-32QFN-32
Body7 × 7 mm5 × 5 mm
Space on the board9 × 9 mm5 × 5 mm
Pin pitch0.8 mm0.5 mm
ReleasedNo data2014

Swap sides