Blockland Forums > Modification Help
Benchmarking Script Efficiency?
<< < (2/3) > >>
Slicksilver:
Honestly I'd recommend PMing Zack0Wack0. He made an extremely accurate benchmarking script not long ago that's really useful.
CityRPG:

--- Quote from: Scout31 on February 09, 2012, 10:17:03 PM ---So, you have something like this currently?

--- End quote ---
Exactly like that. Identical set-up.
Slicksilver:
Aside from my previous post, have you done any debugging?

Try echoing %start and getRealTime() and see what you get.
Scout31:
I tested the code I wrote, and got -1 a ton. I've found this to work though:


--- Code: ---function asdf()
{
     %start = getRealTime();

     //script

     %end = getRealTime();
     echo("Clocked asdf at " @ %end-%start @ " (" @ %end @ " - " @ %start @ ")");
}
--- End code ---

I have no idea what changes between setting it at %end and not getRealTime(), but it works for me. No negatives.
CityRPG:

--- Quote from: Scout31 on February 09, 2012, 11:07:59 PM ---I have no idea what changes between setting it at %end and not getRealTime(), but it works for me. No negatives.

--- End quote ---
Now, I'm either getting 0ms or -16ms only.
Navigation
Message Index
Next page
Previous page

Go to full version