Good Benchmarks?

tooltiperror

Super Moderator
Reaction score
231
I was thinking of doing some benchmarks. Are there any functions people need checked?
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
Do some tests to see if hashtables slow down after loading shitloads of data into them.

I was going to do that bench, but I epicfail at benching.
 

Azlier

Old World Ghost
Reaction score
461
Benchmark [lJASS]LoadInteger(ht, StringHash("abc"), StringHash("def"))[/lJASS] vs. [lJASS]GetStoredInteger(gc, "abc", "def")[/lJASS].

Store some value like 1100 in each before benchmarking.
 

Nestharus

o-o
Reaction score
84
hashtables would slow down when they have bundles of data... they're hashtables....

/facepalm


do a worth while benchmark that people don't already know the answer to ^_^
 

Azlier

Old World Ghost
Reaction score
461
Who said anything about bundles of data?

I said to store one value in each, the value being something like 1100.
 

tooltiperror

Super Moderator
Reaction score
231
Benchmark [lJASS]LoadInteger(ht, StringHash("abc"), StringHash("def"))[/lJASS] vs. [lJASS]GetStoredInteger(gc, "abc", "def")[/lJASS].

Store some value like 1100 in each before benchmarking.

I like that one.

Now I just have to figure out these .dll's and crap...
 

Nestharus

o-o
Reaction score
84
I got a good one. Check function call speed between recursive function calls and regular function calls : ). Normally, a recursive function call is pretty much exactly like a loop. I'm really curious to see if a recursive function call is normal in JASS or if it is like a regular function call ;o.

Also please check the memory usage on recursive function calls ; ). We all know that starting up new threads can use up a pretty hefty amount of memory, but what about recursive function calls? Yea, everyone knows that in regular languages they are memory hogs, but in JASS?

Tx tx : ).


Oh, and check a bundle of added conditions to a trigger vs evaluating a bundle of triggers each with a single condition like so-

1 trigger has 10 conditions
10 triggers each have one condition


Also check TriggerClearConditions on 10 conditions vs TriggerRemoveCondition on 10 conditions. Compare trigger actions too.

Also check FlushParentHashtable, FlushChildHashtable, and RemoveSavedInteger in the same styles of comparisons.

Also do single comparisons, removing a single condition vs removing all conditions on a trigger that only has one condition.


: )
 

Nestharus

o-o
Reaction score
84
So in JASS, recursive calls are faster than plain loops? : o

Remember, this is JASS we're talking about here, not regular programming.
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
I think it would be, but is there a way to stop recursion after X times?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top