Reputation: 8042
I have a web page with lots of JavaScript. I am supposed to optimize the performance of the page.
Ideally, I would like to set up an automated test which would hover around the page and click on a couple of things. Upon completing the test I'd like a profile of the JavaScript execution on the page. This way I can make changes and see if the page will run faster or not.
If I cannot meet this ideal goal, what is the best I can do in terms of automating and standardizing tests of performance for my webpage?
Upvotes: 2
Views: 773
Reputation: 3522
That's hard and someday I will make it part of my development routine. The only proven solution is continuous development practice:
Use automated JS tests together with build server
Good frameworks list for js testing you may find here
Your build server have to has support for client javascript execution, as soon as I know there is phantomJS script which has many integration with different build servers, for example with one of the well known Jenkins.
To be complete, you may use tools like Selenium instead of build server, but personally do not feel it is right way, though it may works good as well.
Upvotes: 1