whalesong/experiments/fact/foo2.html
2011-02-09 19:22:05 -05:00

28 lines
473 B
HTML

<html>
<head>
<script src="foo2.js">
</script>
<script>
invoke(function() {});
var f = MACHINE.env.globalBindings.factorial.adaptToJs();
var startTime;
startTime = new Date();
//f([0], function(v) { console.log(v, new Date() - startTime); });
//var mul = function(x, y) { return x * y; }
//startTime = new Date();
//var acc;
//for (i = 1; i < 10000000; i++) {
// acc = mul(acc * i);
//}
//console.log(acc, new Date() - startTime);
</script>
<body>
</body>
</html>