How to performance test an AngularJS Web Application? How to performance test an AngularJS Web Application? angularjs angularjs

How to performance test an AngularJS Web Application?


Although JMeter isn't capable of executing client-side JavaScript it can record relevant requests via HTTP(S) Test Script Recorder. Once recorded you should be able to combine all the standalone requests into one "aggregate" using JMeter's Transaction Controller

If this easy approach for some reasons doesn't play for you check out How to Load Test AJAX/XHR Enabled Sites With JMeter for more options and clues.


I use Chrome dev tools to do this kind of performance tests in web apps.I suggest you to read the Chrome Profiling docs (https://developer.chrome.com/devtools/docs/javascript-memory-profiling). All the section of Performance and Profiling in goolge documentation is really good!


You can try to use the option 'Use as Monitor' for the requests you fire up from your test.

http://jmeter.apache.org/usermanual/build-monitor-test-plan.html

They are performance killers, though. Another option is to use the listener 'Save Responses to a File' to see if the end HTML is delivered. It should not give you the ideal result but it might help.

If you want to track down performance of XHRs for a single user, you can try to play with Selenium and BrowserMob Proxy, but it is not under the stress testing, but functional testing.