This project benchmarks and compares the performance of popular SQL databases using the Django ORM. It provides detailed metrics for common database operations across different database backends.
Databases tested:
- PostgreSQL
- MySQL
- MariaDB
- SQLite
- CockroachDB
Measure and compare the speed of database operations (insert, bulk insert, delete, bulk delete, update, bulk update, select, and indexed select) using Django ORM on AWS T2 micro instances. Results include execution time and performance graphs for each operation and database.
Tested 1000 row inserts in all databases and measured execution time.
Tested 1000 row bulk inserts in all databases and measured execution time.
Tested 1000 row deletes in all databases and measured execution time.
Tested 1000 row bulk deletes in all databases and measured execution time.
Tested 1000 row updates in all databases and measured execution time.
Tested 1000 row bulk updates in all databases and measured execution time.
Tested 1000 select queries on non-indexed columns in all databases and measured execution time.
Tested 1000 select queries on indexed columns in all databases and measured execution time.
- Install Docker and Docker Compose.
- Clone this repository:
git clone https://github.com/yourusername/django-db-benchmark.git cd django-db-benchmark
- Start the benchmark:
./start.sh
- View the results in the
reports/graph
directory.
Django ORM, database benchmark, SQL performance, PostgreSQL, MySQL, MariaDB, SQLite, CockroachDB, database comparison, bulk insert, bulk update, bulk delete, select performance, indexed query, AWS T2 micro, Docker, Python, open source.