eef9057cf02471eeb9a60df3486658fd9e13a7eb |
|
22-Oct-2011 |
Johnny Chen <johnny.chen@apple.com> |
Add bench.py as a driver script to run some benchmarks on lldb. Add benchmarks for expression evaluations (TestExpressionCmd.py) and disassembly (TestDoAttachThenDisassembly.py). An example: [17:45:55] johnny:/Volumes/data/lldb/svn/trunk/test $ ./bench.py 2>&1 | grep -P '^lldb.*benchmark:' lldb startup delay (create fresh target) benchmark: Avg: 0.104274 (Laps: 30, Total Elapsed Time: 3.128214) lldb startup delay (set first breakpoint) benchmark: Avg: 0.102216 (Laps: 30, Total Elapsed Time: 3.066470) lldb frame variable benchmark: Avg: 1.649162 (Laps: 20, Total Elapsed Time: 32.983245) lldb stepping benchmark: Avg: 0.104409 (Laps: 50, Total Elapsed Time: 5.220461) lldb expr cmd benchmark: Avg: 0.206774 (Laps: 25, Total Elapsed Time: 5.169350) lldb disassembly benchmark: Avg: 0.089086 (Laps: 10, Total Elapsed Time: 0.890859) git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@142708 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/benchmarks/disassembly/TestDoAttachThenDisassembly.py
|