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

Cache suppliers for java transformers, improve hashing #810

Merged
merged 1 commit into from Apr 30, 2023

Conversation

snuyanzin
Copy link
Collaborator

This improvement brings about 25% of speed
before

Benchmark                                                 Mode  Cnt    Score   Error  Units
Datafaker_JavaObjectPopulateBenchmark.javaObjectPopulate  avgt   10  315.623 ± 2.223  ms/op

after

Benchmark                                                 Mode  Cnt    Score    Error  Units
Datafaker_JavaObjectPopulateBenchmark.javaObjectPopulate  avgt   10  242.836 ± 10.768  ms/op

@snuyanzin snuyanzin merged commit 0b89ee6 into datafaker-net:main Apr 30, 2023
8 checks passed
snuyanzin added a commit to snuyanzin/datafaker that referenced this pull request May 2, 2023
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.

None yet

1 participant