Hello,
explain (buffers, analyze) your sql statements .......
data size ???
You can put your data in a table, and check its size.
I don't what you want to check ??
buffer usages, intermediate temp object size or sorting size or some other thing ??
You can also try pg_stat_statements contrib module for your intending analysis.
BR ,
Steven