In order to measure application' cold-start time, I have to reboot my machine every time, which is really time-consuming. I understand it is mission impossible to simulate a real reboot, but what I want is something rough, ex, put out cache in standby list as many as possible so the warm start won't be so warm anymore.
Any ideas on this?
Thanks
A virtual machine would be your best bet. The virtual machine will provide a clean slate for the app, but it will be much quicker to reload the virtual machine image than your physical machine.
The most efficient way to do this is with RamMap.exe from www.sysinternals.com. This application not only allows you to monitor your memory usage, it also allows you to clear the different memory areas such as the working sets, the standby lists so you can test things like memory mapped i/o performance and eliminate cache effects on subsequent reads to better simulation the 1st time read performance after a reboot. It takes some time to clear, but nowhere near the time it takes to reboot.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With