Postgres isn't slow, your data just isn't in the cache.
When writing, it needs to fsync to ensure ACID
When writing, it needs to fsync to ensure ACID