http://www.perlmonks.org?node_id=393376


in reply to Re: Wasting time thinking about wasted time
in thread Wasting time thinking about wasted time

Generally working on a mounted filesystem for test one, then unmounting, then remounting, before running test two, eliminates cache issues for most OSes

I run these kind of benchmarks against my usb thumbdrive. Easy to mount, easy to unmount, and the drive's so fast that it tends to reduce or eliminate disk speed confusion in benchmarks

Cheers,
Erik

Light a man a fire, he's warm for a day. Catch a man on fire, and he's warm for the rest of his life. - Terry Pratchet

  • Comment on Re^2: Wasting time thinking about wasted time

Replies are listed 'Best First'.
Re^3: Wasting time thinking about wasted time
by bluto (Curate) on Sep 27, 2004 at 15:28 UTC
    Generally working on a mounted filesystem for test one, then unmounting, then remounting, before running test two, eliminates cache issues for most OSes

    When benchmarking in perl, I'm assuming that the first test case to run will incur the cold cache issues on it's very first run. After that every other test should run in the cache. It seems like you'd have to unmount every single test run -- not necessarily pleasant. It's Monday so I'm probably missing something...