Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up bothify by making it via one run #511

Merged
merged 1 commit into from
Nov 1, 2022

Conversation

snuyanzin
Copy link
Collaborator

@snuyanzin snuyanzin commented Nov 1, 2022

results of measurements (almost twice for bothify)
before

Benchmark                            Mode  Cnt      Score       Error   Units
DatafakerTemplateStrings.bothify    thrpt   10  15713.850 ±  2229.838  ops/ms
DatafakerTemplateStrings.letterify  thrpt   10  42921.869 ±  4525.499  ops/ms
DatafakerTemplateStrings.numerify   thrpt   10  34054.217 ± 10869.288  ops/ms

after

Benchmark                            Mode  Cnt      Score      Error   Units
DatafakerTemplateStrings.bothify    thrpt   10  26830.873 ±  849.909  ops/ms
DatafakerTemplateStrings.letterify  thrpt   10  43706.715 ± 5250.235  ops/ms
DatafakerTemplateStrings.numerify   thrpt   10  39695.582 ± 9124.170  ops/ms

@snuyanzin snuyanzin merged commit 2f8dc17 into datafaker-net:main Nov 1, 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