Icontem

Javascript Function Profiler: Measure the time a function takes to execute

Recommend this page to a friend!
  Info   View files Example   Demos   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2014-07-24 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 105 All time: 400 This week: 3Up
Version License JavaScript version Categories
function-profiler 1.0.0GNU General Publi...1.0Debug, Performance
Description Author

This object can measure the time a function takes to execute.

It takes a given function and calls it consecutively a given number of times.

The class returns the output of the function and the time that it took to execute the function in microseconds and milliseconds.

Innovation Award
JavaScript Programming Innovation award winner
July 2014
Winner
Sometimes it is necessary to optimize the performance of a given piece of JavaScript code.

This object allows to measure the time a function takes to execute many times, so you can evaluate more accurately if any optimizations have benefited the overall performance of the code of that function.

Manuel Lemos
  Performance   Level  
Name: Tony L. Requena <contact>
Classes: 1 package by
Country: Spain Spain
Age: 38
All time rank: 1599 in Spain Spain
Week rank: 10 Up1 in Spain Spain Up
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

  Demo 01 class.timeprofiler.jsExternal page  

Open in a separate window

  Files folder image Files  
File Role Description
Plain text file class.timeprofiler.js Class Main Class
Accessible without login Plain text file test.html Example Test File

 Version Control Unique User Downloads Download Rankings  
 0%
Total:105
This week:0
All time:400
This week:3Up