I may be naive, but do people with slow DB tests put the DB in a tmpfs to improve performance?
Each parallel testrun gets its own path in /dev/shm/xx so everything is in ram as well.
This can be worked around in some scenarios, but not always & reliably. Most importantly, you can't reach the same in-memory database from multiple processes.