test(fast-browser): retain per-operation timing and failure costs
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
pairedArmOrder,
|
||||
safeFailure,
|
||||
summarizeBenchmarkAttempts,
|
||||
timingDelta,
|
||||
validWorkerCounters,
|
||||
summarizeTimings,
|
||||
validateBenchmarkOptions,
|
||||
@@ -27,6 +28,11 @@ test("timing aggregation reports bounded p50 and p95 without wall-clock assumpti
|
||||
assert.deepEqual(summarizeTimings([]), { count: 0, p50: null, p95: null });
|
||||
});
|
||||
|
||||
test("transport timer deltas preserve bounded operation names and failed costs", () => {
|
||||
assert.deepEqual(timingDelta({ observe: 12, closeTab: 4 }, { observe: 19, closeTab: 4, waitPopup: 8 }), { observe: 7, waitPopup: 8 });
|
||||
assert.deepEqual(timingDelta({ observe: 10 }, { observe: 9 }), {});
|
||||
});
|
||||
|
||||
test("paired order alternates AB and BA while retaining failed attempts", () => {
|
||||
assert.deepEqual(pairedArmOrder(1), ["baseline", "optimized"]);
|
||||
assert.deepEqual(pairedArmOrder(2), ["optimized", "baseline"]);
|
||||
|
||||
Reference in New Issue
Block a user