fix: harden WASM phase 5 harness

This commit is contained in:
udo
2026-06-12 20:13:07 +00:00
parent 961df2d542
commit 89b5499c8f
9 changed files with 287 additions and 33 deletions
+1 -4
View File
@@ -63,9 +63,6 @@ def request_once(base_url: str, host_header: str, path: str, timeout: float) ->
def measure_backend(backend: str, base_url: str, host_header: str, targets: list[Target], warmups: int, samples: int, timeout: float) -> list[Measurement]:
results: list[Measurement] = []
for target in targets:
path = urlparse(target.url).path
if "?" in target.url:
path = target.url
for _ in range(warmups):
request_once(base_url, host_header, target.url, timeout)
durations: list[float] = []
@@ -127,7 +124,7 @@ def main() -> int:
parser.add_argument("--wasm-base-url", default="", help="optional wasm worker URL; omitted until worker exists")
parser.add_argument("--host-header", default="uce.openfu.com")
parser.add_argument("--warmups", type=int, default=2)
parser.add_argument("--samples", type=int, default=5)
parser.add_argument("--samples", type=int, default=20)
parser.add_argument("--timeout", type=float, default=10.0)
parser.add_argument("--out-dir", default="/tmp/uce/wasm-phase5")
args = parser.parse_args()