blob: 16d41bf36a9c3288884bd34287ca06052d81d91a [file] [log] [blame]
Matteo Scandolo280dcd32016-05-16 09:59:38 -07001<!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: 2em;
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 0 0.5em 2em;
21 overflow: hidden;
22 }
23 </style>
24 </head>
25 <body>
26 <div id="perf-toolbar"></div>
27 <script src="../lodash.js"></script>
28 <script src="../node_modules/platform/platform.js"></script>
29 <script src="../node_modules/benchmark/benchmark.js"></script>
30 <script src="../vendor/firebug-lite/src/firebug-lite-debug.js"></script>
31 <script src="./asset/perf-ui.js"></script>
32 <script>
33 document.write('<script src="' + ui.buildPath + '"><\/script>');
34 </script>
35 <script>
36 var lodash = _.noConflict();
37 </script>
38 <script>
39 document.write('<script src="' + ui.otherPath + '"><\/script>');
40 </script>
41 <script src="perf.js"></script>
42 <script>
43 (function() {
44 var measured,
45 perfNow,
46 begin = new Date;
47
48 function init() {
49 var fbUI = document.getElementById('FirebugUI'),
50 fbDoc = fbUI && (fbDoc = fbUI.contentWindow || fbUI.contentDocument).document || fbDoc,
51 fbCommandLine = fbDoc && fbDoc.getElementById('fbCommandLine');
52
53 if (!fbCommandLine) {
54 return setTimeout(init, 15);
55 }
56 fbUI.style.height = (
57 Math.max(document.documentElement.clientHeight, document.body.clientHeight) -
58 document.getElementById('perf-toolbar').clientHeight
59 ) + 'px';
60
61 fbDoc.body.style.height = fbDoc.documentElement.style.height = '100%';
62 setTimeout(run, 15);
63 }
64
65 window.onload = init;
66 }());
67 </script>
68 </body>
69</html>