View Single Post
09-28-11, 04:00 AM   #9
Nibelheim
local roygbi-
 
Nibelheim's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 1,600
Originally Posted by Vladinator View Post
Thanks for the replies on the efficiency matter.

Just out of curiosity, how would one go about to benchmark using the WoW client? I mean, GetTime() is the only API returning milliseconds so basically call that right before and after and subtract the time difference -right?
Create an incredibly large table so that the function takes a long time to run. Makes it easier to measure. Print a GetTime before, and a GetTime after. Run each test multiple times to get a good sample size.
  Reply With Quote