There’s no specific or standard computation on Postgres database performance running On-Prem and Cloud. It depends on the workload. Most of the cloud vendor provides pre-configured setup in terms of number of CPU, RAM, Storage, Network Bandwidth, etc. Usually, doing a performance or load testing will give the optimal configuration to meet the performance requirement.