t addIframe(client);

  while (!isDone) {
    const startTime = performance.now();
    const response = await frame.contentWindow.fetch(resource);
    PerfTestRunner.measureValueAsync(performance.now() - startTime);
  }
  return;
}

PerfTestRunner.startMeasureValuesAsync({
  description: 'Measure the performance of fetch with live service worker.',
  unit: 'ms',
  run: runTest,
  done: testDone,
  iterationCount: 30
});
</script>
</body>
</html>
