Performance of partitioning using triggers and rules

In PostgreSQL there are two different ways to perform partitioning - using rules and using triggers.  One of the usual reasons why a partitioningu is used, is a performance, so lets analyze differences between these two ways regarding performance.

1