diff options
Diffstat (limited to 'tools/benchmark_test.py')
-rwxr-xr-x | tools/benchmark_test.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/benchmark_test.py b/tools/benchmark_test.py index d0140c52c..2c1f384da 100755 --- a/tools/benchmark_test.py +++ b/tools/benchmark_test.py @@ -24,6 +24,17 @@ class TestBenchmark(DenoTestCase): # summary line assert summary["total"]["calls"] == 704 + def test_strace_parse2(self): + with open( + os.path.join(sys.path[0], "testdata/strace_summary2.out"), + "r") as f: + summary = benchmark.strace_parse(f.read()) + # first syscall line + assert summary["futex"]["calls"] == 449 + assert summary["futex"]["errors"] == 94 + # summary line + assert summary["total"]["calls"] == 821 + def test_max_mem_parse(self): with open(os.path.join(sys.path[0], "testdata/time.out"), "r") as f: data = f.read() |