View Single Post
Old 2011-09-03, 17:50   #11
MrRepunit
 
MrRepunit's Avatar
 
Mar 2011
Germany

1418 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Your tests showed that memory (cache, etc.) size is irrelevant? :surprised
Not irrelevant, but there is an optimal value of the interval.
Here are my timings:

pmax interval seconds
50000000 2000000 1494
50000000 50000 1024
10000000 10000000 178
10000000 2000000 166
10000000 1000000 163
10000000 500000 168
10000000 10000 110
5000000 2000000 69
5000000 1000000 66
5000000 500000 64
5000000 100000 73
5000000 50000 61
5000000 10000 44
5000000 5000 42
5000000 1000 52
2000000 500000 19
2000000 200000 18
2000000 100000 17
2000000 2000 12
1000000 500000 7
1000000 200000 7
1000000 100000 6
1000000 1000 5

You can see that the optimal interval value is always 1/1000 of the upper boundary.
MrRepunit is offline   Reply With Quote