SSD 驱动器和 Visual Studio IDE.大改进?真实使用案例,没有理论 [英] SSD drives and Visual Studio IDE. Big improvements? Real usage stories, no theory

查看:27
本文介绍了SSD 驱动器和 Visual Studio IDE.大改进?真实使用案例,没有理论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Windows 7 + Intel SSD 驱动器来加快我的 Visual Studio 2008 开发周期.

I want to go for Windows 7 + Intel SSD drives to speed up my Visual Studio 2008 development cycle.

我想要加速的领域是:

  • 编译/构建时间
  • 为 winforms/webforms 打开文件
  • 适用于 Windows 和 Web 的通用 Visual Studio迟缓"

我对 Visual Studio 的启动时间不感兴趣.每 GB 的成本也不是问题.我要速度.

I'm not interested in the startup time of Visual Studio. Also cost per GB is not an issue. I want speed.

有没有人试过这个(SSD 驱动器 + Visual Studio),你能谈谈加速/减速吗?

Has anyone tried this (SSD drive + Visual Studio) already and what can you tell about the speedups/downs?

我知道关于 SSD 的理论,但通常布丁的证据在于吃.所以我对那些实际尝试并测试了带有 SSD 的 Visual Studio 设置的人很感兴趣......

I know the theory about SSDs but usually the proof of the pudding is in the eating. So I'm interested in people that actually tried and tested a Visual Studio setup with SSD...

推荐答案

我有 Visual C# 2008 的硬数据.简短的说法是你最好把钱花在更快的 CPU 上,而不是更快的我/O.更长的答案如下...

I've got hard data for Visual C# 2008. The short version is that you are best of spending your money on a faster CPU than faster I/O. Longer answer follows...

我们的 C# (.NET 3.5) 解决方案包含 81 个项目,代码超过 200 万行(包括注释和空行).几年前,我们从配备标准 HDD 的 Pentium 4 3  GHz PC 升级到配备 10,000 RPM WD Raptor HDD (74 GB) 的 Core 2 Duo 2.6 GHz PC.加速是巨大的.大约 10 分钟到 3.5 分钟.所有这些都在具有 4GB RAM 的 Windows XP Pro 32 位环境中完成.

Our C# (.NET 3.5) solution contains 81 projects with over 2M lines of code (including comments and blank lines). A couple of years ago we upgraded from Pentium 4 3 GHz PCs with standard HDDs to Core 2 Duo 2.6 GHz PCs with 10,000 RPM WD Raptor HDDs (74 GB). The speedup was immense. About 10 minutes down to 3.5 minutes. All of this in in a Windows XP Pro 32-bit environment with 4 GB of RAM.

我们还得到了一个 Gigabyte i-RAM(谷歌它以获取信息),它基本上是一个带电池备份的 RAM 硬盘.与读取速度快但写入速度慢的 SSD 不同,i-RAM 两者都很快,但是如果您断电,那么电池只能持续大约 12 小时,因此您必须严格遵守签入规则.与 10,000 RPM 的 Raptor HDD 相比,这在 Core 2 Dou 平台上的编译时间又缩短了一分钟(降至 2.5 分钟).

We also got one Gigabyte i-RAM (google it for information), which is basically a RAM hard disk with battery backup. Unlike an SSD which is fast for reading but slower for writing, the i-RAM is fast for both, but if you lose power then the battery only lasts for about 12 hours so you have to be disciplined with your check ins. This shaved another minute off the compile times on the Core 2 Dou platform (down to 2.5 minutes) compared to the 10,000 RPM Raptor HDD.

此后我发现那些旧的 74GB 10,000 RPM Raptor 驱动器比您的花园品种 7,200 RPM 现代驱动器稍慢,我们已经证明一致的基准测试编译.我们还没有尝试过新的 Velociraptors,但它们肯定会更快,但可能不足以单独用于编译时间.

I've since discovered that those old 74 GB 10,000 RPM Raptor drives are slightly slower than your garden variety 7,200 RPM modern drive and we've proven that consistently benchmarking compiles. We haven't tried the new Velociraptors, but they would certainly be quicker but probably not enough to be worth it for compile times alone.

上周我们获得了一个新的英特尔酷睿 i7-870 平台,带有 G.Skill Falcon 128GB SSD(带有 Indilix Barefoot 控制器)和标准 500GB HDD 作为第二个驱动器.我还将 i-RAM 装入这台 PC 并测试了所有配置.

与 Core 2 Duo 相比,HDD 编译时间为 3.5 分钟,i-RAM 编译时间为 2.5 分钟,i7-870 SSD、HDD 和 i-RAM 编译时间为 1 分 40 秒.花 3 秒钟.

因此,两次我们都升级了开发人员工作站,C# 编译时间的绝大多数性能改进来自更快的 CPU,而不是更快的磁盘.如果您想加快编译时间,请将钱投入 CPU 而不是磁盘.

也就是说,SSD 在加载 Visual Studio 和打开解决方案时要快得多(虽然我没有时间).如果您买得起 SSD,您将永远不会回头,因为 PC 上的每个程序加载速度都快得令人难以置信.但它不会显着加快您的编译速度.这就是 Visual Studio C# 是单线程的.如果微软联合起来让他们的编译器在 IDE 中成为多线程的,那么我们实际上可以使用这四个内核......

That said, the SSD is much faster for loading Visual Studio and opening a solution (although I haven't got timings for that). If you can afford an SSD you'll never go back as every program on your PC loads so much faster it is incredible. But it won't significantly speed up your compiles. And that's with Visual Studio C# being single-threaded. If Microsoft ever got their act together and made their compiler in the IDE multi-threaded then we could actually use those four cores...

2012 年 5 月更新:我们现在根据在关注 CPU 性能之前所了解的知识再次升级了我们的 PC.新 PC 配备 Intel Core i7-2600k CPU,超频至 4.6GHz,配备 Intel 510 系列 120GB SATA III SSD、16GB RAM 和大型 CPU 散热器!令人惊讶的是,这几乎将编译时间减半,我当然把这归结为 CPU 马力的大幅增加,而不是更快的 SSD.

Update May 2012: We've now upgraded our PCs again and based on what we learned before we focused on CPU performance. The new PCs have Intel Core i7-2600k CPUs overclocked to 4.6 GHz, with Intel 510 Series 120 GB SATA III SSD, 16 GB RAM and a large CPU cooler! Surprisingly this nearly halved the compilation time, and I certainly put this down to the very large increase in CPU horsepower rather than the faster SSD.

Visual Studio 2010 中的 C# 编译性能结果为:

C# compilation in Visual Studio 2010 performance results were:

  • 159 秒:英特尔酷睿 i7-870 标准 (2.9 - 3.3 GHz)、4 GB RAM 和 SATA II SSD
  • 109 秒:英特尔酷睿 i7-2600k 库存(3.4 - 3.8GHz)16GB RAM,SATA III SSD
  • 84 秒:英特尔酷睿 i7-2600k 超频 (4.63GHz) 16GB RAM,SATA III SSD

这篇关于SSD 驱动器和 Visual Studio IDE.大改进?真实使用案例,没有理论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆