Skip to content

Commit

Permalink
add configurable options to nested workload (#495)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Oviedo <[email protected]>
  • Loading branch information
OVI3D0 authored Nov 13, 2024
1 parent 9b6e85b commit 6cb0a17
Showing 1 changed file with 28 additions and 91 deletions.
119 changes: 28 additions & 91 deletions nested/test_procedures/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,115 +60,52 @@
},
{
"operation": "randomized-nested-queries",
"warmup-iterations": 500,
"iterations": 1000
{%- if not target_throughput %}
,"target-throughput": 20
{%- elif target_throughput is string and target_throughput.lower() == 'none' %}
{%- else %}
,"target-throughput": {{ target_throughput | tojson }}
{%- endif %}
{%- if not search_clients %}
,"clients": 2
{%- elif search_clients is defined and search_clients %}
,"clients": {{ search_clients | tojson}}
{%- endif %}
"warmup-iterations": {{ randomized_nested_queries_warmup_iterations or warmup_iterations | default(500) | tojson }},
"iterations": {{ randomized_nested_queries_iterations or iterations | default(1000) | tojson }},
"target-throughput": {{ randomized_nested_queries_target_throughput or target_throughput | default(20) | tojson }},
"clients": {{ randomized_nested_queries_search_clients or search_clients | default(2) }}
},
{
"operation": "randomized-term-queries",
"warmup-iterations": 500,
"iterations": 200
{%- if not target_throughput %}
,"target-throughput": 25
{%- elif target_throughput is string and target_throughput.lower() == 'none' %}
{%- else %}
,"target-throughput": {{ target_throughput | tojson }}
{%- endif %}
{%- if not search_clients %}
,"clients": 2
{%- elif search_clients is defined and search_clients %}
,"clients": {{ search_clients | tojson}}
{%- endif %}
"warmup-iterations": {{ randomized_term_queries_warmup_iterations or warmup_iterations | default(500) | tojson }},
"iterations": {{ randomized_term_queries_iterations or iterations | default(200) | tojson }},
"target-throughput": {{ randomized_term_queries_target_throughput or target_throughput | default(25) | tojson }},
"clients": {{ randomized_term_queries_search_clients or search_clients | default(2) }}
},
{
"operation": "randomized-sorted-term-queries",
"warmup-iterations": 500,
"iterations": 200
{%- if not target_throughput %}
,"target-throughput": 16
{%- elif target_throughput is string and target_throughput.lower() == 'none' %}
{%- else %}
,"target-throughput": {{ target_throughput | tojson }}
{%- endif %}
{%- if not search_clients %}
,"clients": 2
{%- elif search_clients is defined and search_clients %}
,"clients": {{ search_clients | tojson}}
{%- endif %}
"warmup-iterations": {{ randomized_sorted_term_queries_warmup_iterations or warmup_iterations | default(500) | tojson }},
"iterations": {{ randomized_sorted_term_queries_iterations or iterations | default(200) | tojson }},
"target-throughput": {{ randomized_sorted_term_queries_target_throughput or target_throughput | default(16) | tojson }},
"clients": {{ randomized_sorted_term_queries_search_clients or search_clients | default(2) }}
},
{
"operation": "match-all",
"warmup-iterations": 500,
"iterations": 200
{%- if not target_throughput %}
,"target-throughput": 5
{%- elif target_throughput is string and target_throughput.lower() == 'none' %}
{%- else %}
,"target-throughput": {{ target_throughput | tojson }}
{%- endif %}
{%- if not search_clients %}
,"clients": 2
{%- elif search_clients is defined and search_clients %}
,"clients": {{ search_clients | tojson}}
{%- endif %}
"warmup-iterations": {{ match_all_warmup_iterations or warmup_iterations | default(500) | tojson }},
"iterations": {{ match_all_iterations or iterations | default(200) | tojson }},
"target-throughput": {{ match_all_target_throughput or target_throughput | default(5) | tojson }},
"clients": {{ match_all_search_clients or search_clients | default(2) }}
},
{
"operation": "nested-date-histo",
"warmup-iterations": 100,
"iterations": 200
{%- if not target_throughput %}
,"target-throughput": 1
{%- elif target_throughput is string and target_throughput.lower() == 'none' %}
{%- else %}
,"target-throughput": {{ target_throughput | tojson }}
{%- endif %}
{%- if not search_clients %}
,"clients": 2
{%- elif search_clients is defined and search_clients %}
,"clients": {{ search_clients | tojson}}
{%- endif %}
"warmup-iterations": {{ nested_date_histo_warmup_iterations or warmup_iterations | default(100) | tojson }},
"iterations": {{ nested_date_histo_iterations or iterations | default(200) | tojson }},
"target-throughput": {{ nested_date_histo_target_throughput or target_throughput | default(1) | tojson }},
"clients": {{ nested_date_histo_search_clients or search_clients | default(2) }}
},
{
"operation": "randomized-nested-queries-with-inner-hits_default",
"warmup-iterations": 500,
"iterations": 1000
{%- if not target_throughput %}
,"target-throughput": 18
{%- elif target_throughput is string and target_throughput.lower() == 'none' %}
{%- else %}
,"target-throughput": {{ target_throughput | tojson }}
{%- endif %}
{%- if not search_clients %}
,"clients": 2
{%- elif search_clients is defined and search_clients %}
,"clients": {{ search_clients | tojson}}
{%- endif %}
"warmup-iterations": {{ randomized_nested_queries_with_inner_hits_default_warmup_iterations or warmup_iterations | default(500) | tojson }},
"iterations": {{ randomized_nested_queries_with_inner_hits_default_iterations or iterations | default(1000) | tojson }},
"target-throughput": {{ randomized_nested_queries_with_inner_hits_default_target_throughput or target_throughput | default(18) | tojson }},
"clients": {{ randomized_nested_queries_with_inner_hits_default_search_clients or search_clients | default(2) }}
},
{
"operation": "randomized-nested-queries-with-inner-hits_default_big_size",
"warmup-iterations": 500,
"iterations": 1000
{%- if not target_throughput %}
,"target-throughput": 16
{%- elif target_throughput is string and target_throughput.lower() == 'none' %}
{%- else %}
,"target-throughput": {{ target_throughput | tojson }}
{%- endif %}
{%- if not search_clients %}
,"clients": 2
{%- elif search_clients is defined and search_clients %}
,"clients": {{ search_clients | tojson}}
{%- endif %}
"warmup-iterations": {{ randomized_nested_queries_with_inner_hits_default_big_size_warmup_iterations or warmup_iterations | default(500) | tojson }},
"iterations": {{ randomized_nested_queries_with_inner_hits_default_big_size_iterations or iterations | default(1000) | tojson }},
"target-throughput": {{ randomized_nested_queries_with_inner_hits_default_big_size_target_throughput or target_throughput | default(16) | tojson }},
"clients": {{ randomized_nested_queries_with_inner_hits_default_big_size_search_clients or search_clients | default(2) }}
}
]
},
Expand Down

0 comments on commit 6cb0a17

Please sign in to comment.