How to emulate a slow client (browser)?
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 m开发者_如何学JAVAaybe 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?
You could create a virtual machine with very limited memory, or just purchase a crappy PC. They wont cost that much!
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.
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.
The browser may have relevant options.
For instance, Firefox has:
javascript.options.jit.content
– set it tofalse
;javascript.options.mem.gc_frequency
– set it to a lower number.
精彩评论