Re: Benchmarking an IO library



On 26 Feb., 16:34, mathieu <mathieu.malate...@xxxxxxxxx> wrote:
Hi there,

I am currently working on an open source IO library for DICOM files.
I have been trying to optimize the reading time, and found something I
do not understand. The first time I am reading a file, the time to
read (as measured with the unix 'time' command) can be around ~24s,
while if I read it back again immediately it can be as low as ~3s.

So you write an IO library and never heared about something like file
cache?
24/3 seconds are wall time i guess.

Don't know if there is an option to disable the cache. But if you
write a
short script that does enough IO (a few GByte depending on access
pattern)
then all data should be removed from the cache.

Otherwise simply measure IO access but not wall time.
.