Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add configurable options to nested workload #495

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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