Which databases provide the best performance when used with containers?
That’s an important question for people seeking to make the most of containerized infrastructure.
In this post, I take a look at some basic performance metrics for three relational databases—PostgreSQL, MySQL, and MariaDB—when they are run as containers.
For the purposes of my tests, I used the official container images available from Docker Hub to install and start the databases.
While the process of pulling the images and starting the containers is likely already familiar to anyone using Docker, I’ll run through the commands I used below, just so that it is clear what my process was in preparing for the performance tests.