From 8702aec5227f68ba2ec2e044a6bdce357c975a60 Mon Sep 17 00:00:00 2001 From: Mark Wolters Date: Wed, 17 Apr 2024 19:23:35 -0400 Subject: [PATCH] adding examples --- .../examples/optimizers/findmax_optimo_rate.yaml | 14 ++++++++++++++ .../optimizers/findmax_optimo_threads.yaml | 14 ++++++++++++++ .../examples/optimizers/findmax_rate.yaml | 13 +++++++++++++ .../examples/optimizers/findmax_threads.yaml | 12 ++++++++++++ 4 files changed, 53 insertions(+) create mode 100644 nbr/src/main/resources/examples/optimizers/findmax_optimo_rate.yaml create mode 100644 nbr/src/main/resources/examples/optimizers/findmax_optimo_threads.yaml create mode 100644 nbr/src/main/resources/examples/optimizers/findmax_rate.yaml create mode 100644 nbr/src/main/resources/examples/optimizers/findmax_threads.yaml diff --git a/nbr/src/main/resources/examples/optimizers/findmax_optimo_rate.yaml b/nbr/src/main/resources/examples/optimizers/findmax_optimo_rate.yaml new file mode 100644 index 000000000..e43ee75ec --- /dev/null +++ b/nbr/src/main/resources/examples/optimizers/findmax_optimo_rate.yaml @@ -0,0 +1,14 @@ +scenarios: + optimize_rate: + query: start alias=query_step tags='block:query' driver=stdout cycles=1000 + findmax: findmax activity=query_step base_value=100 step_value=50 min_frames=5 optimization_type=rate + optimo: optimo activity=query_step startrate=${findmax.rate} + +bindings: + number: Identity() + +blocks: + query: + ops: + query_op: "SELECT * FROM my_table WHERE id={number};" + diff --git a/nbr/src/main/resources/examples/optimizers/findmax_optimo_threads.yaml b/nbr/src/main/resources/examples/optimizers/findmax_optimo_threads.yaml new file mode 100644 index 000000000..2ba054d0a --- /dev/null +++ b/nbr/src/main/resources/examples/optimizers/findmax_optimo_threads.yaml @@ -0,0 +1,14 @@ +scenarios: + optimize_rate: + query: start alias=query_step tags='block:query' driver=stdout cycles=1000 + findmax: findmax activity=query_step base_value=20 step_value=10 min_frames=5 optimization_type=threads + optimo: optimo activity=query_step start_threads=${findmax.threads} + +bindings: + number: Identity() + +blocks: + query: + ops: + query_op: "SELECT * FROM my_table WHERE id={number};" + diff --git a/nbr/src/main/resources/examples/optimizers/findmax_rate.yaml b/nbr/src/main/resources/examples/optimizers/findmax_rate.yaml new file mode 100644 index 000000000..d9355aef2 --- /dev/null +++ b/nbr/src/main/resources/examples/optimizers/findmax_rate.yaml @@ -0,0 +1,13 @@ +scenarios: + optimize_rate: + query: start alias=query_step tags='block:query' driver=stdout cycles=1000 + findmax: findmax activity=query_step base_value=100 step_value=50 min_frames=5 optimization_type=rate + +bindings: + number: Identity() + +blocks: + query: + ops: + query_op: "SELECT * FROM my_table WHERE id={number};" + diff --git a/nbr/src/main/resources/examples/optimizers/findmax_threads.yaml b/nbr/src/main/resources/examples/optimizers/findmax_threads.yaml new file mode 100644 index 000000000..0668725df --- /dev/null +++ b/nbr/src/main/resources/examples/optimizers/findmax_threads.yaml @@ -0,0 +1,12 @@ +scenarios: + optimize_rate: + query: start alias=query_step tags='block:query' driver=stdout cycles=1000 + findmax: findmax activity=query_step base_value=20 step_value=10 min_frames=5 optimization_type=threads + +bindings: + number: Identity() + +blocks: + query: + ops: + query_op: "SELECT * FROM my_table WHERE id={number};"