reformatted imports to work better on other machines, plus added benchmarking to project
This commit is contained in:
38
benchmarking/srsps.py
Normal file
38
benchmarking/srsps.py
Normal file
@@ -0,0 +1,38 @@
|
||||
|
||||
from meow_base.patterns import FileEventPattern
|
||||
from meow_base.recipes import getRecipeFromNotebook
|
||||
|
||||
from shared import run_test, SRSES
|
||||
|
||||
def single_rule_single_event_sequential(job_count:int, REPEATS, job_counter, requested_jobs, runtime_start):
|
||||
patterns = {}
|
||||
pattern = FileEventPattern(
|
||||
f"pattern_one",
|
||||
f"testing/*",
|
||||
"recipe_two",
|
||||
"INPUT_FILE",
|
||||
parameters={
|
||||
"MAX_COUNT":job_count
|
||||
}
|
||||
)
|
||||
patterns[pattern.name] = pattern
|
||||
|
||||
recipe = getRecipeFromNotebook("recipe_two", "sequential.ipynb")
|
||||
|
||||
recipes = {
|
||||
recipe.name: recipe
|
||||
}
|
||||
|
||||
run_test(
|
||||
patterns,
|
||||
recipes,
|
||||
1,
|
||||
job_count,
|
||||
REPEATS,
|
||||
job_counter,
|
||||
requested_jobs,
|
||||
runtime_start,
|
||||
signature=SRSES,
|
||||
execution=True,
|
||||
print_logging=False
|
||||
)
|
||||
Reference in New Issue
Block a user