DRIVERS-2917 - Standardized Performance Testing of ODMs and Integrations #366
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
This is the first draft of the Django implementation of the MongoDB ODM Benchmarking suite. It contains a small suite of benchmark tests designed to measure django-mongodb-backend performance across data sizes and structures for what we expect to be common user operations.
This is NOT intended to be a comprehensive test suite for every operation, only the most common and widely applicable. This is also not intended to be Django specific: each of these tests must be implementable across all of our ODMs, up to the features supported by each library.
Structure
The benchmarks are contained within a separate Django application within
tests/performance/perftest
. This application exists only to execute the benchmarking suite.Running Locally
After starting a local MongoDB server, the tests can be run by running
python manage.py test
from thetests/performance
directory. The full suite run locally is expected to take approximately 10 minutes. For faster benchmarks, passFASTBENCH=1
as an environment variable totests/performance/perftest/tests.py
.Review Items