Skip to content Skip to sidebar Skip to footer

Is There A Way To Throttle Javascript Performance To Simulate A Slow Client

I am working on a site that uses jQuery and has a fair amount of javascript that is run using $(document).ready(). On my dev machine everything runs great but it's a pretty powerfu

Solution 1:

Under Chrome developer tools -> Timeline you now an option to throttle down the CPU, look for the dropdown:

Chrome CPU throttling

UPDATE:

Chrome(ium) changed in new versions, it is now under the Performance tab, and you have to click the settings button in the corner for this feature to show up:

Chrome new CPU throttling


Solution 2:

This might not be the best solution, but something that could definetely work is to run a virtual machine, there you could specify all hardware specs as long as they are lower than you real machine. Look at this post


Solution 3:

I would use a VM and just limit it's resources. If you are not a fan of virtual machines, then I would go find an old machine at a yard sale, thrift store etc. and use that as a testing platform. You can never patch it, fill it up with crappy malware laden programs and then it will be just like the experience for an "average user." :-)


Solution 4:

Run Folding@Home in the background to eat up the CPU.

If you have a multi-core processor, use Task Manager to limit IE to a single core, and perhaps also limit some CPU-intensive applications to the same core.


Solution 5:

Virtualisation is the answer! You may use VirtualBox, it's free. You can simulate a slower machine with it


Post a Comment for "Is There A Way To Throttle Javascript Performance To Simulate A Slow Client"