You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ma...@apache.org on 2021/10/06 01:35:16 UTC

[solr] branch main updated: SOLR-15664: Dial in JsonFaceting benchmark to have more appropriate config.

This is an automated email from the ASF dual-hosted git repository.

markrmiller pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new 1fc44e5  SOLR-15664: Dial in JsonFaceting benchmark to have more appropriate config.
1fc44e5 is described below

commit 1fc44e55865e8e4abe2f2a36b9bd44fd7908fd78
Author: Mark Miller <ma...@gmail.com>
AuthorDate: Wed Sep 29 11:54:07 2021 -0500

    SOLR-15664: Dial in JsonFaceting benchmark to have more appropriate config.
---
 .../org/apache/solr/bench/search/JsonFaceting.java     | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/solr/benchmark/src/java/org/apache/solr/bench/search/JsonFaceting.java b/solr/benchmark/src/java/org/apache/solr/bench/search/JsonFaceting.java
index 61e4b87..61f0e35 100755
--- a/solr/benchmark/src/java/org/apache/solr/bench/search/JsonFaceting.java
+++ b/solr/benchmark/src/java/org/apache/solr/bench/search/JsonFaceting.java
@@ -48,7 +48,7 @@ import org.openjdk.jmh.infra.BenchmarkParams;
 @BenchmarkMode(Mode.Throughput)
 @OutputTimeUnit(TimeUnit.SECONDS)
 @Threads(1)
-@Warmup(time = 5, iterations = 3)
+@Warmup(time = 10, iterations = 4)
 @Measurement(time = 15, iterations = 5)
 @Fork(value = 1)
 @Timeout(time = 60)
@@ -59,7 +59,7 @@ public class JsonFaceting {
 
     public static final String collection = "testCollection";
 
-    @Param({"100000"})
+    @Param({"500000"})
     public int docCount;
 
     @Param("2")
@@ -68,7 +68,7 @@ public class JsonFaceting {
     @Param("1")
     int numReplicas;
 
-    @Param("2")
+    @Param("4")
     int numShards;
 
     // DV,  // DocValues, collect into ordinal array
@@ -86,10 +86,10 @@ public class JsonFaceting {
     @Param({"smart"})
     String fm;
 
-    @Param({"5000"})
+    @Param({"15000"})
     int facetCard;
 
-    @Param({"1000"})
+    @Param({"3000"})
     int facetCard2;
 
     private ModifiableSolrParams params;
@@ -99,8 +99,8 @@ public class JsonFaceting {
         BenchmarkParams benchmarkParams, MiniClusterState.MiniClusterBenchState miniClusterState)
         throws Exception {
 
-      System.setProperty("maxMergeAtOnce", "20");
-      System.setProperty("segmentsPerTier", "20");
+      System.setProperty("maxMergeAtOnce", "30");
+      System.setProperty("segmentsPerTier", "30");
 
       miniClusterState.startMiniCluster(nodeCount);
 
@@ -115,7 +115,7 @@ public class JsonFaceting {
                   strings().basicLatinAlphabet().maxCardinality(facetCard).ofLengthBetween(1, 64))
               .field(
                   "facet2_s",
-                  strings().basicLatinAlphabet().maxCardinality(facetCard).ofLengthBetween(1, 16))
+                  strings().basicLatinAlphabet().maxCardinality(facetCard).ofLengthBetween(1, 32))
               .field(
                   "facet3_s",
                   strings()
@@ -129,7 +129,7 @@ public class JsonFaceting {
               .field(integers().allWithMaxCardinality(facetCard2));
 
       miniClusterState.index(collection, docs, docCount);
-      miniClusterState.forceMerge(collection, 15);
+      miniClusterState.forceMerge(collection, 25);
 
       params = new ModifiableSolrParams();