Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Slow computer/browser performance for testing heavy javascript script

I am working on a javascript/html5 gif editor and i am wondering how can i test in a slower environment. It works great on my pc but since its using heavy javascript and algorithms i need to see if it works smoothly with a less powerful processor.

like image 786
keepwalking Avatar asked Mar 06 '13 17:03

keepwalking


2 Answers

I recommend setting up a virtual machine using VMware Player or VirtualBox. You can adjust attributes like processor speed, number of processor cores, and memory. This will help you test your code out in a slower environments.

like image 165
Vivin Paliath Avatar answered Sep 28 '22 01:09

Vivin Paliath


What an odd request! Usually people want things faster and faster.

  • Using a Virtual Machine is a good solve here. It allows you to allocate exactly how powerful the computer is, and might make a very suitable testing environment for you.
  • If you want inefficiency, look no further than Internet Explorer. You just need to make sure it supports your HTML5 and your JS.
  • Using older versions of some of the more capable browsers might be a good idea too.
  • Also, and this is a bit of a hack, opening your program several times in the same browser might be something to look into. It will hog up the RAM, and your processor will be under more stress and will not perform as well as it would in a normal situation.

Just thought I'd throw out every suggestion I could think of :)

like image 40
christopher Avatar answered Sep 28 '22 01:09

christopher