* Add benchmarking test suite * Improve amortized time of model relation loads with a large number of rows * Improve performance of loading models with many related models * Improve performance of loading models with many related models to O(N)ish * Fix bug where N model creation with shared related model would build in N^2 time * Lower blocking time for queryset results * Add docstrings and streamline hash code Co-authored-by: haydeec1 <Eric.Haydel@jhuapl.edu>
13 lines
250 B
Bash
Executable File
13 lines
250 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
PACKAGE="ormar"
|
|
|
|
PREFIX=""
|
|
if [ -d 'venv' ] ; then
|
|
PREFIX="venv/bin/"
|
|
fi
|
|
|
|
set -x
|
|
|
|
PYTHONPATH=. ${PREFIX}pytest --ignore venv --cov=${PACKAGE} --cov=tests --cov-report=xml --cov-fail-under=100 --cov-report=term-missing tests/ "${@}"
|