bench.js
function compare(a, b, n) {
	var n2 = n,
		then = Date.now()
	while (n2--) {
		a === b
	}
	return (Date.now() - then) * 1e6 / n
}
function compare(a, b, n) {
	var n2 = n,
		then = Date.now()
	while (n2--) {
		a === b
	}
	return (Date.now() - then) * 1e6 / n
}
function compare ( a , b , n ) { var n2 = n , then = Date . now ( ) while ( n2 -- ) { a === b } return ( Date . now ( ) - then ) * 1e6 / n }
Compute a==b n times
@param {string} a
@param {string} b
@param {number} n
@returns {number} The time per comparison (in ns)
Compute a == b n times