def testTwoStreamGaps(self):
    # With two streams, overhead is compared to 2 * interval length.
    two_streams_with_gap = pd.DataFrame({'start_time': [0, 3, 0, 3],
                                         'duration': [1, 1, 1, 1],
                                         'size': [2, 2, 2, 2],
                                         'stream_num': [0, 0, 1, 1]})
    self.doTest(two_streams_with_gap, 2,
                {'net throughput': 4.0 * self.byte / self.sec,
                 'net throughput (with gap)': 2.0 * self.byte / self.sec})
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/tests/object_storage_multistream_analysis_test.py/TestThroughputStats.testTwoStreamGaps/original