Fastest String Loop
#12

How do you do your benchmarks?

I tried out the third slowest one:
Код:
new j = -1;
while(string[++ j])
And this one (which is supposedly faster):
Код:
for (new j = strlen(str)-1; j > -1; j--)
(All according to your list)

It turned out that the while loop is actually faster.
(I tested it out on a 34 characters long string)

Either I'm doing something wrong, or you are.
Can you please post the code?
Reply


Messages In This Thread
Fastest String Loop - by SickAttack - 11.10.2016, 03:03
Re: Fastest String Loop - by SyS - 11.10.2016, 03:48
Re: Fastest String Loop - by SickAttack - 11.10.2016, 04:57
Re: Fastest String Loop - by Gammix - 11.10.2016, 05:55
Re: Fastest String Loop - by Yashas - 11.10.2016, 07:09
Re: Fastest String Loop - by SyS - 11.10.2016, 07:54
Re: Fastest String Loop - by SickAttack - 11.10.2016, 14:56
Re: Fastest String Loop - by Luicy. - 11.10.2016, 15:16
Re: Fastest String Loop - by SyS - 11.10.2016, 15:18
Re: Fastest String Loop - by SickAttack - 11.10.2016, 15:27
Re: Fastest String Loop - by Jayse - 11.10.2016, 16:22
Re: Fastest String Loop - by Stinged - 11.10.2016, 18:18
Re: Fastest String Loop - by Konstantinos - 11.10.2016, 18:42

Forum Jump:


Users browsing this thread: 2 Guest(s)