File: README.md

package info (click to toggle)
djangorestframework-filters 1.0.0.dev2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 420 kB
  • sloc: python: 2,855; makefile: 6
file content (27 lines) | stat: -rw-r--r-- 812 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

## Performance Testing

The included tests are an initial pass at guaging the performance of filtering across
relationships via `RelatedFilter`. The intent is to provide some assurance that:

- the package does not perform glaringly worse than pure django-filter.
- new changes do no inadvertantly decrease performance.


### Running the tests

The performance tests have been isolated from the main test suite so that they can be
ran independently. Simply run:

    $ tox -e performance

Or more directly:

    $ python manage.py test tests.perf


### Notes:

Although the performance tests are relatively quick, they will occasionally fail in CI
due to fluctuations in VM performance. The easiest way to reduce the number of random
failures is to simply run the performance tests in a single, separate build.