If you want very high longevity on battery, for a device that is not used for high performances graphics, but as an SSH terminal or local editor (but not for kernel compilation on device...), there are dedicated low power CPU like the SAMA5 from Atmel (now Microchip).
It can't compete with a raspberry pi 3, and even less with a Galaxy S8, performances wise
it would allow 26h of operating at full speed on a single standard alkaline AA battery (1.5V, 2600mAh), and months of idle time
Freescale's imx6/7 range could be another way to do it with a more powerful chip (some have several cores, and GPU, but are still quite low power).