Commit e0d85df2 authored by Florian Fischer's avatar Florian Fischer
Browse files

add support for min/max/probability server commands

Generate and evaluate '0us-10ms-0.5' emper flavors.
parent dd436a32
......@@ -383,12 +383,17 @@ def generate_computation_flavors(flavors: Flavors,
for computation_desc in computation_descs:
cmd_suffix = ''
parts = computation_desc.split('-')
for part in parts:
for part in parts[:2]:
match = re.match(COMPUTATION_RE, part)
assert match
computation, unit = match.groups()
cmd_suffix += f' {int(computation) * S2NS[unit]}'
# add min max probability
if len(parts) == 3:
probability = float(parts[2])
cmd_suffix += f' {probability}'
comp_flavor_dict = flavor_dict.copy()
# strip first newline since the prepare_flavors() will add it back
comp_flavor_dict['server_cmd_suffix'] = cmd_suffix[1:]
......@@ -397,7 +402,7 @@ def generate_computation_flavors(flavors: Flavors,
return comp_flavors
COMPUTATION_DESCRIPTIONS = ['200us', '0us-1ms']
COMPUTATION_DESCRIPTIONS = ['200us', '0us-10ms-0.5']
FLAVORS.update(generate_computation_flavors(FLAVORS, COMPUTATION_DESCRIPTIONS))
......
......@@ -115,13 +115,13 @@ eval_latency() {
mkdir -p "${OUT}"/latency
./eval.py "${COMMON_ARGS_LATENCY[@]}" -f {no-sleep,vanilla}-{200us,0us-1ms} \
./eval.py "${COMMON_ARGS_LATENCY[@]}" -f {no-sleep,vanilla}-{200us,0us-10ms-0.5} \
-- emper go-200us tokio-200us
./eval.py "${COMMON_ARGS_LATENCY[@]}" -f \
{pipe,waitfd}{,-no-comp}-{200us,0us-1ms} \
io-stealing-{pipe,waitfd}-no-comp-{200us,0us-1ms} \
io-notification-{waitfree,waitfd}-no-comp-{200us,0us-1ms} \
{pipe,waitfd}{,-no-comp}-{200us,0us-10ms-0.5} \
io-stealing-{pipe,waitfd}-no-comp-{200us,0us-10ms-0.5} \
io-notification-{waitfree,waitfd}-no-comp-{200us,0us-10ms-0.5} \
-- emper
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment