This directory contains performance benchmarks for DeCube components.
go test -bench=. -benchmem ./benchmarks/...cd rechain/pkg/crdt
go test -bench=. -benchmemBenchmark results are tracked over time to monitor performance improvements and regressions.
- OR-Set operations: ~100k ops/sec
- LWW Register: ~200k ops/sec
- PN-Counter: ~150k ops/sec
- Local RAFT consensus: <100ms latency
- Global BFT consensus: <2s latency
- Throughput: 10k+ tps
- CAS write: ~500MB/s
- CAS read: ~1GB/s
- Merkle tree construction: <1s for 1GB data
When adding new benchmarks:
- Place them in the appropriate component directory
- Use descriptive benchmark names
- Include memory allocation measurements (
-benchmem) - Document expected performance characteristics
- Update this README with results