Compute by use, memory by size
On a shared size, compute is measured from what your apps actually use: a bigger size costs nothing more until the app works harder. A dedicated size holds its cores for your app alone, and pays for them while it is awake. Memory is what each app reserves - the memory of its size - while it is awake. A disk is billed for its size, at least 16 GiB.