Created
May 31, 2012 18:55
-
-
Save atdt/2845407 to your computer and use it in GitHub Desktop.
hashing test.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function iter( iters ) { | |
| values = mw.config.values; | |
| iters = iters || 100000; | |
| var hits = 0; | |
| for ( var i = 0; i < iters; i++ ) { | |
| values['wgArticleId'] = i + ''; | |
| if (isEligible()) { | |
| hits++; | |
| } | |
| } | |
| return ( hits / iters ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment