Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// based on methodology developed by PPK:
$.benchmark = function(times, result_selector, func){
var startTime = new Date().getTime();
while (times != 0){
setTimeout(function () {
var endTime = new Date().getTime();
var result = (endTime-startTime)/1000;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.