Skip to content

Add pattern generation and permutation counts#24

Merged
KayleeWilliams merged 6 commits into
mainfrom
pattern-permutations
May 14, 2026
Merged

Add pattern generation and permutation counts#24
KayleeWilliams merged 6 commits into
mainfrom
pattern-permutations

Conversation

@KayleeWilliams
Copy link
Copy Markdown
Owner

Summary

  • Add explicit category patterns for generated names, including a new city category.
  • Add exported permutations() counting plus CLI --permutations and --json output.
  • Refresh README documentation around quick start, patterns, CLI usage, counts, categories, and constraints.
  • Update the permutation script to reuse the exported helper and preserve validator newline formatting.

Validation

  • bun run validate
  • bun run check
  • bun test
  • bun run build
  • bun run permutations

Benchmark

Local source-module benchmark:

  • joyful(): 100,000 ops in 11.64ms, about 8,589,620 ops/sec
  • joyful pattern: 100,000 ops in 405.73ms, about 246,469 ops/sec
  • permutations(): 1,000,000 ops in 22.21ms, about 45,032,197 ops/sec
  • permutations pattern: 1,000,000 ops in 67.01ms, about 14,923,146 ops/sec

@KayleeWilliams KayleeWilliams marked this pull request as ready for review May 9, 2026 16:33
@KayleeWilliams KayleeWilliams merged commit f1c2c9e into main May 14, 2026
1 check passed
@KayleeWilliams KayleeWilliams deleted the pattern-permutations branch May 14, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant