[ https://issues.apache.org/jira/browse/LUCENE-10542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Risden updated LUCENE-10542: ---------------------------------- Description: While looking at LUCENE-10534, found that *FieldSource exists implementation after LUCENE-7407 can avoid value lookup when just checking for exists. Detailed analysis here: https://issues.apache.org/jira/browse/LUCENE-10534?focusedCommentId=17528369&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17528369 Simple JMH performance tests comparing the original FloatFieldSource to the new ones from PR #847. ||Benchmark||Mode||Cnt||Score and Error||Units|| |MyBenchmark.testMaxFloatFunction|thrpt|25|65.668 ± 2.724|ops/s| |MyBenchmark.testMaxFloatFunctionNewFloatFieldSource|thrpt|25|113.779 ± 8.229|ops/s| |MyBenchmark.testMaxFloatFunctionRareField|thrpt|25|237.400 ± 7.981|ops/s| |MyBenchmark.testMaxFloatFunctionNewFloatFieldSourceRareField|thrpt|25|281.997 ± 27.575|ops/s| Source: https://github.com/risdenk/lucene-jmh was:While looking at LUCENE-10534, found that *FieldSource exists implementation after LUCENE-7407 can avoid value lookup when just checking for exists. > FieldSource exists implementation can avoid value retrieval > ----------------------------------------------------------- > > Key: LUCENE-10542 > URL: https://issues.apache.org/jira/browse/LUCENE-10542 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Kevin Risden > Assignee: Kevin Risden > Priority: Minor > Time Spent: 10m > Remaining Estimate: 0h > > While looking at LUCENE-10534, found that *FieldSource exists implementation > after LUCENE-7407 can avoid value lookup when just checking for exists. > Detailed analysis here: > https://issues.apache.org/jira/browse/LUCENE-10534?focusedCommentId=17528369&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17528369 > Simple JMH performance tests comparing the original FloatFieldSource to the > new ones from PR #847. > > ||Benchmark||Mode||Cnt||Score and Error||Units|| > |MyBenchmark.testMaxFloatFunction|thrpt|25|65.668 ± 2.724|ops/s| > |MyBenchmark.testMaxFloatFunctionNewFloatFieldSource|thrpt|25|113.779 ± > 8.229|ops/s| > |MyBenchmark.testMaxFloatFunctionRareField|thrpt|25|237.400 ± 7.981|ops/s| > |MyBenchmark.testMaxFloatFunctionNewFloatFieldSourceRareField|thrpt|25|281.997 > ± 27.575|ops/s| > Source: https://github.com/risdenk/lucene-jmh -- This message was sent by Atlassian Jira (v8.20.7#820007) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org