Timing is on.
=== Grade 5: write overhead comparison ===
=== Index A: insert 10000 messages ===
BEGIN
Time: 0.099 ms
INSERT 0 10000
Time: 27.003 ms
ROLLBACK
Time: 0.142 ms
=== Index B: insert 10000 messages ===
BEGIN
Time: 0.357 ms
INSERT 0 10000
Time: 25.934 ms
ROLLBACK
Time: 0.179 ms
=== Verify unchanged row counts ===
 variant | count  
---------+--------
 A       | 120000
 B       | 120000
(2 rows)

Time: 11.135 ms
