print 'start'
for i in range(50
#include <stdio.h>
int main()
{
const int max = 50 * 1000 *
if 1
int i;
for(i = 0; i < max; i++)
if(1 ==
i
print 'end'
i;
}
return 0;
}
longneck@mofa ~ $
start
end
real
user
sys 0m0.
longneck@mofa ~ $ cat test.coffee
console.log 'start'
for i in [1..50 * 1000 * 1000]
if 1 == 1
i
console.log 'end'
longneck@mofa ~ $ cat test.js
// Generated by CoffeeScript 1.10.0
(function() {
var i, j, ref;
console.log('start');
for (i = j = 1, ref = 50 * 1000 * 1000; 1 <= ref ? j <= ref : j >= ref; i = 1 <= ref ? ++j : --j) {
if (1 === 1) {
i;
}
}
console.log('end');
}).call(this);
longneck@mofa ~ $ time node test.js
start
end
real 0m0.
user 0m0.
sys 0m0.
longneck@mofa ~ $
Stikked
