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

Add Benchmarks #23

Merged
merged 2 commits into from
Aug 23, 2022
Merged

Add Benchmarks #23

merged 2 commits into from
Aug 23, 2022

Conversation

valencik
Copy link
Collaborator

@valencik valencik commented Aug 17, 2022

Adds two very basic, likely terrible, benchmarks mostly so they are here and I can't use having to set them up as an excuse.

benchmarks/jmh:run -i 10 -wi 10 -f 2 -t 1 textmogrify.benchmarks.LuceneStreamingBenchmark

Benchmark                                         Mode  Cnt     Score    Error  Units
LuceneStreamingBenchmark.tokenizeBytesTokenN1    thrpt   20   993.796 ± 18.483  ops/s
LuceneStreamingBenchmark.tokenizeBytesTokenN128  thrpt   20  2212.053 ± 28.179  ops/s

benchmarks/jmh:run -i 10 -wi 10 -f 2 -t 1 textmogrify.benchmarks.LuceneTokenizationBenchmark

Benchmark                                               Mode  Cnt      Score     Error  Units
LuceneTokenizationBenchmark.doNothing                  thrpt   20  19105.502 ± 418.231  ops/s
LuceneTokenizationBenchmark.manualToLowerCaseAndSplit  thrpt   20   6333.355 ±  82.623  ops/s
LuceneTokenizationBenchmark.tokenizeAndLowerCase       thrpt   20   4742.166 ±  35.742  ops/s

@valencik valencik self-assigned this Aug 17, 2022
@valencik valencik marked this pull request as ready for review August 22, 2022 23:41
@valencik valencik merged commit 87ef5fc into main Aug 23, 2022
@valencik valencik deleted the benchmarks branch August 23, 2022 00:40
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