So I ran your two programs through SpiderNode just to see how they perform with SpiderMonkey as the engine instead of V8. As expected, the average time is a little higher, but that is especially true of the closure…
Good analysis. Interestingly, when I try to duplicate your results, the class implementation takes twice as long as the closure implementation (10 seconds vs 5). I'm using v4.2.6 of node, though. Clearly v6 makes a big…
So I ran your two programs through SpiderNode just to see how they perform with SpiderMonkey as the engine instead of V8. As expected, the average time is a little higher, but that is especially true of the closure…
Good analysis. Interestingly, when I try to duplicate your results, the class implementation takes twice as long as the closure implementation (10 seconds vs 5). I'm using v4.2.6 of node, though. Clearly v6 makes a big…