texas.js
function () {
		var freq = new Int32Array(hands.length);
		var start = Date.now();
		for (var c1 = 1; c1 <= deckSize; c1++) {
			var r1 = evaluator[deckSize + c1 + 1];
			for (var c2 = c1 + 1; c2 <= deckSize; c2++) {
				var r2 = evaluator[r1 + c2];
				for (var c3 = c2 + 1; c3 <= deckSize; c3++) {
					var r3 = evaluator[r2 + c3];
					for (var c4 = c3 + 1; c4 <= deckSize; c4++) {
						var r4 = evaluator[r3 + c4];
						for (var c5 = c4 + 1; c5 <= deckSize; c5++) {
							var r5 = evaluator[r4 + c5];
							for (var c6 = c5 + 1; c6 <= deckSize; c6++) {
								var r6 = evaluator[r5 + c6];
								for (var c7 = c6 + 1; c7 <= deckSize; c7++) {
									var r7 = evaluator[r6 + c7];
									freq[r7 >> 12]++;
		}	}	}	}	}	}	}
		var finish = Date.now();
		var total = 0;
		for (var key = 0; key < hands.length; key++) {
			total += freq[key];
			console.log(hands[key] + ': ' + freq[key]);
		}
		console.log('Total: ' + total);
		console.log((finish - start) + 'ms');
	}
function () {
		var freq = new Int32Array(hands.length);
		var start = Date.now();
		for (var c1 = 1; c1 <= deckSize; c1++) {
			var r1 = evaluator[deckSize + c1 + 1];
			for (var c2 = c1 + 1; c2 <= deckSize; c2++) {
				var r2 = evaluator[r1 + c2];
				for (var c3 = c2 + 1; c3 <= deckSize; c3++) {
					var r3 = evaluator[r2 + c3];
					for (var c4 = c3 + 1; c4 <= deckSize; c4++) {
						var r4 = evaluator[r3 + c4];
						for (var c5 = c4 + 1; c5 <= deckSize; c5++) {
							var r5 = evaluator[r4 + c5];
							for (var c6 = c5 + 1; c6 <= deckSize; c6++) {
								var r6 = evaluator[r5 + c6];
								for (var c7 = c6 + 1; c7 <= deckSize; c7++) {
									var r7 = evaluator[r6 + c7];
									freq[r7 >> 12]++;
		}	}	}	}	}	}	}
		var finish = Date.now();
		var total = 0;
		for (var key = 0; key < hands.length; key++) {
			total += freq[key];
			console.log(hands[key] + ': ' + freq[key]);
		}
		console.log('Total: ' + total);
		console.log((finish - start) + 'ms');
	}
function ( ) { var freq = new Int32Array ( hands . length ) ; var start = Date . now ( ) ; for ( var c1 = 1 ; c1 <= deckSize ; c1 ++ ) { var r1 = evaluator [ deckSize + c1 + 1 ] ; for ( var c2 = c1 + 1 ; c2 <= deckSize ; c2 ++ ) { var r2 = evaluator [ r1 + c2 ] ; for ( var c3 = c2 + 1 ; c3 <= deckSize ; c3 ++ ) { var r3 = evaluator [ r2 + c3 ] ; for ( var c4 = c3 + 1 ; c4 <= deckSize ; c4 ++ ) { var r4 = evaluator [ r3 + c4 ] ; for ( var c5 = c4 + 1 ; c5 <= deckSize ; c5 ++ ) { var r5 = evaluator [ r4 + c5 ] ; for ( var c6 = c5 + 1 ; c6 <= deckSize ; c6 ++ ) { var r6 = evaluator [ r5 + c6 ] ; for ( var c7 = c6 + 1 ; c7 <= deckSize ; c7 ++ ) { var r7 = evaluator [ r6 + c7 ] ; freq [ r7 >> 12 ] ++ ; } } } } } } } var finish = Date . now ( ) ; var total = 0 ; for ( var key = 0 ; key < hands . length ; key ++ ) { total += freq [ key ] ; console . log ( hands [ key ] + ': ' + freq [ key ] ) ; } console . log ( 'Total: ' + total ) ; console . log ( ( finish - start ) + 'ms' ) ; }
Benchmarks the evaluator within all possible 7 card hands.
Benchmarks the evaluator within all possible 7 card hands .