Exemplo n.º 1
0
    def process_data(self, testdir, rawiter):
        results = RawResults('buffersize')
        data = []
        for line in rawiter:
            m = re.match("rawresult (\d+)", line)
            if m:
                data.append(2048 / int(m.group(1)))

        results.add_group("2048", data)
        return results
Exemplo n.º 2
0
    def process_data(self, testdir, rawiter):
        results = RawResults('buffersize')
        data = []
        for line in rawiter:
            m = re.match("rawresult (\d+)", line)
            if m:
                data.append(2048 / int(m.group(1)))

        results.add_group("2048", data)
        return results
Exemplo n.º 3
0
    def process_data(self, testdir, rawiter):
        results = RawResults('tracing')
        data = []
        for line in rawiter:
            m = re.match("trace: (\w+.*)", line)
            if m:
                data.append(m.group(1))

        if len(data) != 0:
            results.add_group(1, data)
        return results
Exemplo n.º 4
0
    def process_data(self, testdir, raw_iter):
        results = RawResults('Index')

        diff = []
        for line in raw_iter:
            m = re.match("Iteration\s+(\d+): time0 (\d+) time1 (\d+) difference (\d+)",
                         line)
            if m:
                diff.append(int(m.group(3)) - int(m.group(2)))

        results.add_group('Index', diff)
        return results
Exemplo n.º 5
0
    def process_data(self, testdir, raw_iter):
        results = RawResults('Index')

        diff = []
        for line in raw_iter:
            m = re.match("Iteration\s+(\d+): time0 (\d+) time1 (\d+) difference (\d+)",
                         line)
            if m:
                diff.append(int(m.group(3)) - int(m.group(2)))

        results.add_group('Index', diff)
        return results
Exemplo n.º 6
0
    def process_data(self, testdir, rawiter):
        results = RawResults('threads')
        data = []
        for line in rawiter:
            m = re.match("duration \d+: (\d+)", line)
            if m:
                data.append(int(m.group(1)))
                continue

            m = re.match("number of threads: (\d+)", line)
            if m:
                results.add_group(m.group(1), data)
                data = []

        return results
Exemplo n.º 7
0
    def process_data(self, testdir, rawiter):
        results = RawResults('threads')
        data = []
        for line in rawiter:
            m = re.match("duration \d+: (\d+)", line)
            if m:
                data.append(int(m.group(1)))
                continue

            m = re.match("number of threads: (\d+)", line)
            if m:
                results.add_group(m.group(1), data)
                data = []

        return results
Exemplo n.º 8
0
 def process_data(self, testdir, raw_iter):
     results = RawResults('iter')
     data = []
     index = None
     iteration = 1
     for line in raw_iter:
         m = re.match("page\s+(\d+)\s+took\s+(\d+)", line)
         if m:
             if index is not None and int(m.group(1)) < index:
                 # new iteration
                 results.add_group(iteration, data)
                 iteration += 1
                 data = [int(m.group(2))]
             else:
                 data.append(int(m.group(2)))
             index = int(m.group(1))
     results.add_group(iteration, data)
     return results
Exemplo n.º 9
0
 def process_data(self, testdir, raw_iter):
     results = RawResults('iter')
     data = []
     index = None
     iteration = 1
     for line in raw_iter:
         m = re.match("page\s+(\d+)\s+took\s+(\d+)", line)
         if m:
             if index is not None and int(m.group(1)) < index:
                 # new iteration
                 results.add_group(iteration, data)
                 iteration += 1
                 data = [int(m.group(2))]
             else:
                 data.append(int(m.group(2)))
             index = int(m.group(1))
     results.add_group(iteration, data)
     return results
Exemplo n.º 10
0
    def process_data(self, testdir, rawiter):
        results = RawResults('connections')
        times = []
        connections = None
        for line in rawiter:
            m = re.match("running with (\d+) connections", line)
            if m:
                if times:
                    results.add_group(connections, times)
                connections = int(m.group(1))
                times = []
                continue

            m = re.match("\d+ (\d+)", line)
            if m:
                assert(connections is not None)
                times.append(int(m.group(1)))

        if len(times) != 0:
            results.add_group(connections, times)
        return results
Exemplo n.º 11
0
    def process_data(self, testdir, rawiter):
        results = RawResults('iteration')
        times = []
        iteration = None
        for line in rawiter:
            m = re.match("transport_bench: iteration (\d+)", line)
            if m:
                if times:
                    results.add_group(iteration, times)
                iteration = int(m.group(1))
                times = []
                continue

            m = re.match("page \d+ took (\d+)", line)
            if m:
                assert(iteration is not None)
                times.append(int(m.group(1)))

        if len(times) != 0:
            results.add_group(iteration, times)
        return results
Exemplo n.º 12
0
    def process_data(self, testdir, rawiter):
        results = RawResults('core')
        times = []
        core = None
        for line in rawiter:
            m = re.match("Running \w+ between core \d+ and core (\d+)", line)
            if m:
                if times:
                    results.add_group(core, times)
                core = int(m.group(1))
                times = []
                continue

            m = re.match("page \d+ took (\d+)", line)
            if m:
                assert(core is not None)
                times.append(int(m.group(1)))

        if len(times) != 0:
            results.add_group(core, times)
        return results
Exemplo n.º 13
0
    def process_data(self, testdir, rawiter):
        results = RawResults('iteration')
        times = []
        iteration = None
        for line in rawiter:
            m = re.match("transport_bench: iteration (\d+)", line)
            if m:
                if times:
                    results.add_group(iteration, times)
                iteration = int(m.group(1))
                times = []
                continue

            m = re.match("page \d+ took (\d+)", line)
            if m:
                assert(iteration is not None)
                times.append(int(m.group(1)))

        if len(times) != 0:
            results.add_group(iteration, times)
        return results
Exemplo n.º 14
0
    def process_data(self, testdir, rawiter):
        results = RawResults('core')
        times = []
        core = None
        for line in rawiter:
            m = re.match("Running \w+ between core \d+ and core (\d+)", line)
            if m:
                if times:
                    results.add_group(core, times)
                core = int(m.group(1))
                times = []
                continue

            m = re.match("page \d+ took (\d+)", line)
            if m:
                assert(core is not None)
                times.append(int(m.group(1)))

        if len(times) != 0:
            results.add_group(core, times)
        return results
Exemplo n.º 15
0
    def process_data(self, testdir, rawiter):
        results = RawResults('message type')
        times = []
        iteration = None
        for line in rawiter:
            m = re.match("Running latency test for message (.*)....", line)
            if m:
                if times:
                    results.add_group(iteration, times)
                iteration = m.group(1)
                times = []
                continue

            m = re.match("page \d+ took (\d+)", line)
            if m:
                assert(iteration is not None)
                times.append(int(m.group(1)))

        if len(times) != 0:
            results.add_group(iteration, times)
        return results
Exemplo n.º 16
0
    def process_data(self, testdir, rawiter):
        results = RawResults('message type')
        times = []
        iteration = None
        for line in rawiter:
            m = re.match("Running latency test for message (.*)....", line)
            if m:
                if times:
                    results.add_group(iteration, times)
                iteration = m.group(1)
                times = []
                continue

            m = re.match("page \d+ took (\d+)", line)
            if m:
                assert (iteration is not None)
                times.append(int(m.group(1)))

        if len(times) != 0:
            results.add_group(iteration, times)
        return results