# Analy query performance

**URL:** https://discuss.elastic.co/t/analy-query-performance/133750
**Category:** Elasticsearch
**Created:** [May 29, 2018, 8:22pm UTC](https://discuss.elastic.co/t/analy-query-performance/133750 "2018-05-29T20:22:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Anca\_Turc](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@Anca\_Turc](https://discuss.elastic.co/u/Anca_Turc)
#### Post date: [May 29, 2018, 8:22pm UTC](https://discuss.elastic.co/t/analy-query-performance/133750/1 "2018-05-29T20:22:20Z")

</div>

I am trying to analyze query performance when running multiple term queries, connected once throught "AND" and once throught "OR"  
For example if I have this 2 queries

> ```
> {
> "size": 0,
> "terminate_after": 1000000000,
> "query": {
> "query_string": {
> "fields": ["text"],
> "query": "york apple",
> "default_operator": "and",
> "fuzziness": "0",
> "phrase_slop": 0
> }
> }
> }
> 
> ```

and

> ```
> {
> "size": 0,
> "terminate_after": 1000000000,
> "query": {
> "query_string": {
> "fields": ["text"],
> "query": "york apple",
> "default_operator": "or",
> "fuzziness": "0",
> "phrase_slop": 0
> }
> }
> }
> 
> ```

where I can see search per seconds for each?  
I was thinking to create a script to sent the first query 100 times and then find information regarding search per second and hits  
and also the same for the second query , and then to create a graphic to represent the queries performance difference between connecting terms with "AND" or "OR", but I am not really sure where I can find this info regarding query per second and hits.

---

<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: [June 26, 2018, 8:26pm UTC](https://discuss.elastic.co/t/analy-query-performance/133750/2 "2018-06-26T20:26:46Z")

</div>

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