Le 10-08-28 17:37 , chevalma@iro.umontreal.ca a écrit :
Ok, I installed the modifications to d8. Unfortunately, I get a segfault on my AMD 64 bit machine running Ubuntu. I also get a segfault when trying to run any of the sh scripts under codegen, so the problem might be in the d8 extensions themselves. In any case, you should try to test your code on a linux 64 bit machine when you get the chance.
I don't have access to a linux 64 bit machine at home. I might try again on a lab machine if the setup is not too painful.
On another note, I can't run your unit test yet, but I get the gist that you're running fib(40) in there. I suggest instead making the unit test run fib(7) or fib(10), just to validate that it works, while keeping the unit tests running very fast. We should probably keep our actual performance tests separate. We might want to devise a benchmark suite system at some point.
On the master branch, I use fib(20) as part of the regular tests to make it fast enough so it is unnoticeable. I only use fib(40) in the two aforementioned branches to mesure the speed enhancement.
Erick
- Maxime
Experiments after having changed the lookup algorithm on the global object to test for the 3 first properties before doing a linear search show a .5 second speedup on a 2.13 GHz Intel Core 2 Duo Macbook for fib(40).
Fast lookup: user 0m3.702s
Original Linear search: user 0m4.339s
Those tests can be repeated by running:
time make test
in the two following branches, available on the tachyon repository:
globalOriginalLinearSearch globalFastSearch
The source code for the search algorithm can be found in 'codegen/ir-to-asm-x86.js' at line:
338: irToAsm.translator.prototype.get_prop_addr = function (opnds, dest)
Erick
Tachyon-list mailing list Tachyon-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/tachyon-list
Tachyon-list mailing list Tachyon-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/tachyon-list