feat: Phase 1 — SSTable persistence, README honesty, benchmark fix

- Add Current Status / Limitations section to README
- Fix benchmark compilation (Duration.ticks → inNanoseconds)
- Implement real SSTable binary format with write/read/mmap support
- Add BloomFilter serialize/deserialize for disk storage
- Fix mmap.nim to use posix.open instead of system.open
- New PLAN.md with improvement roadmap
- All 214 tests pass
This commit is contained in:
2026-05-06 03:16:39 +03:00
parent 5b31b5b56c
commit 5dba7b5699
6 changed files with 454 additions and 16 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
## BaraDB Benchmarks — performance tests for all engines
import std/monotimes
import std/times
import std/tables
import std/random
import std/strutils
@@ -11,7 +12,7 @@ import ../src/barabadb/fts/engine as fts
import ../src/barabadb/graph/engine as gengine
proc elapsed(start: MonoTime): float64 =
let ns = float64((getMonoTime() - start).ticks)
let ns = float64((getMonoTime() - start).inNanoseconds)
return ns / 1_000_000_000.0
proc formatOps(ops: int, secs: float64): string =