32KB for the UNO Flash and it operates at 16 Mhz. 512 KB for the ESP8266 and it operates at 80 Mhz. (Up to 4Mb and 160Mhz on some). Its limitation is its IO pins . Most have but one Analog pin but many Digital pins