index.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. function init() {
  59. var fbUI = document.getElementById('FirebugUI'),
  60. fbDoc = fbUI && (fbDoc = fbUI.contentWindow || fbUI.contentDocument).document || fbDoc,
  61. fbCommandLine = fbDoc && fbDoc.getElementById('fbCommandLine');
  62. if (!fbCommandLine) {
  63. return setTimeout(init, 15);
  64. }
  65. fbUI.style.height = (
  66. Math.max(document.documentElement.clientHeight, document.body.clientHeight) -
  67. document.getElementById('perf-toolbar').clientHeight
  68. ) + 'px';
  69. fbDoc.body.style.height = fbDoc.documentElement.style.height = '100%';
  70. setTimeout(run, 15);
  71. }
  72. window.onload = init;
  73. }());
  74. </script>
  75. </body>
  76. </html>