On 2011-05-15, at 11:36 PM, Marc Feeley wrote:
The results are very good. On fib(40), proto2 generate faster code than V8 (1.5x) and SpiderMonkey (2.3x), and Tachyon (18x). There is a 1.2x difference between proto1 and proto2 (in other words, there is a 20% overhead to setup and check argument counts). Here are the detailed running times:
relative time to proto2
Tachyon 29.613 (18.3) SM 3.700 ( 2.3) V8 2.397 ( 1.5) proto1 2.000 ( 1.2) proto2 1.614 ( 1.0)
I have improved the code generation of my prototype compiler. fib(40) now takes 1.42 seconds, or 1.7 times faster than V8.
The changes are on the repo.
Marc