History log of /external/lldb/test/lldbbench.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
80b4de8ae30ad7c044c0b5a78b8ba6a968115a8b 20-Apr-2012 Johnny Chen <johnny.chen@apple.com> Tests decorated with @benchmarks_test do not participate in the remote-macosx test suite run.
But, still, tearDown() should call super.tearDown(), not super.setUp(). :-)


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@155170 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/lldbbench.py
0d80e07d6d29b53ed59474e58307de716d81e45e 27-Oct-2011 Johnny Chen <johnny.chen@apple.com> Add display of min and max samples to Stopwatch's string representation.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@143087 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/lldbbench.py
289fd0e4af36f2b1242516cfe2aaab87aaf47e79 20-Oct-2011 Johnny Chen <johnny.chen@apple.com> Up until now, we have been using pexpect to spawn an lldb process and use lldb commands to
bring the debugger to the desired state.

This patch makes BenchBase inherit from TestBase, instead of Base (which is a parent class of
TestBase). This is so that we can also enjoy the Pythonic way of bringing the lldb debugger
to a desired state before running the benchmark and collect statistics.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@142562 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/lldbbench.py
113388fdb7fddce04da5016471371ee1d9af62f5 03-Aug-2011 Johnny Chen <johnny.chen@apple.com> Add the real benchmarks comparing lldb against gdb for repeated expression evaluations.
Modify lldbbench.py so that lldbtest.line_number() utility function is available to
BenchBase client as just line_number(), and modify lldbtest.py so that self.lldbExec
(the full path for the 'lldb' executable) is available to BenchBase client as well.

An example run of the test case on my MacBook Pro running Lion:

1: test_compare_lldb_to_gdb (TestRepeatedExprs.RepeatedExprsCase)
Test repeated expressions with lldb vs. gdb. ...
lldb_avg: 0.204339
gdb_avg: 0.205721
lldb_avg/gdb_avg: 0.993284
ok


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@136740 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/lldbbench.py
bd43453691bfdd60bd3906e1cc57d552a5c5299d 02-Aug-2011 Johnny Chen <johnny.chen@apple.com> Simple renaming: self.swatch -> self.stopwatch.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@136666 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/lldbbench.py
cbfd093661ebc3fe024f1a5826b66fcfefc0d65d 02-Aug-2011 Johnny Chen <johnny.chen@apple.com> Add a Stopwatch utility class to lldbench.py module and initialize an instance of
Stopwatch (self.swatch) within the BenchBase's setUp() instance method to be available
to all the child classes.

Use self.swatch to measure elapsed time in TestRepeatedExprs.py, which needs to be
modified later on to actually measure repeated expression evaluations within the
context of lldb as well as gdb.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@136664 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/lldbbench.py
71cb797f38e73fae0497ff6ab336efd357cf88ce 01-Aug-2011 Johnny Chen <johnny.chen@apple.com> Add an abstract base class called BenchBase to be inherited by benchmark tests.
Modify the example TestRepeatedExprs.py to use BenchBase, instead.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@136649 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/lldbbench.py