Skip to content

Commit

Permalink
Tests: Add more context benchmarks (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grazfather committed May 29, 2024
1 parent bdf8219 commit 757f5bb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/perf/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,24 @@ def test_cmd_context(self):
gdb.execute("start")
self.__benchmark(gdb.execute, "context")

@pytest.mark.benchmark(warmup=True)
def test_cmd_context_regs(self):
gdb = self._gdb
gdb.execute("start")
self.__benchmark(gdb.execute, "context regs")

@pytest.mark.benchmark(warmup=True)
def test_cmd_context_stack(self):
gdb = self._gdb
gdb.execute("start")
self.__benchmark(gdb.execute, "context stack")

@pytest.mark.benchmark(warmup=True)
def test_cmd_context_code(self):
gdb = self._gdb
gdb.execute("start")
self.__benchmark(gdb.execute, "context code")

@pytest.mark.benchmark
def test_gef_memory_maps(self):
gdb = self._gdb
Expand Down

0 comments on commit 757f5bb

Please sign in to comment.