Mercurial
view asyncio_threads/database/main.py @ 183:a8976a008a9d
[BenchMark] Added bun bench mark to test seoboe vs other popular benchmarks.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 23 Jan 2026 21:19:08 -0800 |
| parents | 46daba6e3cf4 |
| children |
line wrap: on
line source
class Database: def __init__(self): self.db = {} self.state = 'idle' def set(self, key, value): self.db[key] = value def get(self, key): return self.db[key] def unset(self, key): del self.db[key]