I have regenerated 'perllvm' a couple of times, the most recent with '-O3' for the compiler flags, and it seems to be about 15% faster on your code. I put a 'for (0..8)' around the actual calls, and it seems that improvement gets better for the first 4 iterations, but don't know if 'jit' is working or not. '-O3' had no effect for my testcase, but I think the I/O wouldn't change much.
perllvm -sw BrowserUK_991333.pl 3 9 4093 Took: 13.2621982097626 4093 Took: 12.8998439311981 4093 Took: 12.8468470573425 4093 Took: 12.8413920307159 4093 Took: 12.8571419715881 4093 Took: 12.8411600494385 4093 Took: 12.850515127182 4093 Took: 12.8421239757538 4093 Took: 12.8547790050507
When I ran with the 'gcc' Perl there wasn't any major changes for each loop. I think 15% shouldn't be ignored by just compiling with 'clang' and '-O3'. I joined the LLVM developers list, and hope they are patient :-)
Regards...Ed
"Well done is better than well said." - Benjamin Franklin
In reply to Re^2: perllVm: A Linux test of how Perl and LLVM would work together.
by flexvault
in thread perllVm: A Linux test of how Perl and LLVM would work together.
by flexvault
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |