Performance test using the registrator

I am trying to use Protractor to get decent numbers from the terminal timing. I have tried using a protractor – but the time since then seems to really reflect the actual page load time. It says that the “program” metric is total time, but I see that the time it reports is much faster than what I actually see when I run the test manually.

I also tried to create my own timing Based on the controlFlow and all the promises, this is very difficult.

Have anyone done any performance tests with Protractor? Are there any good guidelines to follow when trying to gain time? Has anyone successfully implemented a timer?

You can use your own timers, just change them before and after the functions you want to measure Insert into the control flow:

var startTime;
browser.controlFlow().execute(function() {
startTime = Date.now ();
});
element(by.css('#startThing')).click();
element(by.css('#endThing')).getText( );
browser.controlFlow().execute(function() {
var endTime = Date.now();
var elapsed = endTime-startTime;
console.log( 'clicking the startThing until getText of the endThing = '+ elapsed +'ms);
});

I am trying to use Protractor to time numbers from the terminal Get decent. I have tried using a protractor-but the time since then seems to really reflect the actual page load time. It says that the “program” metric is total time, but I see that it reports more time than manual I actually saw that when I ran the test it was much faster.

I also tried to create my own timer, based on the controlFlow and all the promises, which is very difficult.

Has anyone done any performance testing with Protractor? Are there any good guidelines to follow when trying to gain time? Has anyone successfully implemented a timer?

You can use your own timer, just insert them into the control flow before and after the function you want to measure:

var startTime;
browser.controlFlow().execute(function() {
startTime = Date.now();
});
element(by.css('#startThing')).click();
element(by.css('#endThing')).getText();
browser.controlFlow(). execute(function() {
var endTime = Date.now();
var elapsed = endTime-startTime;
console.log('clicking the startThing until getText of the endThing = '+ elapsed +'ms);
});

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2619 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.