jQuery Benchmark Tool : Measure time it takes to execute JavaScript code

Recommend this page to a friend!
     
  Info   Example   View files Files   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 54 All time: 495 This week: 17Up
Version License JavaScript version Categories
jquery-benchmark 1.0MIT/X Consortium ...5jQuery, Performance
Description 

Author

This is a jQuery plugin that measures the time it takes to execute JavaScript code.

It can take a given function and measures the time it takes to execute.

Innovation Award
JavaScript Programming Innovation award winner
January 2017
Winner
Benchmarking is important to detect if your code is running too slow, so you can focus on optimizing parts that can make it faster and your applications become more user friendly.

This package provides means to measure the time JavaScript code takes to execute.

Manuel Lemos
Picture of Emil Kilhage
  Performance   Level  
Name: Emil Kilhage <contact>
Classes: 5 packages by
Country: Sweden Sweden
Age: ???
All time rank: 1112 in Sweden Sweden
Week rank: 6 Up1 in Sweden Sweden Up
Innovation award
Innovation award
Nominee: 4x

Winner: 2x

Example

$.benchmark.disable(); plugin("jQuery - Benchmark"); module("$.benchmark", 10000); test("new $.benchmark()", function(i){ var test; while(i--){ test = new $.benchmark(); } }); test("$.benchmark()", function(i){ var test; while(i--){ test = $.benchmark(); } }); test("bench.start() -> bench.end()", function(i){ var test = new $.benchmark(); while(i--){ test.start().end(); } }); test("bench.mark(i)", function(i){ var test = new $.benchmark(true); while(i--){ test.mark(i).mark(i+"_", i); } }); test("bench.reset()", function(i){ var test = new $.benchmark(true); while(i--){ test.reset(); } }); module("$.benchmark.Test", 10000); test("new $.benchmark.Test()", function(i){ var test; while(i--){ test = new $.benchmark.Test(); } }); test("$.benchmark.Test()", function(i){ var test; while(i--){ test = $.benchmark.Test(); } }); test("test.start() -> test.end()", function(i){ var test = new $.benchmark.Test(); while(i--){ test.start().end(); } }); test("test.start(i) -> test.end(i)", function(i){ var test = new $.benchmark.Test(); while(i--){ test.start(i).end(i); } }); test("test.reset()", function(i){ var test = new $.benchmark.Test(); while(i--){ test.reset(); } }); (function(){ var tests = [], o = 10, r = o, _test = new $.test(); while(o--) { tests.push(function(){}); } test("test.setup(), "+r+" functions", function(i) { var test = new $.test(); while(i--) { test.setup(tests); } }); test("test.add() without setup, "+r+" functions", function(i) { var test = new $.test(); while(i--) { test.add(tests, false); } }); _test.add(tests, false); test("test.run() without setting up or starting any tests, "+r+" functions", function(i) { while(i--) { _test.run(false); } }); }());

Details

jQuery - Benchmark

Info

  • MIT Licensed
  • Last Updated: 2011-02-19 02:54:00
  • Author: Emil Kilhage

www.glooby.com www.glooby.se


  Files folder image Files (8)  
File Role Description
Files folder imagetest (4 files)
Accessible without login Plain text file jquery-benchmark-suit.css Data Auxiliary data
Plain text file jquery-benchmark-suit.js Class Class source
Plain text file jquery-benchmark.js Class Class source
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (8)  /  test  
File Role Description
  Accessible without login Plain text file speed.js Example Example script
  Accessible without login Plain text file speed.php Data Auxiliary data
  Plain text file test.js Class Class source
  Accessible without login Plain text file test.php Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:54
This week:0
All time:495
This week:17Up
User Comments (1)
Tienes alguna version que no nesesite jquery???
7 years ago (Marta Fernandez)
80%StarStarStarStarStar