According to his benchmark run today on Python 3.9 on linux, dbm is still considerably faster for random access.
That said, what database dbm is using varies a lot by platform. I think on linux it's usually BerkleyDB.
I use dbm a lot to cache pickles of object that were slow to create. eg pandas dataframes