|
|
|
This is consistent with our benchmarking results. We've seen Mono run up to 220 times faster than LSL2 when running a Mandlebrot generation benchmark. I think you've found a case where the speedup is even higher at around 250x.
Well, not exactly. The empirical results showed O
dummy() { } default integer i = 2147483647; llOwnerSay("llGetTime() delta = " + (string)(llGetTime() - t0)); it pegs the script time meter in the statistics bar for about 45 seconds (my sincere apologies to my fellow residents in that same region), then the script finally gives the answer of 0.02 seconds elapsed time. Maybe llGetTime() gets dizzy during this unthrottled loop and doesn't update properly. Maybe we need a throttle for this? I just tried davie zinner's 2147483647-iteration example, but replaced llGetTime() with llGetTimeOfDay(); the difference in llGetTimeOfDay() is consistently around 35s, which seems to be correct, considering the sim's time dilation. So it looks like llGetTime() is at fault.
Changed title to be more appropriate
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I've tried to tweak this a little by adding "return 1+1;" into the code and having the function return an integer. This has raised the execution time to an initial 0.177 and an average of 0.066 on resets.
I wouldn't really call this suspicious, I'd call this a major improvement - Mono is far more efficient at what it does then the original LSL VM.