@snow-tzu/type-config
Version:
Core configuration management system with Spring Boot-like features
131 lines (89 loc) ⢠3.96 kB
Markdown
# Benchmark Documentation Index
Quick navigation to all benchmark-related documentation.
## š Documentation Files
| Document | Description | Audience |
|-----------------------------------------|----------------------------------------------|------------|
| **[PERFORMANCE.md](../PERFORMANCE.md)** | š Complete performance overview with tables | Everyone |
| **[README.md](./README.md)** | š Benchmark suite documentation | Developers |
| **[QUICKSTART.md](./QUICKSTART.md)** | š Quick start guide | New users |
## šÆ Quick Links by Use Case
### I want to see if this is fast enough for my app
š Read [PERFORMANCE.md](../PERFORMANCE.md) - See production guidelines section
### I want to see the latest benchmark numbers
š Read [BENCHMARK_RESULTS.md](../BENCHMARK_RESULTS.md) - Tables and charts
### I want to run benchmarks myself
š Read [QUICKSTART.md](./QUICKSTART.md) - Step-by-step instructions
### I want to understand the benchmarking methodology
š Read [README.md](./README.md) - Detailed documentation
### I want to add new benchmarks
š Read [README.md](./README.md) - "Contributing" section
## š Key Performance Tables
### Configuration Loading
| Config Size | Time | Ops/Sec |
|-------------|--------|---------|
| Small | 0.11ms | 8.8k |
| Medium | 0.16ms | 6.4k |
| Large | 0.37ms | 2.7k |
### Runtime Access
| Method | Ops/Sec | Recommendation |
|-------------------|---------|----------------|
| Container (typed) | 6.3M | ā
Use this |
| Direct path | 3.6M | ā ļø Fallback |
### Memory Usage
| Config Size | Memory Overhead |
|-------------|-----------------|
| Small | +1.5 MB |
| Medium | +4 MB |
| Large | +14 MB |
## š Quick Commands
```bash
# Run all benchmarks
yarn benchmark
# Configuration loading performance
yarn benchmark:loading
# Memory usage analysis
yarn benchmark:memory
```
## š File Structure
```
packages/core/
āāā PERFORMANCE.md # Complete performance guide
āāā BENCHMARK_RESULTS.md # Latest results
āāā README.md # Main package README
āāā benchmark/
āāā INDEX.md # This file
āāā README.md # Benchmark suite docs
āāā QUICKSTART.md # Quick start guide
āāā utils.ts # Benchmark utilities
āāā config-loading.bench.ts # Loading benchmarks
āāā memory.bench.ts # Memory benchmarks
āāā index.ts # Main runner
```
## š Learning Path
1. **New to Type Config?**
- Start with [../README.md](../README.md#performance)
- Quick overview of performance characteristics
2. **Evaluating performance?**
- Read [PERFORMANCE.md](../PERFORMANCE.md)
- See production guidelines for your use case
3. **Need exact numbers?**
- Run benchmarks yourself: [QUICKSTART.md](./QUICKSTART.md)
4. **Contributing?**
- Read [README.md](./README.md)
- Follow benchmark suite documentation
## ā Common Questions
**Q: Is Type Config fast enough for production?**
A: Yes! See [PERFORMANCE.md](../PERFORMANCE.md#production-guidelines) for your use case.
**Q: How do I run benchmarks?**
A: `yarn benchmark` - See [QUICKSTART.md](./QUICKSTART.md) for details.
**Q: What hardware were benchmarks run on?**
A: Apple M1/M2, 16GB RAM, macOS.
**Q: Can I trust these numbers?**
A: Run benchmarks on your hardware: [QUICKSTART.md](./QUICKSTART.md)
**Q: How does it compare to alternatives?**
A: See [PERFORMANCE.md](../PERFORMANCE.md#benchmarking-comparison)
## š External Resources
- [Main Project README](../../../README.md#performance)
- [Core Package README](../README.md#benchmarks)
- [Examples](../../../examples/)
---