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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 110 All time: 399 This week: 17Up
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
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
Picture of Tony L. Requena
  Performance   Level  
Name: Tony L. Requena <contact>
Classes: 1 package by
Country: Spain Spain
Age: 41
All time rank: 1599 in Spain Spain
Week rank: 6 Up2 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  
This week:0
All time:399
This week:17Up