# Benchmarking queries in Elasticsearch to compare two different mappings

**URL:** <https://discuss.elastic.co/t/benchmarking-queries-in-elasticsearch-to-compare-two-different-mappings/175620>\
**Category:** Elasticsearch\
**Created:** [April 5, 2019, 2:58pm UTC](https://discuss.elastic.co/t/benchmarking-queries-in-elasticsearch-to-compare-two-different-mappings/175620 "2019-04-05T14:58:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Praneet\_Khandelwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/praneet_khandelwal/32/40565_2.png) [@Praneet\_Khandelwal](https://discuss.elastic.co/u/Praneet_Khandelwal)\
**Post date:** [April 5, 2019, 2:58pm UTC](https://discuss.elastic.co/t/benchmarking-queries-in-elasticsearch-to-compare-two-different-mappings/175620/1 "2019-04-05T14:58:30Z")

</div>

I have two different indices with same data but different index mappings(one has around 6000 indexed fields, and the other has around 70). I need to compare the querying speed on these two indices. What is the best way to benchmark? As in I have following issues:

1. How do I need to disable caching in queries. (I know real world would have caching enabled but I would just like to see the effects of an improved mapping)
2. Does the number of replica for the indices matter ?
3. what other parameters do I need to ensure are same before proceeding with the benchmarking?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 3, 2019, 2:58pm UTC](https://discuss.elastic.co/t/benchmarking-queries-in-elasticsearch-to-compare-two-different-mappings/175620/2 "2019-05-03T14:58:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
