[
https://issues.apache.org/jira/browse/SOLR-5707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17684917#comment-17684917
]
Kevin Risden commented on SOLR-5707:
------------------------------------
>From https://github.com/risdenk/lucene-jmh I added Lucene Javascript compiler
>without needing SOLR-5707 yet.
{code:java}
Benchmark Mode Cnt Score
Error Units
BenchmarkConstantFunctions.testBasicMath1 thrpt 25 118.011
± 8.295 ops/s
BenchmarkConstantFunctions.testBasicMath2 thrpt 25 37.937
± 0.988 ops/s
BenchmarkConstantFunctions.testBasicMath3 thrpt 25 93.490
± 3.509 ops/s
BenchmarkConstantFunctions.testBasicNoMath1 thrpt 25 142.449
± 7.410 ops/s
BenchmarkConstantFunctions.testBasicNoMath2 thrpt 25 50.868
± 3.303 ops/s
BenchmarkConstantFunctions.testBasicNoMath3 thrpt 25 157.506
± 13.974 ops/s
BenchmarkConstantFunctions.testBasicLuceneCompiler1 thrpt 25 90.476 ±
10.714 ops/s
BenchmarkConstantFunctions.testBasicLuceneCompiler2 thrpt 25 64.993 ±
11.400 ops/s
BenchmarkConstantFunctions.testBasicLuceneCompiler3 thrpt 25 109.659 ±
9.749 ops/s
{code}
for some VERY simple constant functions - the Lucene compiler doesn't
outperform...
However for some simple functions that don't access Lucene fields, the Lucene
compiler stuff does perform better:
{code:java}
Benchmark Mode Cnt Score Error
Units
BenchmarkSimpleFunctions.testBasicLuceneCompiler1 thrpt 25 507.238 ± 3.996
ops/s
BenchmarkSimpleFunctions.testBasicQuery1 thrpt 25 254.121 ± 4.365
ops/s
BenchmarkSimpleFunctions.testBasicSimpleQuery1 thrpt 25 349.014 ± 13.325
ops/s
{code}
thats running just regular functions - ~1.5-2x faster. So the slowness seems
like it might be actually accessing the Lucene field data to do the functions.
> Lucene Expressions in Solr
> --------------------------
>
> Key: SOLR-5707
> URL: https://issues.apache.org/jira/browse/SOLR-5707
> Project: Solr
> Issue Type: New Feature
> Reporter: Ryan Ernst
> Priority: Major
> Attachments: SOLR-5707.patch, SOLR-5707_vsp.patch
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Expressions should be available for use in Solr.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]