

def testParseSysbenchResult(self):
    results = []
    metadata = {
        
    }
    mysql_service_benchmark.ParseSysbenchOutput(self.contents, results, metadata)
    logging.info('results are, %s', results)
    expected_results = [sample.Sample('sysbench tps p0.1', 526.38, 'NA', {
        
    }), sample.Sample('sysbench tps p1', 526.38, 'NA', {
        
    }), sample.Sample('sysbench tps p5', 526.38, 'NA', {
        
    }), sample.Sample('sysbench tps p10', 526.38, 'NA', {
        
    }), sample.Sample('sysbench tps p50', 579.5, 'NA', {
        
    }), sample.Sample('sysbench tps p90', 636.0, 'NA', {
        
    }), sample.Sample('sysbench tps p95', 636.0, 'NA', {
        
    }), sample.Sample('sysbench tps p99', 636.0, 'NA', {
        
    }), sample.Sample('sysbench tps p99.9', 636.0, 'NA', {
        
    }), sample.Sample('sysbench tps average', 583.61, 'NA', {
        
    }), sample.Sample('sysbench tps stddev', 33.639045340624214, 'NA', {
        
    }), sample.Sample('sysbench tps cv', 0.05763959723209714, 'NA', {
        
    }), sample.Sample('sysbench latency min', 18.31, 'milliseconds', {
        
    }), sample.Sample('sysbench latency avg', 27.26, 'milliseconds', {
        
    }), sample.Sample('sysbench latency max', 313.5, 'milliseconds', {
        
    }), sample.Sample('sysbench latency percentile 99', 57.15, 'milliseconds', {
        
    })]
    self.assertSampleListsEqualUpToTimestamp(results, expected_results)

dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/tests/linux_benchmarks/mysql_service_benchmark_test.py MySQLServiceBenchmarkTestCase.testParseSysbenchResult/original