Dobatymo / lmdb-python-dbm

Python DBM style wrapper of LMDB
ISC License
29 stars 9 forks source link

Add Shelve to the benchmark #3

Closed djstrong closed 5 days ago

djstrong commented 1 year ago

Something like this:

import shelve

class ShelveBenchmark(BaseBenchmark):
    def __init__(self, db_tpl):
        super().__init__(db_tpl, "shelve")

    def open(self):
        return shelve.open(self.path)
uweber commented 1 week ago

Added in #8