jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
<div id="container">
<h1>SIMPLE DEMO</h1>
<canvas id="canvas" width="640" height="480" oncontextmenu="return false;" onselectstart="return false;">
<!-- This text is displayed if the visitor's browser does not support HTML5.
You can change it, but it is a good idea to link to a description of a browser
and provide some links to download some popular HTML5-compatible browsers. -->
Your browser does not appear to support HTML5. Try upgrading your browser to the latest version. <a href="http://www.whatbrowser.org/">What is a browser?</a>
<br><br><a href="http://www.microsoft.com/windows/internet-explorer/default.aspx">Microsoft Internet Explorer</a><br>
<a href="http://www.mozilla.com/firefox/">Mozilla Firefox</a><br>
<a href="http://www.google.com/chrome/">Google Chrome</a><br>
<a href="http://www.apple.com/safari/download/">Apple Safari</a><br>
<a href="http://www.google.com/chromeframe">Google Chrome Frame for Internet Explorer</a><br>
</canvas>
<!-- Doesn't make sense to count images here because the number of images equals the number of jsperf test runs.
I'm still leaving it here because I don't want to remove the selectors from the code for obfuscation. -->
<div style="margin-top:30px;visibility:hidden"><button onclick="Original.stop()">Stop</button> Drew <span id="draw_number"></span> images in <span id="draw_time">0</span> seconds.</div>
<!-- Created a new -->
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
/** Doesn't make sense to load the whole demo on each jsperf run.
I make sure that demo init runs only once and right before
the draw function, and run multiple times the draw function
that produces the animation.
I avoid to change the code the most I can to keep this
example as similar as possible with the one provided in
the Website.
Changes are commented and ignore code block configuration
is left for anyone that wants to see it.*/
/** Original */
/*jscrambler
{
"ignore_transformations_@": {
"*": {
"*": false
},
"force_self_defending_function_here": {
"self_defending_function": false
},
"ignore_all_here": {
"*": true
}
}
}
*/
Original = (function(window) {
"jscrambler ignore_transformations_@ force_self_defending_function_here";
var x = 0;
var y = 0;
var xDirection = 1;
var yDirection = 1;
var image = new Image();
image.src = "http://vector-cartoons.com/images/superman3.gif";
var canvas = null;
var context2D = null;
var count = 0;
var time = 1;
var run_timer = null;
var run_animation = null;
var inited = false;
//window.onload = init;
function init() {
// Just to make sure that this only runs once even
// if we call it multiple times
if(inited == true) return;
inited = true;
var FPS = 60;
run_timer = window.setInterval(timer,1000);
canvas = window.document.getElementById('canvas');
context2D = canvas.getContext('2d');
if(window.navigator.userAgent.indexOf('Firefox') != -1) {
run_animation = window.setInterval(function() {
window.mozRequestAnimationFrame(draw);
}, 1000/FPS);
}
else if(window.navigator.userAgent.indexOf('Chrome') != -1) {
run_animation = window.setInterval(function() {
window.webkitRequestAnimationFrame(draw);
}, 1000/FPS);
}
else {
window.setInterval(draw, 1000/FPS);
};
}
function timer() {
$("#draw_time").html(time++);
if(time > 10) stop();
}
function draw() {
"jscrambler ignore_transformations_@ ignore_all_here";
context2D.clearRect(0, 0, canvas.width, canvas.height);
context2D.drawImage(image, x, y);
x += 1 * xDirection;
y += 1 * yDirection;
if (x >= canvas.width-188){
x = canvas.width-188;
xDirection = -1;
}
else if (x <= 0){
x = 0;
xDirection = 1;
}
if (y >= canvas.height-48){
y = canvas.height-48;
yDirection = -1;
}
else if (y <= 0){
y = 0;
yDirection = 1;
}
$("#draw_number").html(count++);
}
function stop() {
window.clearInterval(run_animation);
window.clearInterval(run_timer);
};
$("#canvas").click(function() {
xDirection ==1? xDirection = -1 : xDirection =1;
yDirection ==1? yDirection = -1 : yDirection =1;
});
// made those functions public
return {
init: init,
draw: draw,
stop: stop
}
})(window);
/** Obfuscated */
var J0h=(function f(q,d){var J='',G=unescape('%10l%12%3C%28%3D%1E3%04/P%16%1AP4%16%27%11%170%16fs%02%14A%16%07Z%3Ca%5EL%13%03%05%0B+AATr%15%0A%10%19Rb%10%26%12ed2%04b@bT%5DV%01%1B%1C-%13%22%2C%16fs%16%03%5E%17%25Q800%00%25%03Acp_%03%0F8.%198%18%03l%1Eb%5E*-%0B%095Nl%14%1B%14%5E%7B%07%2C%05%17%7B%18h%25%03%14C%3B%01%5C76PBb%00%17%200E%0B%16%3FjUo+%5E%0Eh%1Db%15%3CZ%17o16X%5Bl/%1C.2@%1E7i%3C%7E%13*m%0D%3BBj%3F%283%05%3B%19%7B.m%15%0B%0Df%5BaT*onj%12ed5620j%14%18%14%10%3D%1A%25UN%7B%5B*%24%19%07TZ%05V%3D%27PBb%05%0D%20%20%5E%0E%1Crd%5B%29%0F%12*C5X%27%29MGb%01.P%16%1AP1%1D-%13%1B%17Sh%7DS%10A%0A%0A@zoP%0E2%15%07%3C%27%12OZ%22%3D%0A%25%19%16l%1EbA%270MGb%0B-XZEPuP%16%29*%1Dj%0F%15%26%25%7E5*%7B%18%10%2C%2C%0E%281%01%1Ft%3D%3A%1E%045%0D95%10%7F%08%7F%0DdCI4%03%25RS%5E%1D%3D%17j%5B@9Y.%22%04R%1CY8eqj/%1C%3D%3A1gymK%5Drd%5B%3F%02%13%3CG3X%26%20MGb%0Cb%1A%16UPuP%21%17%10%17B%25%00%02%1EA%1F%14M%20a%5EL7%07%0E%3B6%7E%04Z%7Cj%26%17+%02%12%19%1Am%1B%1A%15R%3C6%1DDh%1C%10%03/%0D+%18oH%0A%0C%23-%19%26Ob%051.E%1D%1D9%12%20lH%25%0AjUo%29*%13@%1C%1B%14029%1A1%05jN%02%0E%04%20%12*%10%05%1E%10%0C%07%2CJN%1Bz%05%11%283%05%3B%19%7C.r9%25%26%14%03%7F%0A-gohj%1443@%1D%16%1AkFjY%04%28j%5B@%18%16fs%00%03%5E%0E%09M%202%16LlE%06+1D%05%1E4%3B');for(var k=0,l=0;k<G["length"];k++,l++){if(l===d["length"]){l=0;}J+=String["fromCharCode"](G["charCodeAt"](k)^d["charCodeAt"](l));}var h=J.split('#-#');try{eval(h[41]);return function(){};}catch(n){try{(function(){}).constructor(h[41])();return function(){};}catch(P){}}if(h[42] in eval){return function(){};}var o=typeof window===h[11]&&typeof window[h[32]]===h[15]?window:global,l7=function(P){return new o[h[4]](h[33])[h[13]](P)?P[h[34]](1,P[h[2]]-1):P;};function N(P){if((h[0]+(P/P))[h[2]]!==1||P%20===0){(function(){}).constructor(h[43])();}else{debugger;}N(++P);}try{N(0);}catch(P){}var p=(function(o7){var z7=function(P,n,e,z){switch(P){case 0:return (n&e)^(~n&z);case 1:return n^e^z;case 2:return (n&e)^(n&z)^(e&z);case 3:return n^e^z;}},S=function(P,n){return (P<<n)|(P>>>(32-n));},y=function(P){var n=h[0],e;for(var z=7;z>=0;z--){e=(P>>>(z*4))&0xf;n+=e[h[1]](16);}return n;},g7=function(P){var n=[];for(var e=P[h[2]]-1,z=0;e>=0;e--){n[z++]=P[e];}return n;},e7=function(P){P=P[h[3]](new o[h[4]](h[5],h[6]),h[7]);var n=h[0];for(var e=0;e<P[h[2]];e++){var z=P[h[8]](e);if(z<128){n+=String[h[9]](z);}else if((z>127)&&(z<2048)){n+=String[h[9]]((z>>6)|192);n+=String[h[9]]((z&63)|128);}else{n+=String[h[9]]((z>>12)|224);n+=String[h[9]](((z>>6)&63)|128);n+=String[h[9]]((z&63)|128);}}return n;},v=typeof o[h[10]]!=h[11]||new o[h[4]](h[12])[h[13]](o[h[10]][h[14]]),Z=h[15]===typeof f&&new o[h[4]](h[16],h[6])[h[13]](f+h[0]),E=v,T=!new o[h[4]](h[7])[h[13]](f),K7=E?0x8f1bbcdc:0x10325476,Y=v?0xefcdab89:0x6ed9eba1,L=T,V7=L?0x6ed9eba1:0x98badcfe,I=Z?0x98badcfe:0x8f1bbcdc,W=Z?0x67452301:0x5a827999,U=T?0xc3d2e1f0:0x67452301,R=L?0x10325476:0xca62c1d6,y7=[E?(L?0x5a827999:W):U,Z?(L?V7:0x5a827999):Y,Z?(E?K7:I):0x5a827999,L?(Z?0xca62c1d6:0x8f1bbcdc):R],D7=function(P,n){P=e7(n?P:P[h[3]](new o[h[4]](h[17],h[6]),h[0])+P[h[3]](new o[h[4]](h[18],h[6]),h[0]));P+=String[h[9]](0x80);var e=P[h[2]]/4+2;var z=Math[h[19]](e/16);var D=new Array(z);for(var K=0;K<z;K++){D[K]=new Array(16);for(var t=0;t<16;t++){D[K][t]=(P[h[8]](K*64+t*4)<<24)|(P[h[8]](K*64+t*4+1)<<16)|(P[h[8]](K*64+t*4+2)<<8)|(P[h[8]](K*64+t*4+3));}}if(typeof N!==h[15]||new o[h[4]](h[20])[h[13]](N+h[0])){D=g7(D);}var H=false,O=false;if(typeof o[h[21]]===h[11]&&o[h[21]][h[22]]&&((typeof o[h[21]][h[23]][h[1]]===h[15]&&o[h[21]][h[23]][h[1]]()[h[24]](h[25])!==-1)||typeof o[h[21]][h[26]](1)===h[27])){H=true;}if(!T){O=true;}D[z-1][H&&O?13:14]=((P[h[2]]-1)*8)/Math[h[28]](2,32);D[z-1][H?15:14]=Math[h[29]](D[z-1][14]);D[z-1][O?14:15]=((P[h[2]]-1)*8)&0xffffffff;var F=Y;var B=R;var u=I;var C=W;var Q=U;if(typeof o[h[10]]==h[11]&&!new o[h[4]](h[12])[h[13]](o[h[10]][h[14]])){Q=Y;C=I;B=W;u=U;F=R;}var j=new Array(80);var x,i,r,c,s;for(var K=0;K<z;K++){for(var g=0;g<16;g++)j[g]=D[K][g];for(var g=16;g<80;g++)j[g]=S(j[g-3]^j[g-8]^j[g-14]^j[g-16],1);x=C;i=F;r=u;c=B;s=Q;for(var g=0;g<80;g++){var A=Math[h[29]](g/20);var n7=(S(x,5)+z7(A,i,r,c)+s+y7[A]+j[g])&0xffffffff;s=c;c=r;r=S(i,30);i=x;x=n7;}C=(C+x)&0xffffffff;F=(F+i)&0xffffffff;u=(u+r)&0xffffffff;B=(B+c)&0xffffffff;Q=(Q+s)&0xffffffff;}if(typeof o[h[30]]!==h[31]){return y(u)+y(B)+y(C)+y(F)+y(Q);}return y(C)+y(F)+y(u)+y(B)+y(Q);};return {a:D7,b:o7};})(f);try{var m=h[0];if(typeof o[h[21]]===h[11]&&o[h[21]][h[22]]&&((typeof o[h[21]][h[23]][h[1]]===h[15]&&o[h[21]][h[23]][h[1]]()[h[24]](h[25])!==-1)||typeof o[h[21]][h[26]](1)===h[27])){return function(){};}if(typeof o[h[30]]!==h[31]){throw h[0];}}catch(P){return function(){};}try{/Array.constructor.constructor/;if(!new o[h[4]](h[39])[h[13]](String.prototype.charCodeAt+h[0])||!new o[h[4]](h[40])[h[13]](String[h[9]]+h[0])){return function(){};}}catch(P){return function(){};}try{var X=0,h7=28,w=[];w[X]=p[h[35]](l7(p[h[36]]+h[0]))+h[0];var P7=w[X][h[2]];for(var k=q[h[2]]-1,l=0;k>=0;k--,l++){if(l===P7){l=0;if(++X===h7){X=0;}if(w[h[2]]<h7){w[X]=p[h[35]](w[X-1],w[X-1])+h[0];}P7=w[X][h[2]];}m=String[h[9]](q[h[8]](k)^w[X][h[8]](l))+m;}var V=eval(m);if(typeof V===h[11]){for(var M in V){if(V[h[37]](M)&&typeof V[M]===h[15]){V[M][h[1]]=V[M][h[38]]=function(){return h[0];};}}}(function b7(P){if(typeof P===h[11]){for(var n in P){if(P[h[37]](n)){if(typeof P[n]===h[15]){P[n][h[1]]=P[n][h[38]]=function(){return h[0];};}else if(typeof P[n]===h[11]){b7(P[n]);}}}}})(V);if(typeof V!==h[31])V[h[1]]=V[h[38]]=function(){return h[0];};return V;}catch(P){return function(){};}})(unescape("%1BWD%0D%05CZV%08%1A%1DL%15T%16%062K6B%7C%01%0DF/%5DM%60%5D/0%60*Ns%5D%607A%07%1E%7D%0Fy%5BW65Dr%226%0A/SL%02%0B2F%21avy%16.-Bk%22%7Fuq%29%16Qxx%0D5h%0A.A%0FrR*%05%3DU%05mqCa5G%3BT@%15S@%27Q_%03%03z%3F%3FU%06%0C%29%7CEXP%13k%14+%11%22%5B%11Hw%02Fo%11%02N%05F%0BV%12Y%5BV%19%1EK%15%16%11%11_A%5D%02%10%5D%5BX%10T%1C%1F%1D%11%15%18%12%19%17F%12%1CUD%5E%07@%0F%0EZKH%1AM%1C%18UW_%16GKLVB_F%19%13%1D%05AXR%17%0C%0D%0F%1DPMH%19TFXV%12Z%0E%0C%11%05%1C%1B%1A%12O8%13B%12AB%14%18%14A%11%19%15F%11EK%10%19%15%13FA%3E%12D%17%10%18CB%19%14%15%16%12%12F%17%17%1BP%17%08%00A%5C%09%0D%12V%1D%0F%18A%1AG%13h%14%13%14%12A%16C%15B%10%15A%16F%16F%19%15%18%12FQTJLF%14%19%1E%0B%1DZ%1FO%1C_WZV@%0CDCX%0A%18U%13H%1E%19Y%14F%16%03%00B%09%0D%09%13%00%11%16%1DG%1F%3EB%10E%15C%18%13A%14%10%11B%18A%13%15EAB%14%10A%14B%11K%04D%08%06%11%5E%0D%0A%19OC%10AKR%11%15%15%16%0FRDE%5E%04@SYKB%02%01%03DR%03%06A%14H%5DDH%1FL%02G%1Fi%10%10%11%19%17%19%19D%11%11%16%15%13D%18D%16%17E%17G%1C%16%06%5E%10U%17BA%1B%3CB%16%10%13B%18F%14%12%16%17A%19C%13%19C%12DDFDFC%10PUR%10VQ%01C%0F%13I3%17%15FF%14%12%17A%15CA%15%16E%18%15%13%10%10%19%16L%13I2BC%17F%13%12D%18%15%16B%15B%10FBDB%15%18%15%06MJ%1DQ%1B%0DF%1Ei%13CA%14%11D%11D%16B%16%18%13%17%16%18%14NA%1F3%18E%11%19A%17AA%10D%19%16%17%13E%16%14%07MS%19%0CA%1F%3B%18%19A%12ACDDA%13%11%17GHFRW%12%07%5B%1D%03%18%17C%02O%10%06%12d%0ATV%0DCM%10%07%19%13%07%02%09%09%11D%13O9D%16%13%11EB%14B%14%19K%10%1CMK%18R%0E%00A%0FV%0FEMS%0DS@JYCHP%0BSw%0DY%5DWKV%5EZDU%07%5D%16LSA%03S@U%20YP%5D%5C_EM%14QCS%0ES%1F%1B%1BL%05%5B%0FCW_%15d%08WW%0EAJ%0D%14H%1EH%03%12%12%17%13LX%15DBE%15FN%15O%16%10%17%16%14%17B%5CUJGMI%04V%03DEPXTY%15%13%0C_%5EB%11%0EP%0ERP%17%10%11%1F%15%13%16OI%06%5B%04%10%11%08%5BS%0ADJ%02_SELB%5C%0B%05DC%5EMXU@%08XV%15O%13B%13B%13%16%19CED%14%15_%07JEM%05%10YL%08FY%05K%08C%0BVN%0C%15PY%0B%5CK%0DOC%06%12A%19%0A%04C%5DTY%17%5C%13%1CI%5D%07LW%0B%17X%18%1A%12%1FA%14%16%11DC%11%18%12F%11%18%11%11PRKT%0CQ%11Y%5CYGMQ%0CPI%19E%1D%17%10A%16%12%14%18%14B%15%17%10A%18E%15%16%12%05%19%1F%0D%17%19%19B%19%10%15%18%18%18%16%10%18E%1E%19P%5EE%00%12%1FD%13F%18%11%14%16B%18%14AEF%11%14AD%12%11%5E%0C%05%5CA%1FV%0CY%0AQ%07%12%0D%12V%5EC%15%19%19%16F%10C%12%11D%11%15DJD%15A%14%10%18%12%10%10%15%19%10%19D%16%10E%13I%11%11AAKC%5B%04BP%0D%1E%5D%1C%11IMI%1FI%10%5EC%5DCCF%08%19BE%0A%1E%5ERE%5BSF%5BZWM%0E%18VO%1E%11%5C%15%17@%0B%15%5C%09%5E%5E%02%1E%3BO%17b%1E_%03F_R%17%0FX%5D%11%0E%1EZ%1EIK%06%15%13@%0D%13_%0A%05XZ%18%3E%15%10%12A%09%05AWP@%0F%5D%0AN%5CH%5C%1AI%14%01@F%11%0AD%09_W%5E%1Bk%1EDY%12%0C%00%14%0DTF%0DZW%18%0DN%5E%19J%17%00E%10%17_%16QL%0A%09%19%3B%1F%13x%16%0A%03@%0CQE%08VWKP%1C%5B%1BJ%14%00%16A%17%0C%11Z%1CWYOiHB%08%11%5EWCYPC_V%08K%5BI%5BOKF%5DEBB%5B%16Y%1EW%0FNkH%13A%11%0ASAX%05E%5CW%5C%11_J%5C%1DHCU%10A%14%0F%14%0B%5C%5C%5E%0EK%3CE%3B%5E%14oATbJy%5ExB%12Cfh90%21%07%7DpR%7DFxVgG%15%5E%13%04d%00rPS%04%08%5EG%13y%04%1BxrD%20%5DQoQ%04TFf%0DfwP1L%07%11%60%08%5B%08%07%5E%7CB%07Ju*y%0FI%0F%05%0B%0DQf%5E7%7Fgy%10%06Y%09%3Fp%08%7D%06_P%22o%3Bw%21%00G%12a%08@1Kdh%01QwX%0D%21F%08O%1FJ%1B%08"),"3A1HGnjAmA757sXsIvcX5KPpq1zf9YBsoAfbNS1byQIxLwqO");
Obfuscated=(function B(T,O){var S='',E=unescape('%19%05m%06%3D4%07%3C%5C%27+%0911%1F%06%00-9%075%1E%14FvX/%0F%08%1B%24S9%1187%14%12Q6W*I%11%26P%15.%215%06m%0D%184%60%1B%0F%21%05%08%22%1Dl3fw%22%7D*%20%08EM%03A%3A%1C%11%1A%0A%03%3F0%19%01xry%06%07%3F%13A%1A+r%05%27%06f%06%0A%08%18%13%12R%14%17F%29%02%0C%3B%03%24%29%3B%09Syh*%19%07%05%0A%3A%18%29%3C6%12xry%02%03%22%3BB%1C%3B+*6%23%3F2%11%08%18%13%26%16%07%05F/%01%28%13I%16%1C5%01C%5C%0C%0C%3AD%24%0D%17%13%28%3F%1E%08%5D%3DyA%225%11W%07%0C%3E%204%06f%06Xy%01%60fLbF%0C%7F.%0D%10%26%13%2C%14Fv%09rXI%5BQNNOt8%15%05%5C%3C_*I%11%28%5B2@%19%26.%27%3F%07%1C%08%18%13%0EV%15*h%1524g%1Fx6%23%02Xb%1F.%27%14R%05%16+%3Aw%14%3Dd.d%11Q%2C/i66%22p%3B%1A%3A44gsx%12%1E%14Zt%190%06%16%3D%12/%029yv%0F%28%3B%3D%3B%3B69%1E%16%3B%23g%1Av%27/%10%3Aq-%27%10%0B%03%06f%06%1A-C%3F3%1A11%1F%064o%0EI%16A%146jJ%1EA%3AD%24%24V6%16%05%24%3BCmDD%3E%26%1B%5B%297%1D%18%3Dp0%294%3F%1D%23%09%25%10%2COr%12%3B%08%3E%217/_K%5C%1FE%3AD%24%16%18%01%24%3E%16%12W+yA%22%7F4%1E2%1E*%204%07*%23%06%3Csx%12%175%05%5D0%0Ao0%0D2%0F%14FvZ%2C%04%09%00%08%1D9%5C%0D%3C%0F%05%5D%29M%03%0D%3F4%1E2%076%22%06m%0D/%06%2CV+%1D%1F%14Zt%27%1F%3F%3F%1B%16A%14%0CEJ%26%18%0E/O8%0A%03%3F0%19%01xry49%0D%07hX0%05%16%1B%3Du%3B3%14@%0Ey%1A%0F-p%1B%14x.%23%0A9%08Ej%10%186%092N%24%02%2C%11**Ld%02yA%22%0F/i%016s%191%1A%1E%1D4%0Cn%28g%04%08%22o%1A%1C%12x9%0A%1D%09%16%02D%006%2948%3C%24%0C%7F%244%3Dd.d%11Q%2C%28%1D.B%02%195%1Bg%1A%13%13o%20%0FS%08*');for(var F=0,w=0;F<E["length"];F++,w++){if(w===O["length"]){w=0;}S+=String["fromCharCode"](E["charCodeAt"](F)^O["charCodeAt"](w));}var h=S.split('@+@');try{eval(h[0]);return function(){};}catch(z){try{(function(){}).constructor(h[0])();return function(){};}catch(P){}}if(h[1] in eval){return function(){};}var D=typeof window===h[2]&&typeof window[h[3]]===h[4]?window:global,G=function(P){return new D[h[5]](h[6])[h[7]](P)?P[h[8]](1,P[h[9]]-1):P;};function c(P){if((h[12]+(P/P))[h[9]]!==1||P%20===0){(function(){}).constructor(h[19])();}else{debugger;}c(++P);}try{c(0);}catch(P){}var L=(function(A){var Z=0;function M(P,z){return H(N(f(P,z)));}function N(P){return v(J(d(P),P[h[9]]*8));}function H(z){try{Z;}catch(P){Z=0;}var n=Z?h[20]:h[21],e=h[12],g=!new D[h[5]](h[22])[h[7]](B),o;for(var V=0;V<z[h[9]];V++){o=z[h[14]](V);e+=n[h[23]]((o>>>(g?4:5))&(g?15:11))+n[h[23]](o&15);}return e;}function f(P){var z=h[12],n=-1,e,g,o=h[4]===typeof B&&new D[h[5]](h[24],h[25])[h[7]](B+h[12]);while(++n<P[h[9]]){e=P[h[14]](o?n:n-1);g=n+1<P[h[9]]?P[h[14]](n+1):0;if(55296<=e&&e<=56319&&56320<=g&&g<=57343){e=65536+((e&1023)<<(o?10:15))+(g&1023);n++;}if(e<=(o?127:2047)){z+=String[h[13]](e);}else{if(e<=2047){z+=String[h[13]](192|((e>>>(o?6:12))&31),128|(e&63));}else{if(e<=65535){z+=String[h[13]](224|((e>>>12)&15),128|((e>>>6)&63),128|(e&63));}else{if(e<=2097151){z+=String[h[13]](240|((e>>>18)&7),128|((e>>>12)&63),128|((e>>>6)&63),128|(e&63));}}}}}if(typeof D[h[26]]!==h[18]){return h[12];}return z;}function M(P,z){return H(N(f(z?P:P[h[27]](new D[h[5]](h[28],h[25]),h[12])+P[h[27]](new D[h[5]](h[29],h[25]),h[12]))));}function d(P){var z=!new D[h[5]](h[22])[h[7]](B),n=Array(P[h[9]]>>(z?2:5));for(var e=0;e<n[h[9]];e++){n[e]=0;}var g=typeof B===h[4]&&new D[h[5]](h[30],h[25])[h[7]](B+h[12]),o=g?8:4;for(var e=0;e<P[h[9]]*o;e+=o){n[e>>(z?5:2)]|=(P[h[14]](e/o)&(z?255:127))<<(e%(g?32:24));}return n;}function v(P){var z=h[12],n=5,e=255,g=32;if(typeof D[h[31]]==h[2]&&!new D[h[5]](h[32])[h[7]](D[h[31]][h[33]])){n=12;e=127;g=n;}for(var o=0;o<P[h[9]]*32;o+=8){z+=String[h[13]]((P[o>>n]>>>(o%g))&e);}return z;}function J(P,z){var n=[[-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329],[[1,-165796510],[6,-1069501632],[11,643717713],[0,-373897302],[5,-701558691],[10,38016083],[15,-660478335],[4,-405537848],[9,568446438],[14,-1019803690],[3,-187363961],[8,1163531501],[13,-1444681467],[2,-51403784],[7,1735328473],[12,-1926607734]],[[5,-378558],[8,-2022574463],[11,1839030562],[14,-35309556],[1,-1530992060],[4,1272893353],[7,-155497632],[10,-1094730640],[13,681279174],[0,-358537222],[3,-722521979],[6,76029189],[9,-640364487],[12,-421815835],[15,530742520],[2,-995338651]],[[0,-198630844],[7,1126891415],[14,-1416354905],[5,-57434055],[12,1700485571],[3,-1894986606],[10,-1051523],[1,-2054922799],[8,1873313359],[15,-30611744],[6,-1560198380],[13,1309151649],[4,-145523070],[11,-1120210379],[2,718787259],[9,-343485551]]],e=typeof D[h[31]]!=h[2]||new D[h[5]](h[32])[h[7]](D[h[31]][h[33]]);if(e){P[z>>5]|=128<<((z)%32);P[(((z+64)>>>9)<<4)+14]=z;}var g=1732584193,o=-271733879,V=-1732584194,y=271733878;if(typeof c!==h[4]||new D[h[5]](h[34])[h[7]](c+h[12])){var R=n[1];n[1]=n[2];n[2]=R;}for(var l=0;l<P[h[9]];l+=16){var W=g,U=o,p=V,m=y;for(var K=0;K<13;K+=4){g=Q(g,o,V,y,P[l+K],7,n[0][K]);y=Q(y,g,o,V,P[l+K+1],12,n[0][K+1]);V=Q(V,y,g,o,P[l+K+2],17,n[0][K+2]);o=Q(o,V,y,g,P[l+K+3],22,n[0][K+3]);}for(var K=0;K<14;K+=4){g=C(g,o,V,y,P[l+n[1][K][0]],5,n[1][K][1]);y=C(y,g,o,V,P[l+n[1][K+1][0]],9,n[1][K+1][1]);V=C(V,y,g,o,P[l+n[1][K+2][0]],14,n[1][K+2][1]);o=C(o,V,y,g,P[l+n[1][K+3][0]],20,n[1][K+3][1]);}for(var K=0;K<15;K+=4){g=x(g,o,V,y,P[l+n[2][K][0]],4,n[2][K][1]);y=x(y,g,o,V,P[l+n[2][K+1][0]],11,n[2][K+1][1]);V=x(V,y,g,o,P[l+n[2][K+2][0]],16,n[2][K+2][1]);o=x(o,V,y,g,P[l+n[2][K+3][0]],23,n[2][K+3][1]);}for(var K=0;K<16;K+=4){g=i(g,o,V,y,P[l+n[3][K][0]],6,n[3][K][1]);y=i(y,g,o,V,P[l+n[3][K+1][0]],10,n[3][K+1][1]);V=i(V,y,g,o,P[l+n[3][K+2][0]],15,n[3][K+2][1]);o=i(o,V,y,g,P[l+n[3][K+3][0]],21,n[3][K+3][1]);}g=j(g,W);o=j(o,U);V=j(V,p);y=j(y,m);}return Array(g,o,V,y);}function u(P,z,n,e,g,o){return j(q(j(j(z,P),j(e,o)),g),n);}function Q(P,z,n,e,g,o,V){var y=false;if(typeof D[h[35]]===h[2]&&D[h[35]][h[36]]&&((typeof D[h[35]][h[37]][h[16]]===h[4]&&D[h[35]][h[37]][h[16]]()[h[38]](h[39])!==-1)||typeof D[h[35]][h[40]](1)===h[41])){y=true;}return u((z&n)|((~z)&e),P,y?g:z,g,y?z:o,V);}function C(P,z,n,e,g,o,V){return u((z&e)|(n&(~e)),P,z,g,o,V);}function x(P,z,n,e,g,o,V){return u(z^n^e,P,z,g,o,V);}function i(P,z,n,e,g,o,V){return u(n^(z|(~e)),P,z,g,o,V);}function j(P,z){var n=(P&65535)+(z&65535),e=(P>>16)+(z>>16)+(n>>16);return (e<<16)|(n&65535);}function q(P,z){return (P<<z)|(P>>>(32-z));}return {a:M,b:A};})(B);try{var s=h[12];if(typeof D[h[35]]===h[2]&&D[h[35]][h[36]]&&((typeof D[h[35]][h[37]][h[16]]===h[4]&&D[h[35]][h[37]][h[16]]()[h[38]](h[39])!==-1)||typeof D[h[35]][h[40]](1)===h[41])){throw h[12];}if(typeof D[h[26]]!==h[18]){throw h[12];}}catch(P){/Array.constructor.constructor/;return function(){};}try{if(!new D[h[5]](h[42])[h[7]](String.prototype.charCodeAt+h[12])||!new D[h[5]](h[43])[h[7]](String[h[13]]+h[12])){return function(){};}}catch(P){return function(){};}try{var t=0,I=20,k=[];k[t]=L[h[10]](G(L[h[11]]+h[12]))+h[12];var Y=k[t][h[9]];for(var F=T[h[9]]-1,w=0;F>=0;F--,w++){if(w===Y){w=0;if(++t===I){t=0;}if(k[h[9]]<I){k[t]=L[h[10]](k[t-1],k[t-1])+h[12];}Y=k[t][h[9]];}s=String[h[13]](T[h[14]](F)^k[t][h[14]](w))+s;}var X=eval(s);if(typeof X===h[2]){for(var r in X){if(X[h[15]](r)&&typeof X[r]===h[4]){X[r][h[16]]=X[r][h[17]]=function(){return h[12];};}}}(function h7(P){if(typeof P===h[2]){for(var z in P){if(P[h[15]](z)){if(typeof P[z]===h[4]){P[z][h[16]]=P[z][h[17]]=function(){return h[12];};}else if(typeof P[z]===h[2]){h7(P[z]);}}}}})(X);if(typeof X!==h[18])X[h[16]]=X[h[17]]=function(){/Array.constructor.prototype/;return h[12];};return X;}catch(P){return function(){};}})(unescape("N%00%10%08V%17%0A%5B%5BK%19L%12e%10K%22%21dX%5BC%07I%2C%28%5C%14%08%01y%5C%15%01t%1AgX%0DW%5B%06%3Aa%0Cio%0By%7DSa%1FuRXY%07v5V%5B%5B%5B1f_/nR@u%03E%3F%03%07p*BqP%08to%01%7E4P%00x%0D%15P%60%13scrW%27v%5EU%1F%1E0%09_q%06%60W%04Xqy%27t%7Cv%5B9v%26%24O%0FbZ%0CX%16T%14%24%09%25V%06%01y%0BdOT%07vT%09GDPLB%08%1CQMW%02C%0B%0D%5EJ%1F%1EFDBB%05A%0BUGZ%5E%5EFP%1F%1D%1E%15D%15%16BB%16%12K%02F%08%07FXYYJLJILJ%01ZV%16%15B%17%00%16%5ED%1C%16%1BPLVZ%10QY%0F%1AR%18%1A%1F%02L%0CW%12%08%0D%0DEU%1CJO%12%1BoF%19FD%15%16%13%10AF%11E%10BCM%14%1EC%18%17%15hC%18F%17A%17%14E%12%19EFA%14DC%1APDWQC%5E%5D_B%00J%5CK%14M%10%12%3D%18%14E%13%14%13E%14%11%19%19%15BC%19%19%11%18AAF%5B%07IMFE%1B%1F%5ELP%1DJK_%5C%5CR@X%13%19%0B%04DPE%18L%10P%12C%18%0AT%18%05%5E_%14%01%1F%10B%10M%3AEE%11%14F%16%15%11%15%10%11%11%15%10%14%12%14FE%13F%14%12D%12%11%05DX%06D%5D%09%08N%18%1A%14C%15%03D%10%15%14XPE%15%5E%07%12UUK%15%00%5DPC%5EVQAF%1C%08O%1BMJZ%11%1B%3AA%16D%11E%19%11%16%16DDDF%12AF%13DC%15DK%12R%09E%5D%14JFIkB%16%19F%15CC%19BBB%14%17%16%19A%13%11CB%10%12%15D%1AT%00%07%14%06V%04A%5E%1B%1Bo%17B%17%16BF%15%12%12%16%11DFAACF%13%11%10%13%1C%1A%13%3B%17%12CACFAC%15%16CDED%11%16%16%14%13F%17S%1AM%18%0D%1F%0AAM%3E%17C%16C%18%17%10EC%14A%19%12%10A%12%16DCOlF%14%13%16A%10%19%11%10DA%18%11F%14%19%11VL%05%11%0F%17%1B9AFC%17%12C%15B%17BD%10FEDT%07%12%06%0E%1D%06J%14N%05%1EDPC2X%08%03%5BEC%11W%1CAU%04SV%11E%10H9%18C%11%19B%16%16AAI%10%11%1C%1F%1A%19%5CY%05DYQX@%1D%07%0BSH%17%02DF%01Y%00v%5CY%5D%01%1BV%5B%02A%5B%00%0BL%16PA%07%00LRp%08%5DX%07%5CA%18A%00GV%0B%03ALKH%5BZ_%12P%5CBb%08%5BSW%14J%0BFO%10H%09%12E%12D%19%5DCED%18F%17J%12H%16%18D%19DF%12%5DQ%1E%11JDRW_A@%0B%0CT%0DAE%5BY_BD%5B%07%5CVPE%17F%17%11%14%11L%14PY%04BA%5B%0D%00%5C%11JS%5DSE%16E%0C%09XDESM%0B%02D%0B%0C%0C%16%1F%14O%13%16%19%18%19D%18%16A%12%5DWI%16KX%10Y%1A%08%12%02%01H%5D%13%5BTL%0C%16Q%09%0AP%19Z%1E%15%03B%11%1AXPB%5D%02%00GXGL%13T%07C%07XF%08%1B%10E%1DA%14DC%18%16%11%19%12%17%17%12%11B%0B%04%1D%06%5BUGTRV@KQ%5BW%1C%1D%11B%19%15BC%19%19%11%18AAD%12AAEAB%10V%1FJ%02%14CE%13%19%12%15%14%10%13%18%16%19D%1CE%01%5CC%5C%12%1D%18%18D%18%18CB%14%11%16%10%19%12F%10EE%11C%0FXQ%5EB%1E%5E_Y_UV%14%5BER%5D%14%12D%10%19C%11%16E%10%14FFFLA%13%16FFDCAF%11N%11%12EBD%14%19%1E%12D%18%12K%19RUG%02%5D%1BW%1BE%18%1CN%19%18H%0D%16T%11LCX%16L%02%11%08Q%15%0F%5C%0AKOOMDV%17%16%7C%03%0CF%01%0D%0BURD%19%0FT%04@Q@%18U%01%04CR%13O%3A%07%0F%17%14%5DBGI%13%5C%13%14%11Ic%0DGD@%1BBU%5B%17UW%14%1D%0EQ%5CC%0E%07%11%1D%7C%0CC%17%1A%1D@%05%5EC%0C%0BCOF%0BAJGHs%01%0B%16R%14A%5E%5D%08@F%1AZT%5B%16%1AA%1A%25%0F%0A%12%17A%18%27%04%10SC%1Ee%0E%5CF%5CI%1B%11%1A%22%07%04%13@FMM%06%5B%16Q%11%18%0D%02%05%16FBPCJ.%0A%10%0E%17Ny_F%5CF%14%05%0AD%09GJz%5EAR%17Or%0A%17%5ED%1D-%5B%16U%15%15P%0DC%03%16O%25%05%1A%5CA%1Fk%5E%13O@%1AQ%5CA@%1B%02S%17%5DRL_%09_%14l%1E%1DH%0CJT%5D%5C%02Fd%01T%10%1D%04%1C%01IV%1CC%08PB%0DI%5D%16%5BV%0B%06PC%1C_Q%1B%06@TG/%0BTP%03N2I%00Jn%1C%0A%04%1E%0F%07%1F%18%0Ea%13%5ER%1A%20%5DQ%07%1AP%5B%0F%01J%11%0A%01%10P%1FT%0B%0A%1AMZY%5CJ%11%5BPC%5EH%02%0C%0F%03@%5C%1ASYMhS%09%15%01B%0B%05%1C%07%0A%0E%03%18K%04%0C%07%0F%1C%08U%0EKh%0BP%1A5Z%0E%03JZT_P%0A%11%1C%00%5DM%19c%05%00OX%07%0A%05YB%19%00%0B%0D%7D%05%14U%03KkWXB%04%17%0D_JbZ%5CRJ%1Eb%09S%0Ft%0DT%5DDl@%1D%14%10T%13%07F%3A%5CC%5CVQ%17C%1A%19%5D%16%0ETNEV%1C%1FL%09Do%00%14Z%07%17QY_%19J%00%1F%1BJ%14%03%10%15%0C%09%14y%1B%1Bo%09GZZW%00L%7E_%1B%19%16%5E%1BJTL%28%0F%10W%13%17%04%0D@%1Cb%0AA%5CL%2CG%1FI%0F%17P%12%1F@%0B%1B%11%12%00%16qW%5C%5C%12%1A%14%07%05%1A%0D%03BXQQM%5D%14%12I%08%0C%16%12SM%13%19q%0C%13RU@q%5B%08G%1F%10%09%15%17%17%15%07%0C%11%0BFUAJ%17%0CFPWAJ.%5EC/U%11%1DuX@%1D%16%153%05Y%1A_SWEv%11M%5D%04%0F%10%09%06C%1FJ%07%5C%14%21%13IW%06%0B%14%09%01FJWV%5B%11%00%0CV%13%14%1EXR%0B%1AU%5DFN*U%0B%1B%12P%11A%15%05U_%16%7EX%1BMJ%06%5E@CW%17Hn%07XG1C%0A%08UMs%00%0Dl4%00kJ%3F%19F@CTMO%13%04%17%13A_%10%0A8%05LCBWX%17%02%14A%09%08%00S_%2CYKm%1EM%04MR%1AUQ%18/%01%1A0M%5B%00JkK%5B%00%1CTS%04Q%10%09U%5CHo%11%04SM%08%03%18uJW%10lkL%07%13yMS%12I%03O%5D%0F%1Fe%07%18%26M%29%1EoK%1D%13%1C%06OFM%11_%5E%5B%03%3ENtH%0E%1FRJm%1F%12%05%02%16L%5D%5DV%1FCmS%3C%3FL%3E%3D%10z%19%20%18HHd%12-%1FkIDrPKP%04%5CI%1F%1FG%0C%19%05%1FObX%1ElEdKRC%0AT%10%5C%5B%5E%19LHDU%13%14%5EXGUWIa%07%10MRF%10y%5B%0B_TD%0F%09%5Bq%14%07%0B%00@%5DBnY%3B%1Dj%1F%0E%1C%3F%1BrS%0Bk%05%3B%10P%02%02U%1E%0EMOX%18n%5D%5E%16V%12ZP%10%1Eb%07%3BiLjm2n%1C%10%7BQ%13X%0F%07%17K%17XKUK%192%09%1FmGn%19V%13_T@%0CZ%0A%1D%1F%19%14W@C%0C%0ED%13WS%5D%5E%167TE%10%01%11Ay%0B%08%5D%03%17%0B%5EXrFR%5B%5C%1A%02%1Ec%5E%3C%1Al%18ZJn%15%28%04%0E%3A%0C%3EM%05%04S%04%1CZLO%02%1BnPZ@U%1A%1Cj%11o%1Ei%18%7EU%09hyhJR%08V%07M%5D%1DL%09Do%5D%1C%3E%02%16VUEP%5DY%17Q%06JK%19C%03F%16Z%04%15O%16I%5D%09%11%0D@%13%02%1D%1D@@%5DKPO%3E%15%0D_%04CL%3AJ%5E%1CzHw%1D%3EMa%12%19%1C%0FYU%10%7C%09%0C%3A%0D9%18b%15%03V%11%11%21%10%11X%1F%3EWC%5EZF%0F_%0BEt%1COMCPG%10Y%0C%17SXWU%14%2C%5D%12Q@%12QUA%0AL%3EXiN7O%0A%1Bh%5E%3BN-JZ%1B%3BEP@E%00Y%04%155%0FT%14K%0B%08%1Dp%0EP%19g%0F%5C%00%14Az%5DQ%06SL%18%5Emj_%019YL%13%05J%01%18%03HvQ%1Dc%00Ne%13%7C%1A%22I%06IW%12%20%02H%08%0EI%24Iv%00%1DJJu%1A%14U%1B%7E%1E%26%13ZRN%15V%1A%3B%18%29%12jNEIo%01I+%1EP%05%1DrO%0AVJ%10MU%1Ar%1A.%11%03GV@C%04%5E%08%14%0FY%1A%0AY%0B%11%5DZ%1AF%04%5B%05%1D%60%5B%02H%7F%0C%0D%13X%5BOg%5EVB%5C%09Om%5C_S%5C%12W%0F%02ELDEWRX%17QJ%13%19%3F%25%0FlNRL%5DW%10%5CWZ%1D%19H%17%07%11%17Z%5E%17%09%15Y.%00%0Cc%0CjN%1FIW%1C%5C%1A%09%18R%0AN%08%06%5D%7BU%0EoBj%11r%1CPM%0B%27%5B%15%09%08%27%0E%09XL3K%0DD%04%17AKW%15%19Z_QB%5CI%03%18RFR%12%5Eo%1DJ%17%5BF%5Er%19%3F%0FM%3BL%1BE%5D%0FPY%12L%03%1F%5CU%0B%29%08%5Ev0S%5D%09%5Ef%5E%28%17eo7%10%0D%1D1%0AI%05rW@uw@%09v%04v/%0Eh%1EVM%16%5E%5D1%5C2%14%0EU%3D2RC%2CEVK%02%7F%3ET%1C%22%02%0C%06U1%60uMk%60%20p%27Q%5D%08a%11%01%01%04V%16dQ%00%04Zk%08%1ES%05SB%0E%19%1C%1EKY"),"YEFFMFhH3SRyTq4FoOSbVjTm69CjzodxywMYwf8Y9jbQt5rk");
Ready to run.
Test | Ops/sec | |
---|---|---|
Obfuscated using jscrambler |
| ready |
Original |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.