3 ms·
The benchmark is run 5 times without flushing file system caches. If you mmap it, it will still be in memory between process runs. The author intended this FWIW
by rockwotj 3y ago
The benchmark is run 5 times without flushing file system caches. If you mmap it, it will still be in memory between process runs. The author intended this FWIW
- PaulDavisThe1st 3y agoIf the cache is not flushed, it will still be in memory between runs whether you mmap it or not.
- marginalia_nu 3y agoThat depends a lot on the OS. I would not count on a 13 GB file being cached in RAM after having been read through once.
- mgaunard 3y agoThat sounds like a benchmarking flaw. But then, writing good benchmarks is an art in itself.