| 1 |
#/** |
| 2 |
# * Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 |
# * contributor license agreements. See the NOTICE file distributed with |
| 4 |
# * this work for additional information regarding copyright ownership. |
| 5 |
# * The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 |
# * (the "License"); you may not use this file except in compliance with |
| 7 |
# * the License. You may obtain a copy of the License at |
| 8 |
# * |
| 9 |
# * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 |
# * |
| 11 |
# * Unless required by applicable law or agreed to in writing, software |
| 12 |
# * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 |
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 |
# * See the License for the specific language governing permissions and |
| 15 |
# * limitations under the License. |
| 16 |
# */ |
| 17 |
# -------------------------------------------------------- |
| 18 |
# |
| 19 |
# Sample: what is the effect of doc size on indexing time? |
| 20 |
# |
| 21 |
# There are two parts in this test: |
| 22 |
# - PopulateShort adds 2N documents of length L |
| 23 |
# - PopulateLong adds N documents of length 2L |
| 24 |
# Which one would be faster? |
| 25 |
# The comparison is done twice. |
| 26 |
# |
| 27 |
# -------------------------------------------------------- |
| 28 |
|
| 29 |
# ------------------------------------------------------------------------------------- |
| 30 |
# multi val params are iterated by NewRound's, added to reports, start with column name. |
| 31 |
|
| 32 |
merge.factor=mrg:10:20 |
| 33 |
max.buffered=buf:100:1000 |
| 34 |
compound=true |
| 35 |
|
| 36 |
analyzer=org.apache.lucene.analysis.standard.StandardAnalyzer |
| 37 |
directory=FSDirectory |
| 38 |
#directory=ByteBuffersDirectory |
| 39 |
|
| 40 |
doc.stored=true |
| 41 |
doc.tokenized=true |
| 42 |
doc.term.vector=false |
| 43 |
log.step=500 |
| 44 |
|
| 45 |
work.dir=data |
| 46 |
docs.dir=reuters21578 |
| 47 |
|
| 48 |
content.source=org.apache.lucene.benchmark.byTask.feeds.SingleDocSource |
| 49 |
#content.source=org.apache.lucene.benchmark.byTask.feeds.ReutersContentSource |
| 50 |
|
| 51 |
query.maker=org.apache.lucene.benchmark.byTask.feeds.SimpleQueryMaker |
| 52 |
#query.maker=org.apache.lucene.benchmark.byTask.feeds.ReutersQueryMaker |
| 53 |
|
| 54 |
# task at this depth or less would print when they start |
| 55 |
task.max.depth.log=2 |
| 56 |
|
| 57 |
log.queries=false |
| 58 |
# ------------------------------------------------------------------------------------- |
| 59 |
|
| 60 |
{ |
| 61 |
|
| 62 |
{ "PopulateShort" |
| 63 |
CreateIndex |
| 64 |
{ AddDoc(4000) > : 20000 |
| 65 |
ForceMerge(1) |
| 66 |
CloseIndex |
| 67 |
> |
| 68 |
|
| 69 |
ResetSystemErase |
| 70 |
|
| 71 |
{ "PopulateLong" |
| 72 |
CreateIndex |
| 73 |
{ AddDoc(8000) > : 10000 |
| 74 |
ForceMerge(1) |
| 75 |
CloseIndex |
| 76 |
> |
| 77 |
|
| 78 |
ResetSystemErase |
| 79 |
|
| 80 |
NewRound |
| 81 |
|
| 82 |
} : 2 |
| 83 |
|
| 84 |
RepSumByName |
| 85 |
RepSelectByPref Populate |