Skip to content

v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 31 Aug 09:46
· 1 commit to main since this release

What's New in v0.2.0

Documentation

  • Add automated performance benchmarks workflow that runs on every push to main and release tags.
  • Add Performance Benchmarks documentation page with real-world benchmark results for all major functions.
  • Benchmark script now supports --json output for automation and programmatic access.
  • Add automated benchmark results to GitHub Release notes on new releases.

Benchmark Results

Function Ops/sec Time/op
normalizeUrdu (short) 65,598 0.015 ms
normalizeUrdu (medium) 20,955 0.048 ms
normalizeUrdu (long) 3,680 0.272 ms
removeDiacritics (short) 1,151,278 0.001 ms
removeDiacritics (diacritics) 248,738 0.004 ms
foldUrdu (short) 71,150 0.014 ms
romanize (short) 55,281 0.018 ms
romanize (medium) 9,937 0.101 ms
romanToUrdu (short) 808,669 0.001 ms
romanToUrdu (medium) 77,223 0.013 ms
searchUrdu (100 items, exact) 679 1.472 ms
searchUrdu (100 items, fuzzy) 196 5.106 ms
sortUrdu (20 words) 2,542 0.393 ms
countWords (medium) 105,625 0.009 ms
countSentences (medium) 114,779 0.009 ms
analyzeUrdu (medium) 14,777 0.068 ms
splitWords (medium) 95,488 0.010 ms
splitSentences (medium) 137,758 0.007 ms
isUrdu (Urdu text) 35,992 0.028 ms
urduRatio (Urdu text) 41,258 0.024 ms
convertNumbers (short) 553,281 0.002 ms
stemUrdu (single word) 83,588 0.012 ms
stemUrduText (medium) 8,864 0.113 ms
formatUrduDate (now) 167,935 0.006 ms
timeAgoUrdu (2 hours ago) 355,796 0.003 ms

Install:

npm install urdu-text-utils@latest