7

What I Want

I want to simulate the performance of a normal hard drive on my SSD based development machine.

Background

I'm developing a Mac application on a Macbook with an SSD. It's gloriously fast.

If someone has a standard platter hard drive, my app will be slower for them. My app is heavy on Core Data too, so the disk access speed will be a significant factor.

I worry that the performance measurements I take with Instruments look fine, but when a customer runs my app on their normal hard drive it will be achingly slow.

What I've Tried

Before I installed my SSD, I measured the performance of my app in Instruments. After the install, I measured it again and the two benchmarks were identical.

This doesn't make sense to me. I'm convinced I was doing something wrong here. Instruments probably measures clock speed, not wall time speed. But still, surely the speed of the hard drive should affect the benchmark I took? Or does Instruments somehow compensate for this?

4

2 回答 2

4

感谢上面的@PaulR,他建议使用外部 USB 硬盘来测试性能。谢谢!

于 2011-11-10T17:18:50.023 回答
2

您可以使用虚拟机并限制磁盘访问。通过这种方式,您应该可以控制磁盘速度......仍然无法限制仅写入或仅读取。

以下是有关如何在 Virtualbox 5.8 中执行此操作的一些提示。限制磁盘映像的带宽https://www.virtualbox.org/manual/ch05.html#storage-bandwidth-limit

于 2014-10-22T13:18:36.033 回答