Skip to content

10x times speed up Code#isbnGroup and Code#isbnGs1 by usage of Options#526

Merged
snuyanzin merged 1 commit intodatafaker-net:mainfrom
snuyanzin:code
Nov 4, 2022
Merged

10x times speed up Code#isbnGroup and Code#isbnGs1 by usage of Options#526
snuyanzin merged 1 commit intodatafaker-net:mainfrom
snuyanzin:code

Conversation

@snuyanzin
Copy link
Copy Markdown
Collaborator

The PR speeds Code#isbnGroup and Code#isbnGs1 by usage Options instead regexify
comparison

Benchmark                         Mode  Cnt      Score      Error   Units
DatafakerSimpleMethods.option    thrpt   10  50185.955 ± 5028.459  ops/ms
DatafakerSimpleMethods.regexify  thrpt   10   6889.025 ±  379.912  ops/ms

@snuyanzin snuyanzin merged commit d50ec73 into datafaker-net:main Nov 4, 2022
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