Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Add more context benchmarks #1108

Merged
merged 1 commit into from
May 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading