v0.5.2 - Benchmarking System & Performance Optimizations
🚀 Release v0.5.2
✨ Added
- Comprehensive Benchmarking System
- Bundle size analysis comparing nano-string-utils, lodash, and es-toolkit
- Performance benchmarks using Vitest bench for ops/sec comparisons
- Automated benchmark runner with markdown report generation
- GitHub Actions CI integration for automated benchmarking
⚡ Performance
- Case Conversions: 30-40% improvement via unified
wordsutility - truncate: 97.6% improvement - now 2.1-2.6x faster than lodash
- template: 25x faster than lodash
- capitalize: 2.4x faster than lodash
- pad: Optimized with native String.repeat()
🐛 Fixed
- Fixed Unicode/emoji handling in
truncatefor proper boundary detection - Fixed multi-character emoji padding in
padfunction
📦 Bundle Size
- Slightly increased to 5.97KB (CJS) / 5.64KB (ESM)
- Still well under 6.5KB limit
- Wins 10 out of 11 functions vs competitors
📊 Benchmark Results
See detailed comparisons in benchmarks/benchmark-results.md
Full Changelog: v0.5.1...v0.5.2