From c265b7d5d6dac6fcac432d73ef3c9dff029fe446 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Sun, 10 Jan 2010 16:39:38 -0500 Subject: [PATCH] updating comprehension speed test with the new normal comprehensions --- documentation/speed.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/documentation/speed.html b/documentation/speed.html index e756437a..52d99650 100644 --- a/documentation/speed.html +++ b/documentation/speed.html @@ -52,7 +52,7 @@ } }); - JSLitmus.test('the new comprehensions', function() { + JSLitmus.test('weepy\'s comprehensions', function() { __c = []; __a = arr; __d = function(num, __b) { __c.push(num); @@ -63,6 +63,14 @@ 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); + } + });