问题
Is there any way to slow down the responsiveness of the client (browser)?
One of our testers can reproduce slowness on his machine. His machine is low enough spec and is similar to many real customers. We have a fat client, javascript heavy, alot of event processing. We fear there maybe a regression but it's unreporoducable on developer machines.
The issue is text entry on input controls, tabbing around the app would appear to get delay and the text entry sometimes omits the first character typed by the user.
Development cannot reproduce, is there any way to slow down the client or the browser?
回答1:
The browser may have relevant options.
For instance, Firefox has:
- javascript.options.jit.content – set it to
false
; javascript.options.mem.gc_frequency
– set it to a lower number.
回答2:
You could create a virtual machine with very limited memory, or just purchase a crappy PC. They wont cost that much!
回答3:
Run something like HyperPI on the machine to slow it down: http://files.extremeoverclocking.com/file.php?f=211 (simple, unelegant solution)
Or run Crysis in the background.
回答4:
If you have the windows SDK installed, you can use the consume.exe tool to generate load on the machine.
It can generate CPU/memory/disk/page file/kernel pool load.
来源:https://stackoverflow.com/questions/5117884/how-to-emulate-a-slow-client-browser