Page 1 of 1

Typical Trigger Performance

Posted: Thu Sep 09, 2021 3:40 am
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.

Re: Typical Trigger Performance

Posted: Thu Sep 09, 2021 7:47 am
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.

Re: Typical Trigger Performance

Posted: Thu Sep 09, 2021 1:57 pm
by Puckster
Great! Thanks! That's all I needed. I won't go on a witch hunt for bad triggers just yet. :-)

Re: Typical Trigger Performance

Posted: Thu Sep 09, 2021 2:18 pm
by Vadi
Nice, happy to help :)

Re: Typical Trigger Performance

Posted: Thu Sep 09, 2021 9:06 pm
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