summaryrefslogtreecommitdiffstats
path: root/lldb/test/benchmarks/example
Commit message (Collapse)AuthorAgeFilesLines
* Directory renaming: example -> expression.Johnny Chen2011-10-203-189/+0
| | | | llvm-svn: 142601
* Parameterize the iteration count used when running benchmarks, instead of ↵Johnny Chen2011-10-201-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hard-coded inside the test case. Add a '-y count' option to the test driver for this purpose. An example: $ ./dotest.py -v -y 25 +b -p TestDisassembly.py ... ---------------------------------------------------------------------- Collected 2 tests 1: test_run_gdb_then_lldb (TestDisassembly.DisassembleDriverMainLoop) Test disassembly on a large function with lldb vs. gdb. ... gdb benchmark: Avg: 0.226305 (Laps: 25, Total Elapsed Time: 5.657614) lldb benchmark: Avg: 0.113864 (Laps: 25, Total Elapsed Time: 2.846606) lldb_avg/gdb_avg: 0.503146 ok 2: test_run_lldb_then_gdb (TestDisassembly.DisassembleDriverMainLoop) Test disassembly on a large function with lldb vs. gdb. ... lldb benchmark: Avg: 0.113008 (Laps: 25, Total Elapsed Time: 2.825201) gdb benchmark: Avg: 0.225240 (Laps: 25, Total Elapsed Time: 5.631001) lldb_avg/gdb_avg: 0.501723 ok ---------------------------------------------------------------------- Ran 2 tests in 41.346s OK llvm-svn: 142598
* If we spawn an lldb process for test (via pexpect), do not load the init ↵Johnny Chen2011-10-071-2/+2
| | | | | | | | | file unless told otherwise. Set up self.lldbOption to be "--no-lldbibit" unless env variable NO_LLDBIBIT is defined and equals "NO". Also add "-nx" to gdb spawned. llvm-svn: 141384
* Print out the stopwatch (which contains laps, total elapsed time, and average)Johnny Chen2011-08-041-2/+2
| | | | | | instead of just the average. llvm-svn: 136932
* Fix typos.Johnny Chen2011-08-031-1/+1
| | | | llvm-svn: 136809
* Add license header comment.Johnny Chen2011-08-031-0/+8
| | | | llvm-svn: 136808
* Add the real benchmarks comparing lldb against gdb for repeated expression ↵Johnny Chen2011-08-022-21/+111
| | | | | | | | | | | | | | | | | | | 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 llvm-svn: 136740
* Simple renaming: self.swatch -> self.stopwatch.Johnny Chen2011-08-021-2/+2
| | | | llvm-svn: 136666
* Add a Stopwatch utility class to lldbench.py module and initialize an ↵Johnny Chen2011-08-024-9/+49
| | | | | | | | | | | | | 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. llvm-svn: 136664
* Add an abstract base class called BenchBase to be inherited by benchmark tests.Johnny Chen2011-08-011-2/+2
| | | | | | Modify the example TestRepeatedExprs.py to use BenchBase, instead. llvm-svn: 136649
* Add a @benchmarks_test decorator for test method we want to categorize as ↵Johnny Chen2011-07-303-0/+48
benchmarks test. The test driver now takes an option "+b" which enables to run just the benchmarks tests. By default, tests decorated with the @benchmarks_test decorator do not get run. Add an example benchmarks test directory which contains nothing for the time being, just to demonstrate the @benchmarks_test concept. For example, $ ./dotest.py -v benchmarks ... ---------------------------------------------------------------------- Collected 2 tests 1: test_with_gdb (TestRepeatedExprs.RepeatedExprssCase) Test repeated expressions with gdb. ... skipped 'benchmarks tests' 2: test_with_lldb (TestRepeatedExprs.RepeatedExprssCase) Test repeated expressions with lldb. ... skipped 'benchmarks tests' ---------------------------------------------------------------------- Ran 2 tests in 0.047s OK (skipped=2) $ ./dotest.py -v +b benchmarks ... ---------------------------------------------------------------------- Collected 2 tests 1: test_with_gdb (TestRepeatedExprs.RepeatedExprssCase) Test repeated expressions with gdb. ... running test_with_gdb benchmarks result for test_with_gdb ok 2: test_with_lldb (TestRepeatedExprs.RepeatedExprssCase) Test repeated expressions with lldb. ... running test_with_lldb benchmarks result for test_with_lldb ok ---------------------------------------------------------------------- Ran 2 tests in 0.270s OK Also mark some Python API tests which are missing the @python_api_test decorator. llvm-svn: 136553
OpenPOWER on IntegriCloud