Hide unused element in backbone.html and make perf tests use the minified versions of each lib.

Former-commit-id: 45cfd91d41dc454399be35004ed8bcf5d6293554
This commit is contained in:
John-David Dalton
2012-05-20 19:12:22 -04:00
parent a9d55121bb
commit 9a81df6d77
3 changed files with 8 additions and 8 deletions

View File

@@ -12,11 +12,11 @@
</style> </style>
</head> </head>
<body> <body>
<script src="../lodash.js"></script> <script src="../lodash.min.js"></script>
<script> <script>
var lodash = _.noConflict(); var lodash = _.noConflict();
</script> </script>
<script src="../vendor/underscore/underscore.js"></script> <script src="../vendor/underscore/underscore-min.js"></script>
<script src="../vendor/benchmark.js/benchmark.js"></script> <script src="../vendor/benchmark.js/benchmark.js"></script>
<script src="../vendor/firebug-lite/src/firebug-lite-debug.js"></script> <script src="../vendor/firebug-lite/src/firebug-lite-debug.js"></script>
<script> <script>

View File

@@ -13,7 +13,7 @@
/** Load Lo-Dash */ /** Load Lo-Dash */
var lodash = var lodash =
window.lodash || ( window.lodash || (
lodash = load('../lodash.js') || window._, lodash = load('../lodash.min.js') || window._,
lodash = lodash._ || lodash, lodash = lodash._ || lodash,
lodash.noConflict() lodash.noConflict()
); );
@@ -21,7 +21,7 @@
/** Load Underscore */ /** Load Underscore */
var _ = var _ =
window._ || ( window._ || (
_ = load('../vendor/underscore/underscore.js') || window._, _ = load('../vendor/underscore/underscore-min.js') || window._,
_._ || _ _._ || _
); );
@@ -70,8 +70,8 @@
}, },
'onComplete': function() { 'onComplete': function() {
var fastest = this.filter('fastest').pluck('name'), var fastest = this.filter('fastest').pluck('name'),
lodashHz = Math.floor(1 / (this[0].stats.mean + this[0].stats.moe)), lodashHz = 1 / (this[0].stats.mean + this[0].stats.moe),
underscoreHz = Math.floor(1 / (this[1].stats.mean + this[1].stats.moe)); underscoreHz = 1 / (this[1].stats.mean + this[1].stats.moe);
if (fastest.length > 1) { if (fastest.length > 1) {
console.log('It\'s too close to call.'); console.log('It\'s too close to call.');
@@ -192,7 +192,7 @@
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
if (Benchmark.platform + '') { if (Benchmark.platform + '') {
console.log(Benchmark.platform + '\n'); console.log(Benchmark.platform + '');
} }
// start suites // start suites
suites[0].run(); suites[0].run();

View File

@@ -5,7 +5,7 @@
<title>Backbone Test Suite</title> <title>Backbone Test Suite</title>
<link rel="stylesheet" href="../vendor/backbone/test/vendor/qunit.css"> <link rel="stylesheet" href="../vendor/backbone/test/vendor/qunit.css">
<style> <style>
#jslitmus { body > #qunit-header, #jslitmus {
display: none; display: none;
} }
</style> </style>