Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterations/second Should Average Over Recent History #8

Open
xanderdunn opened this issue Oct 26, 2020 · 1 comment
Open

Iterations/second Should Average Over Recent History #8

xanderdunn opened this issue Oct 26, 2020 · 1 comment

Comments

@xanderdunn
Copy link

Thanks for making and maintaining this library, it's a much needed tool in Swift.

It appears that the iterations/second is calculated based on some average of the speed from the entire history of the run? I believe most progress indicators prefer an average of recent history, rather than all history? In my current situation the progress iterations/second and ETA are working poorly for me because I must first iterate very quickly through ~80,000 items simply throwing them out until I find the starting location. Once I've found the starting location, iterating through the remaining ~900,000 items becomes much slower. Because the first 80,000 items are iterated extremely quickly compared to the remaining items, it will take ~5+ minutes for the iterations/second to average down to a number that is close to the true iterations per second after finding my stating location.

If the progress bar were instead averaging on recent history, behavior should remain the same for situations where all iterations take the same amount of time, and it should become a more useful statistics for situations like mine where the speed of iteration changes.

@xanderdunn
Copy link
Author

Correct me if I'm wrong about how the iterations/second is calculated. An alternate explanation is that my iteration rate really is decreasing as my iteration count gets higher, or perhaps a combination of the issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant