Hello, was just wondering a bit about the best variable to use to iterate through an array.
https://github.com/NullFlex/benchmarking_forloops
I tried ulong, int, and uint.
ulong and uint beat int by a lot.
in smaller arrays, uint and ulong had a major advantage.
In bigger arrays, they had a slight advantage.
What really is the best variable for this job?
Not completely sure if my timing method is accurate though.
https://github.com/NullFlex/benchmarking_forloops
I tried ulong, int, and uint.
ulong and uint beat int by a lot.
in smaller arrays, uint and ulong had a major advantage.
In bigger arrays, they had a slight advantage.
What really is the best variable for this job?
Not completely sure if my timing method is accurate though.


![[Image: f4hRdFS.gif]](https://i.imgur.com/f4hRdFS.gif)