UNPKG

@snow-tzu/type-config

Version:

Core configuration management system with Spring Boot-like features

131 lines (89 loc) • 3.96 kB
# 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/) ---