This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFC 0/3] GDB Performance testing
- From: Yao Qi <yao at codesourcery dot com>
- To: <gdb-patches at sourceware dot org>
- Date: Wed, 28 Aug 2013 12:16:31 +0800
- Subject: [RFC 0/3] GDB Performance testing
- Authentication-results: sourceware.org; auth=none
- References: <520B7F70 dot 6070207 at codesourcery dot com>
This patch series implement GDB performance testing infrastructure
according to the design I posted here
<https://sourceware.org/ml/gdb-patches/2013-08/msg00380.html>
Here are some highlights:
- Performance testing can be run via 'make check-perf'
- GDB and GDBServer is started by dejagnu, so the usage of
'make check-perf' is same as the usage of existing 'make check'.
- Performance test result is saved in testsuite/perftest.log, which
is appended in multiple runs.
- Workload of each test can be customized by passing parameters to
'make check-perf'.
The basic usages and the outputs are as follows:
$ make check-perf
$ cat ./testsuite/perftest.log
solib 8 0.01
solib 16 0.03
solib 32 0.07
solib 64 0.19
solib 128 0.54
$ make check-perf RUNTESTFLAGS="--target_board=native-gdbserver solib.exp"
$ cat ./testsuite/perftest.log
solib 8 0.03
solib 16 0.05
solib 32 0.11
solib 64 0.26
solib 128 0.78
Specify the number of solibs in the test.
$ make check-perf RUNTESTFLAGS="--target_board=native-gdbserver solib.exp SOLIB_NUMBER=1024"
$ cat ./testsuite/perftest.log
solib 64 0.25
solib 128 0.7
solib 256 2.38
solib 512 9.67
solib 1024 53.0
GDB python doesn't know the perftest package located in
testsuite/gdb.perf/lib, so in every test, we need the following two
statements to add the path to sys.path.
gdb_test_no_output "python import os, sys"
gdb_test_no_output "python sys.path.insert\(0, os.path.abspath\(\"${srcdir}/${subdir}/lib\"\)\)"
I'll add other test cases when the basic form of test case is
determined.
*** BLURB HERE ***
Yao Qi (3):
New make target 'check-perf' and new dir gdb.perf
Perf test framework
Test on solib load and unload
gdb/Makefile.in | 8 ++
gdb/testsuite/Makefile.in | 15 +++-
gdb/testsuite/configure | 3 +-
gdb/testsuite/configure.ac | 2 +-
gdb/testsuite/gdb.perf/Makefile.in | 15 ++++
gdb/testsuite/gdb.perf/lib/perftest/config.py | 40 ++++++++++
gdb/testsuite/gdb.perf/lib/perftest/perftest.py | 49 ++++++++++++
gdb/testsuite/gdb.perf/lib/perftest/reporter.py | 38 +++++++++
gdb/testsuite/gdb.perf/lib/perftest/testresult.py | 42 ++++++++++
gdb/testsuite/gdb.perf/solib.c | 79 +++++++++++++++++++
gdb/testsuite/gdb.perf/solib.exp | 86 +++++++++++++++++++++
gdb/testsuite/gdb.perf/solib.py | 48 ++++++++++++
12 files changed, 420 insertions(+), 5 deletions(-)
create mode 100644 gdb/testsuite/gdb.perf/Makefile.in
create mode 100644 gdb/testsuite/gdb.perf/lib/perftest/__init__.py
create mode 100644 gdb/testsuite/gdb.perf/lib/perftest/config.py
create mode 100644 gdb/testsuite/gdb.perf/lib/perftest/perftest.py
create mode 100644 gdb/testsuite/gdb.perf/lib/perftest/reporter.py
create mode 100644 gdb/testsuite/gdb.perf/lib/perftest/testresult.py
create mode 100644 gdb/testsuite/gdb.perf/solib.c
create mode 100644 gdb/testsuite/gdb.perf/solib.exp
create mode 100644 gdb/testsuite/gdb.perf/solib.py
--
1.7.7.6