在浏览器测试中减慢 CPU 以模拟较慢的计算机 [英] Slow down CPU to simulate slower computers in browser testing

查看:43
本文介绍了在浏览器测试中减慢 CPU 以模拟较慢的计算机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试了解我们的网页在普通客户计算机上的表现.我们尚未确定此配置,但它可能比我们的开发人员和测试人员所拥有的要慢.

I'm trying to see how our web pages behave on an average customer's computer. We have not yet pinned down this configuration, but it's likely to be slower than what our developers and testers will have.

我已经看到类似问题的答案,这些问题建议限制带宽并使用内存有限的 VM,但我还需要降低 CPU 的速度吗?我的印象是,即使在 VM 中,CPU 也会以接近全速运行.是否有允许您限制 CPU 周期的虚拟机平台?我看到一个建议运行类似 Folding @ Home 的东西,但我欢迎其他建议来限制 CPU 速度.

I've seen answers to similar questions that suggest throttling bandwidth and using a VM where the memory has been limited, but do I also need to slow down the CPU? I am under the impression that the CPU will run fairly close to full speed, even in a VM. Are there virtual machine platforms that allow you to limit the CPU cycles? I saw one suggestion to run something like Folding @ Home, but I would welcome other suggestions to throttle the CPU speed.

我看过这个问题:如何减慢浏览器速度,以及其他谈论限制带宽的人.

I've seen this question: How to Slow down the browser, and others that talk about limiting bandwidth.

我想我还需要关心有多少内核/处理器可供 VM 使用.大多数 VM 平台是否为您提供了限制此选项的选项?

I suppose I need to be concerned about how many cores/processors are available to the VM as well. Do most VM platforms give you the option of limiting this?

推荐答案

在运行 vista 或更高版本的多核系统中,您可以设置 cpu 关联,强制浏览器仅在单核上运行

In multi core systems running vista or better you can set the cpu affinity forcing the browser to run only on a single core

例如

c:\windows\system32\cmd.exe /C start /affinity 1 notepad.exe

如今大多数机器上的独立内核并没有比几代以前快得多.也就是说,您会发现由于架构变化,缓存可能更大,而内存会更快,这两者都会产生显着差异.

Individual cores on most machines these days aren't significantly faster than a couple of generations ago. That said you will find that due to architecture changes the cache is probably larger and the ram will be faster both of which make a significant difference.

您是否考虑过从 ebay 或您当地的免费添加购买一台旧电脑.我怀疑让一名员工进行必要的研究、设置有限的 ram vm 并为主要浏览器添加核心绑定快捷方式等的工资成本会为您购买相当多的旧机器,并配有较旧的操作系统(如果您真的很幸运,所有最后的所有者都拥有间谍软件和浏览器工具栏,可以更准确地模拟最终用户的电脑)

Have you considered just buying an old pc from ebay or your local free adds. I suspect the cost in wages of having a member of staff do the necessary research, set up your limited ram vm and add core binding shortcuts for the major browsers etc would buy you a fair few old boxes, complete with older os (and if you're really lucky all the last owners spyware and browser toolbars for an extra accurate simulation of your end users pcs)

这篇关于在浏览器测试中减慢 CPU 以模拟较慢的计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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