I wonder if it's still faster than sqlite in 2022.
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
But... It's Oracle...