Skip to content

v0.5.2 - Benchmarking System & Performance Optimizations

Choose a tag to compare

@Zheruel Zheruel released this 05 Sep 23:07
· 53 commits to main since this release
0d2e3a1

🚀 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 words utility
  • 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 truncate for proper boundary detection
  • Fixed multi-character emoji padding in pad function

📦 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