1<!doctype html> 2<html lang="en"> 3 <head> 4 <meta charset="utf-8"> 5 <title>lodash Performance Suite</title> 6 <style> 7 html, body { 8 margin: 0; 9 padding: 0; 10 height: 100%; 11 } 12 #FirebugUI { 13 top: 2.5em; 14 } 15 #perf-toolbar { 16 background-color: #EEE; 17 color: #5E740B; 18 font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif; 19 font-size: small; 20 padding: 0.5em 1em 0.5em 1em; 21 overflow: hidden; 22 } 23 #perf-toolbar label { 24 display: inline-block; 25 margin-right: 0.5em; 26 } 27 #perf-toolbar span { 28 display: inline-block; 29 float: right; 30 line-height: 2.1em; 31 margin-left: 1em; 32 margin-top: 0; 33 } 34 </style> 35 </head> 36 <body> 37 <div id="perf-toolbar"></div> 38 <script src="../lodash.js"></script> 39 <script src="../node_modules/platform/platform.js"></script> 40 <script src="../node_modules/benchmark/benchmark.js"></script> 41 <script src="../vendor/firebug-lite/src/firebug-lite-debug.js"></script> 42 <script src="./asset/perf-ui.js"></script> 43 <script> 44 document.write('<script src="' + ui.buildPath + '"><\/script>'); 45 </script> 46 <script> 47 var lodash = _.noConflict(); 48 </script> 49 <script> 50 document.write('<script src="' + ui.otherPath + '"><\/script>'); 51 </script> 52 <script src="perf.js"></script> 53 <script> 54 (function() { 55 var measured, 56 perfNow, 57 begin = new Date; 58 59 function init() { 60 var fbUI = document.getElementById('FirebugUI'), 61 fbDoc = fbUI && (fbDoc = fbUI.contentWindow || fbUI.contentDocument).document || fbDoc, 62 fbCommandLine = fbDoc && fbDoc.getElementById('fbCommandLine'); 63 64 if (!fbCommandLine) { 65 return setTimeout(init, 15); 66 } 67 fbUI.style.height = ( 68 Math.max(document.documentElement.clientHeight, document.body.clientHeight) - 69 document.getElementById('perf-toolbar').clientHeight 70 ) + 'px'; 71 72 fbDoc.body.style.height = fbDoc.documentElement.style.height = '100%'; 73 setTimeout(run, 15); 74 } 75 76 window.onload = init; 77 }()); 78 </script> 79 </body> 80</html> 81