why the speed of read and write hdf file repeatly is different?

I'm learning HDF5. I create a hdf file which has a group. This group has
two dataset with the same size of 2D. I read and write the same several
rows repeatly. However, I get the different speed. That's what confuse me.

test_squence.cpp (4.6 KB)