fix: harden WASM phase 5 harness
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user