Js-profiler is a project mainly written in JavaScript, based on the GPL-2.0, MIT licenses found.
A javascript library to profile and benchmark your javascript.
################## js-profiler README ##################
This javascript library will help you to profile and benchmark your javascript. It has no external dependencies. Tested with Firefox 3.5, IE7 and Chrome. It should also work on the other browsers.
This is at the state of Beta, but it is working. If you encounter any bug, please report them.
Include profiler.js in the page you want to benchmark.
If the function you want to benchmark is slow, use profiler.benchmark.benchmark_slow_function. It will execute your function the specified number of time. You will receive the report in the callback function.
profiler.benchmark.benchmark_slow_function(numberOfRepeat, "yourFunctionToBenchmark", function(func_name, report) {console.log(report);});
For the other functions you should better use the profiler.benchmark.benchmark_fast_function. It will try to execute your function as much as possible in 1 second. You will receive the report in the callback function.
profiler.benchmark.benchmark_fast_function("yourFunctionToBenchmark", function(func_name, report) {console.log(report);});
You may use this project under the terms of either the MIT License or the GNU General Public License (GPL) Version 2.
This has been (largely) inspired by :