From 319e5e97f53b78bd6abf890f614ce69b426d6319 Mon Sep 17 00:00:00 2001 From: Michael Oviedo Date: Tue, 20 Aug 2024 20:47:36 +0000 Subject: [PATCH] add configurable throughput and client parameters Signed-off-by: Michael Oviedo --- nyc_taxis/test_procedures/default.json | 91 ++++++-------------------- 1 file changed, 21 insertions(+), 70 deletions(-) diff --git a/nyc_taxis/test_procedures/default.json b/nyc_taxis/test_procedures/default.json index 2e3069db..932b97f9 100644 --- a/nyc_taxis/test_procedures/default.json +++ b/nyc_taxis/test_procedures/default.json @@ -56,100 +56,51 @@ { "operation": "default", "warmup-iterations": 50, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 3 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ default_target_throughput or target_throughput | default(3) | tojson }}, + "clients": {{ default_clients or search_clients | default(1) }} }, { "operation": "range", "warmup-iterations": 50, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.7 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ range_target_throughput or target_throughput | default(0.7) | tojson }}, + "clients": {{ range_clients or search_clients | default(1) }} }, { "operation": "distance_amount_agg", "warmup-iterations": 50, - "iterations": 50 - {%- if not target_throughput %} - ,"target-throughput": 2 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 50, + "target-throughput": {{ distance_amount_agg_target_throughput or target_throughput | default(2) | tojson }}, + "clients": {{ distance_amount_agg_clients or search_clients | default(1) }} }, { "operation": "autohisto_agg", "warmup-iterations": 50, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ autohisto_agg_target_throughput or target_throughput | default(1.5) | tojson }}, + "clients": {{ autohisto_agg_clients or search_clients | default(1) }} }, { "operation": "date_histogram_agg", "warmup-iterations": 50, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ date_histogram_agg_target_throughput or target_throughput | default(1.5) | tojson }}, + "clients": {{ date_histogram_agg_clients or search_clients | default(1) }} }, { "operation": "desc_sort_tip_amount", "warmup-iterations": 50, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ desc_sort_tip_amount_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ desc_sort_tip_amount_clients or search_clients | default(1) }} }, { "operation": "asc_sort_tip_amount", "warmup-iterations": 50, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ asc_sort_tip_amount_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ asc_sort_tip_amount_clients or search_clients | default(1) }} } ] },