Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
176
rated 0 times [  182] [ 6]  / answers: 1 / hits: 17551  / 11 Years ago, thu, june 27, 2013, 12:00:00

I'm experiencing the need to test the performance differences of some variants of code (native/with plugins).



Is there an online service, like jsbin, jsfiddle for execution, where I can put the code in,
like



// BEGIN
var bla;
jQuery.map(bla, function(){});
// END


and get execution time?


More From » performance

 Answers
7

One option is



jsperf.com



OR



//works in chrome and firefox
console.time(myCode); // 'myCode' is the namespace
//execute your code here
console.timeEnd(myCode);


OR



var startTime = window.performance.now();
//execute your code here
console.log(window.performance.now() - startTime);

[#77376] Wednesday, June 26, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
richardaydenc

Total Points: 148
Total Questions: 125
Total Answers: 98

Location: Seychelles
Member since Mon, Jun 28, 2021
3 Years ago
;