Timing is on. === Grade 5: repeated write benchmark === === PostgreSQL 17.6; 10000 inserted rows per run === CREATE PROCEDURE Time: 5.749 ms NOTICE: === RUN 1, VARIANT A === NOTICE: Insert on "grade5_write_A_1" (cost=0.00..525.00 rows=0 width=0) (actual time=22.080..22.081 rows=0 loops=1) NOTICE: Buffers: shared hit=40536 read=6 dirtied=278 written=274 NOTICE: WAL: records=20129 bytes=2895528 NOTICE: -> Function Scan on generate_series g (cost=0.00..525.00 rows=10000 width=572) (actual time=0.484..5.930 rows=10000 loops=1) NOTICE: Planning: NOTICE: Buffers: shared hit=12 NOTICE: Planning Time: 0.153 ms NOTICE: Execution Time: 22.278 ms CALL Time: 301.986 ms NOTICE: === RUN 1, VARIANT B === NOTICE: Insert on "grade5_write_B_1" (cost=0.00..525.00 rows=0 width=0) (actual time=22.852..22.852 rows=0 loops=1) NOTICE: Buffers: shared hit=40770 read=6 dirtied=395 written=391 NOTICE: WAL: records=20246 bytes=3857376 NOTICE: -> Function Scan on generate_series g (cost=0.00..525.00 rows=10000 width=572) (actual time=0.351..5.782 rows=10000 loops=1) NOTICE: Planning Time: 0.054 ms NOTICE: Execution Time: 22.963 ms CALL Time: 324.262 ms NOTICE: === RUN 2, VARIANT B === NOTICE: Insert on "grade5_write_B_2" (cost=0.00..525.00 rows=0 width=0) (actual time=21.701..21.701 rows=0 loops=1) NOTICE: Buffers: shared hit=40770 read=6 dirtied=395 written=391 NOTICE: WAL: records=20246 bytes=3857376 NOTICE: -> Function Scan on generate_series g (cost=0.00..525.00 rows=10000 width=572) (actual time=0.425..5.720 rows=10000 loops=1) NOTICE: Planning Time: 0.069 ms NOTICE: Execution Time: 21.789 ms CALL Time: 422.448 ms NOTICE: === RUN 2, VARIANT A === NOTICE: Insert on "grade5_write_A_2" (cost=0.00..525.00 rows=0 width=0) (actual time=22.510..22.510 rows=0 loops=1) NOTICE: Buffers: shared hit=40536 read=6 dirtied=278 written=274 NOTICE: WAL: records=20129 bytes=2895528 NOTICE: -> Function Scan on generate_series g (cost=0.00..525.00 rows=10000 width=572) (actual time=0.424..6.208 rows=10000 loops=1) NOTICE: Planning Time: 0.057 ms NOTICE: Execution Time: 22.596 ms CALL Time: 294.527 ms NOTICE: === RUN 3, VARIANT A === NOTICE: Insert on "grade5_write_A_3" (cost=0.00..525.00 rows=0 width=0) (actual time=24.216..24.217 rows=0 loops=1) NOTICE: Buffers: shared hit=40536 read=6 dirtied=278 written=274 NOTICE: WAL: records=20129 bytes=2895528 NOTICE: -> Function Scan on generate_series g (cost=0.00..525.00 rows=10000 width=572) (actual time=0.752..6.839 rows=10000 loops=1) NOTICE: Planning Time: 0.064 ms NOTICE: Execution Time: 24.310 ms CALL Time: 279.345 ms NOTICE: === RUN 3, VARIANT B === NOTICE: Insert on "grade5_write_B_3" (cost=0.00..525.00 rows=0 width=0) (actual time=24.158..24.159 rows=0 loops=1) NOTICE: Buffers: shared hit=40770 read=6 dirtied=395 written=391 NOTICE: WAL: records=20246 bytes=3857376 NOTICE: -> Function Scan on generate_series g (cost=0.00..525.00 rows=10000 width=572) (actual time=0.425..6.257 rows=10000 loops=1) NOTICE: Planning Time: 0.057 ms NOTICE: Execution Time: 24.248 ms CALL Time: 393.958 ms NOTICE: === RUN 4, VARIANT B === NOTICE: Insert on "grade5_write_B_4" (cost=0.00..525.00 rows=0 width=0) (actual time=23.306..23.307 rows=0 loops=1) NOTICE: Buffers: shared hit=40770 read=6 dirtied=395 written=391 NOTICE: WAL: records=20246 bytes=3857376 NOTICE: -> Function Scan on generate_series g (cost=0.00..525.00 rows=10000 width=572) (actual time=0.440..6.001 rows=10000 loops=1) NOTICE: Planning Time: 0.060 ms NOTICE: Execution Time: 23.397 ms CALL Time: 351.346 ms NOTICE: === RUN 4, VARIANT A === NOTICE: Insert on "grade5_write_A_4" (cost=0.00..525.00 rows=0 width=0) (actual time=92.972..92.973 rows=0 loops=1) NOTICE: Buffers: shared hit=40536 read=6 dirtied=278 written=274 NOTICE: WAL: records=20129 bytes=2895528 NOTICE: -> Function Scan on generate_series g (cost=0.00..525.00 rows=10000 width=572) (actual time=0.489..5.808 rows=10000 loops=1) NOTICE: Planning Time: 0.071 ms NOTICE: Execution Time: 93.088 ms CALL Time: 354.370 ms NOTICE: === RUN 5, VARIANT A === NOTICE: Insert on "grade5_write_A_5" (cost=0.00..525.00 rows=0 width=0) (actual time=24.264..24.264 rows=0 loops=1) NOTICE: Buffers: shared hit=40536 read=6 dirtied=278 written=274 NOTICE: WAL: records=20129 bytes=2895528 NOTICE: -> Function Scan on generate_series g (cost=0.00..525.00 rows=10000 width=572) (actual time=0.634..6.771 rows=10000 loops=1) NOTICE: Planning Time: 0.052 ms NOTICE: Execution Time: 24.388 ms CALL Time: 328.367 ms NOTICE: === RUN 5, VARIANT B === NOTICE: Insert on "grade5_write_B_5" (cost=0.00..525.00 rows=0 width=0) (actual time=26.081..26.082 rows=0 loops=1) NOTICE: Buffers: shared hit=40770 read=6 dirtied=395 written=391 NOTICE: WAL: records=20246 bytes=3857376 NOTICE: -> Function Scan on generate_series g (cost=0.00..525.00 rows=10000 width=572) (actual time=0.408..6.748 rows=10000 loops=1) NOTICE: Planning Time: 0.071 ms NOTICE: Execution Time: 26.206 ms CALL Time: 383.466 ms