javascript - How to measure client side performance in single page application -
we developed complex single page application based on sencha ext.js framework. there many "pages" in application changing dynamically without refreshing browser's url. user's interaction , content changing dynamically created , destroyed.
we want measure client side stability , performance along time. test should focus on client side behavior , responsiveness. don't need test server side response time - same response time granted during test.
all tools saw exists dealing xhr response time , based on load time per url not relevant on our case - because same url continuing , doing work along time.
any suggestion practice , tools kind of test?
thanks in advanced.
if think ajax monitoring , page load time not you, can suggest can use transaction monitoring. can done measuring time between 2 states or 2 pages.
to test locally, using console.time
:
console.time('page_name'); // goes here console.timeend('page_name');
using performance.now
var start = window.performance.now(); ... var end = window.performance.now(); var time = end - start;
using atatus service
if looking service, can try https://www.atatus.com/ helps measure between transactions in real time.
in atatus, can measure between transactions or states by
atatus.begintransaction("page_name"); ... atatus.endtransaction("page_name");
Comments
Post a Comment