Typical Trigger Performance

Post Reply
Puckster
Posts: 24
Joined: Fri Jul 30, 2021 11:51 pm

Typical Trigger Performance

Post by Puckster »

How log should it take to execute the following code block (nominally)? I am getting around 15 seconds, which seems high to me.

Code: Select all

for i=1,100000 do
  feedTriggers("\nTesting 1, 2, 3\n")
end
cecho("<blue> Test complete.\n")
I know there are tons of variables, but I'm just looking for rough order of magnitude feedback on if that is way out of whack or more or less reasonable for ~150 triggers a mixture of substring and regex.

User avatar
Vadi
Posts: 4957
Joined: Sat Mar 14, 2009 3:13 pm

Re: Typical Trigger Performance

Post by Vadi »

Test it out on a blank profile where you uninstall all of the default packages - what do you get for your machine/hardware setup?

For me with the default packages loaded it's 8.5s - that comes out to 0.85ms to run all triggers I have for a single line. For you it is 1.5ms to run all triggers you have for one line - does not seem too bad given how long the network transmission itself will take.

On a blank profile it's 2.7s for 10k lines.

Puckster
Posts: 24
Joined: Fri Jul 30, 2021 11:51 pm

Re: Typical Trigger Performance

Post by Puckster »

Great! Thanks! That's all I needed. I won't go on a witch hunt for bad triggers just yet. :-)

User avatar
Vadi
Posts: 4957
Joined: Sat Mar 14, 2009 3:13 pm

Re: Typical Trigger Performance

Post by Vadi »

Nice, happy to help :)

User avatar
demonnic
Posts: 766
Joined: Sat Dec 05, 2009 3:19 pm

Re: Typical Trigger Performance

Post by demonnic »

You have inspired the Stressinator, which just makes it easy to run this test with varying #s of lines and gives a little printout at the end
https://github.com/demonnic/Stressinato ... tag/v1.0.0

Post Reply