-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforwarding.js
1 lines (1 loc) · 4.52 KB
/
forwarding.js
1
var code=new Uint8Array([0,97,115,109,1,0,0,0,1,16,2,96,4,127,127,127,127,1,127,96,3,127,127,127,1,127,3,14,13,1,0,0,0,0,0,0,0,0,0,0,0,0,5,3,1,0,2,7,227,1,14,13,99,121,99,108,101,95,108,97,116,101,110,99,121,0,0,14,115,116,111,114,101,51,50,95,108,111,97,100,49,54,0,1,14,115,116,111,114,101,51,50,95,108,111,97,100,51,50,0,2,14,115,116,111,114,101,54,52,95,108,111,97,100,51,50,0,3,14,115,116,111,114,101,51,50,95,108,111,97,100,54,52,0,4,14,115,116,111,114,101,54,52,95,108,111,97,100,49,54,0,5,13,115,116,111,114,101,54,52,95,108,111,97,100,56,0,6,13,115,116,111,114,101,51,50,95,108,111,97,100,56,0,7,13,115,116,111,114,101,49,54,95,108,111,97,100,56,0,8,14,115,116,111,114,101,49,54,95,108,111,97,100,49,54,0,9,12,115,116,111,114,101,56,95,108,111,97,100,56,0,10,16,115,116,111,114,101,54,52,120,50,95,108,111,97,100,51,50,0,11,14,115,116,111,114,101,54,52,95,108,111,97,100,54,52,0,12,6,109,101,109,111,114,121,2,0,10,252,7,13,62,1,3,126,32,0,173,33,4,32,1,173,33,3,32,2,173,33,5,3,64,32,3,32,3,124,34,3,32,3,124,34,3,32,3,124,34,3,32,3,124,33,3,32,4,66,1,125,34,4,66,0,82,13,0,11,32,3,32,5,133,167,11,74,1,1,126,32,0,173,33,4,32,3,33,0,3,64,32,1,32,0,54,2,0,32,1,32,2,46,1,0,54,2,0,32,1,32,2,46,1,0,54,2,0,32,1,32,2,46,1,0,54,2,0,32,2,46,1,0,33,0,32,4,66,1,125,34,4,66,0,82,13,0,11,32,3,11,74,1,1,126,32,0,173,33,4,32,3,33,0,3,64,32,1,32,0,54,2,0,32,1,32,2,40,2,0,54,2,0,32,1,32,2,40,2,0,54,2,0,32,1,32,2,40,2,0,54,2,0,32,2,40,2,0,33,0,32,4,66,1,125,34,4,66,0,82,13,0,11,32,3,11,75,1,2,126,32,0,173,33,4,32,3,173,33,5,3,64,32,1,32,5,55,3,0,32,1,32,2,53,2,0,55,3,0,32,1,32,2,53,2,0,55,3,0,32,1,32,2,53,2,0,55,3,0,32,2,53,2,0,33,5,32,4,66,1,125,34,4,66,0,82,13,0,11,32,3,11,75,1,2,126,32,0,173,33,4,32,3,173,33,5,3,64,32,1,32,5,62,2,0,32,1,32,2,41,3,0,62,2,0,32,1,32,2,41,3,0,62,2,0,32,1,32,2,41,3,0,62,2,0,32,2,41,3,0,33,5,32,4,66,1,125,34,4,66,0,82,13,0,11,32,3,11,75,1,2,126,32,0,173,33,4,32,3,173,33,5,3,64,32,1,32,5,55,3,0,32,1,32,2,51,1,0,55,3,0,32,1,32,2,51,1,0,55,3,0,32,1,32,2,51,1,0,55,3,0,32,2,51,1,0,33,5,32,4,66,1,125,34,4,66,0,82,13,0,11,32,3,11,75,1,2,126,32,0,173,33,4,32,3,173,33,5,3,64,32,1,32,5,55,3,0,32,1,32,2,49,0,0,55,3,0,32,1,32,2,49,0,0,55,3,0,32,1,32,2,49,0,0,55,3,0,32,2,49,0,0,33,5,32,4,66,1,125,34,4,66,0,82,13,0,11,32,3,11,75,1,2,126,32,0,173,33,4,32,3,173,33,5,3,64,32,1,32,5,62,2,0,32,1,32,2,49,0,0,62,2,0,32,1,32,2,49,0,0,62,2,0,32,1,32,2,49,0,0,62,2,0,32,2,49,0,0,33,5,32,4,66,1,125,34,4,66,0,82,13,0,11,32,3,11,75,1,2,126,32,0,173,33,4,32,3,173,33,5,3,64,32,1,32,5,61,1,0,32,1,32,2,49,0,0,61,1,0,32,1,32,2,49,0,0,61,1,0,32,1,32,2,49,0,0,61,1,0,32,2,49,0,0,33,5,32,4,66,1,125,34,4,66,0,82,13,0,11,32,3,11,75,1,2,126,32,0,173,33,4,32,3,173,33,5,3,64,32,1,32,5,61,1,0,32,1,32,2,51,1,0,61,1,0,32,1,32,2,51,1,0,61,1,0,32,1,32,2,51,1,0,61,1,0,32,2,51,1,0,33,5,32,4,66,1,125,34,4,66,0,82,13,0,11,32,3,11,75,1,2,126,32,0,173,33,4,32,3,173,33,5,3,64,32,1,32,5,60,0,0,32,1,32,2,49,0,0,60,0,0,32,1,32,2,49,0,0,60,0,0,32,1,32,2,49,0,0,60,0,0,32,2,49,0,0,33,5,32,4,66,1,125,34,4,66,0,82,13,0,11,32,3,11,109,1,2,126,32,0,173,33,5,32,3,173,33,4,3,64,32,1,32,4,55,3,0,32,1,32,4,55,3,8,32,1,32,2,53,2,0,34,4,55,3,0,32,1,32,4,55,3,8,32,1,32,2,53,2,0,34,4,55,3,0,32,1,32,4,55,3,8,32,1,32,2,53,2,0,34,4,55,3,0,32,1,32,4,55,3,8,32,2,53,2,0,33,4,32,5,66,1,125,34,5,66,0,82,13,0,11,32,3,11,87,1,2,126,32,0,173,33,4,32,3,173,33,5,32,1,41,3,0,26,32,2,41,3,0,26,3,64,32,1,32,5,55,3,0,32,1,32,2,41,3,0,55,3,0,32,1,32,2,41,3,0,55,3,0,32,1,32,2,41,3,0,55,3,0,32,2,41,3,0,33,5,32,4,66,1,125,34,4,66,0,82,13,0,11,32,3,11,0,36,16,115,111,117,114,99,101,77,97,112,112,105,110,103,85,82,76,18,46,47,114,101,108,101,97,115,101,46,119,97,115,109,46,109,97,112]),m=new WebAssembly.Module(code),instance=new WebAssembly.Instance(m,{});onmessage=function(_){for(var[$,e]=_.data,n=0;n<1e6;n++)instance.exports[$](8,0,4);for(var n=0;n<1e6;n++)instance.exports.cycle_latency(8,1,1);function o(_,$,n,o){e&&(n+=e-64,o+=e-64);var c=performance.now();return instance.exports[_]($,o,n),performance.now()-c}for(var c=[],t=0;t<64;t++)for(var r=0;r<64;r++)c.push({x:r,y:t});!function _($){let e=$.length,n;for(;0!=e;)n=Math.floor(Math.random()*e),e--,[$[e],$[n]]=[$[n],$[e]];return $}(c),"undefined"==typeof postMessage&&(postMessage=function(){});var a=performance.now();do var l=performance.now();while(l<=a);for(var f=l-a,y=2e5,i=o("cycle_latency",y);i<3*f;)y*=2,i=o("cycle_latency",y);var d=0;for(let{x:v,y:s}of c)postMessage([0,v,s,(o($,y,v,s)/i).toFixed(2)]),++d%16==0&&(i=o("cycle_latency",y));for(let{x:u,y:w}of(y*=8,i=o("cycle_latency",y),d=0,c))postMessage([1,u,w,(o($,y,u,w)/i).toFixed(2)]),++d%4==0&&(i=o("cycle_latency",y))};