Skip to content

Conversation

@nolanlawson
Copy link
Member

This is a better version of the all-docs perf tests than the previous one.

Previously, we were running 10 concurrent allDocs() requests using Promise.all(). In the new version, they are chained together and thus not concurrent.

I believe it's a more accurate test to chain these together, because that's how people would actually use these APIs in the real world. For a pagination scenario, they would not do 10 allDocs() all at once but would rather do them one-at-a-time. Furthermore this actually has an impact on the measurements, because if we run all tasks together then the IDB engine can batch everything concurrently under the hood and make the results appear better than they are.

name: 'all-docs-skip-limit',
assertions: 1,
iterations: 50,
iterations: 10,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reduced iterations because the new tests is necessarily slower

Copy link
Contributor

@daleharvey daleharvey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes a lot more sense to do them sequentially

@daleharvey daleharvey merged commit 773a1b8 into master Dec 26, 2016
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

Successfully merging this pull request may close these issues.

2 participants