updating comprehension speed test with the new normal comprehensions

This commit is contained in:
Jeremy Ashkenas 2010-01-10 16:39:38 -05:00
parent ad18378f7e
commit c265b7d5d6
1 changed files with 9 additions and 1 deletions

View File

@ -52,7 +52,7 @@
} }
}); });
JSLitmus.test('the new comprehensions', function() { JSLitmus.test('weepy\'s comprehensions', function() {
__c = []; __a = arr; __c = []; __a = arr;
__d = function(num, __b) { __d = function(num, __b) {
__c.push(num); __c.push(num);
@ -63,6 +63,14 @@
for (__b in __a) { if (__a.hasOwnProperty(__b)) __d(__a[__b], __b); } for (__b in __a) { if (__a.hasOwnProperty(__b)) __d(__a[__b], __b); }
} }
}); });
JSLitmus.test('CoffeeScript 0.2.2 comprehensions', function() {
__c = []; __a = arr;
for (__b=0; __b<__a.length; __b++) {
num = __a[__b];
__c.push(num);
}
});
</script> </script>
</body> </body>