adding examples

This commit is contained in:
Mark Wolters 2024-04-17 19:23:35 -04:00
parent 7cf6dab367
commit 8702aec522
4 changed files with 53 additions and 0 deletions

View File

@ -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};"

View File

@ -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};"

View File

@ -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};"

View File

@ -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};"