Remove the -y option from dotest.py.
authorZachary Turner <zturner@google.com>
Thu, 10 Dec 2015 18:52:09 +0000 (18:52 +0000)
committerZachary Turner <zturner@google.com>
Thu, 10 Dec 2015 18:52:09 +0000 (18:52 +0000)
llvm-svn: 255280

lldb/packages/Python/lldbsuite/test/benchmarks/disassembly/TestDisassembly.py
lldb/packages/Python/lldbsuite/test/benchmarks/disassembly/TestDoAttachThenDisassembly.py
lldb/packages/Python/lldbsuite/test/benchmarks/disassembly/TestXcode41Vs42GDBDisassembly.py
lldb/packages/Python/lldbsuite/test/benchmarks/expression/TestExpressionCmd.py
lldb/packages/Python/lldbsuite/test/benchmarks/expression/TestRepeatedExprs.py
lldb/packages/Python/lldbsuite/test/benchmarks/frame_variable/TestFrameVariableResponse.py
lldb/packages/Python/lldbsuite/test/benchmarks/startup/TestStartupDelays.py
lldb/packages/Python/lldbsuite/test/benchmarks/stepping/TestSteppingSpeed.py
lldb/packages/Python/lldbsuite/test/benchmarks/turnaround/TestCompileRunToBreakpointTurnaround.py
lldb/packages/Python/lldbsuite/test/configuration.py
lldb/packages/Python/lldbsuite/test/dotest.py

index 9c4726f..a18cb2a 100644 (file)
@@ -36,9 +36,7 @@ class DisassembleDriverMainLoop(BenchBase):
         self.function = 'Driver::MainLoop()'
         self.lldb_avg = None
         self.gdb_avg = None
-        self.count = configuration.bmIterationCount
-        if self.count <= 0:
-            self.count = 5
+        self.count = 5
 
     @benchmarks_test
     @no_debug_info_test
index 81e364d..b7b0709 100644 (file)
@@ -18,9 +18,7 @@ class AttachThenDisassemblyBench(BenchBase):
     def setUp(self):
         BenchBase.setUp(self)
         self.exe = lldbtest_config.lldbExec
-        self.count = configuration.bmIterationCount
-        if self.count <= 0:
-            self.count = 10
+        self.count = 10
 
     @benchmarks_test
     @no_debug_info_test
index 3080c27..745e7b6 100644 (file)
@@ -21,9 +21,7 @@ class XCode41Vs42GDBDisassembly(BenchBase):
         self.function = 'Driver::MainLoop()'
         self.gdb_41_avg = None
         self.gdb_42_avg = None
-        self.count = configuration.bmIterationCount
-        if self.count <= 0:
-            self.count = 5
+        self.count = 5
 
     @benchmarks_test
     @no_debug_info_test
index 966b736..abf4514 100644 (file)
@@ -17,9 +17,7 @@ class ExpressionEvaluationCase(BenchBase):
         BenchBase.setUp(self)
         self.source = 'main.cpp'
         self.line_to_break = line_number(self.source, '// Set breakpoint here.')
-        self.count = configuration.bmIterationCount
-        if self.count <= 0:
-            self.count = 25
+        self.count = 25
 
     @benchmarks_test
     @expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
index 223561e..e5cada3 100644 (file)
@@ -19,9 +19,7 @@ class RepeatedExprsCase(BenchBase):
         self.line_to_break = line_number(self.source, '// Set breakpoint here.')
         self.lldb_avg = None
         self.gdb_avg = None
-        self.count = configuration.bmIterationCount
-        if self.count <= 0:
-            self.count = 100
+        self.count = 100
 
     @benchmarks_test
     @expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
index 16dd887..5fdf057 100644 (file)
@@ -18,10 +18,7 @@ class FrameVariableResponseBench(BenchBase):
         BenchBase.setUp(self)
         self.exe = lldbtest_config.lldbExec
         self.break_spec = '-n main'
-
-        self.count = configuration.bmIterationCount
-        if self.count <= 0:
-            self.count = 20
+        self.count = 20
 
     @benchmarks_test
     @no_debug_info_test
index d0532cd..a215721 100644 (file)
@@ -23,10 +23,7 @@ class StartupDelaysBench(BenchBase):
         self.stopwatch3 = Stopwatch()
         self.exe = lldbtest_config.lldbExec
         self.break_spec = '-n main'
-
-        self.count = configuration.bmIterationCount
-        if self.count <= 0:
-            self.count = 30
+        self.count = 30
 
     @benchmarks_test
     @no_debug_info_test
index db2bd73..14738a9 100644 (file)
@@ -16,10 +16,7 @@ class SteppingSpeedBench(BenchBase):
         BenchBase.setUp(self)
         self.exe = lldbtest_config.lldbExec
         self.break_spec = '-n main'
-
-        self.count = configuration.bmIterationCount
-        if self.count <= 0:
-            self.count = 50
+        self.count = 50
 
         #print("self.exe=%s" % self.exe)
         #print("self.break_spec=%s" % self.break_spec)
index 826546d..731eb13 100644 (file)
@@ -17,10 +17,7 @@ class CompileRunToBreakpointBench(BenchBase):
         BenchBase.setUp(self)
         self.exe = lldbtest_config.lldbExec
         self.function = 'Driver::MainLoop()'
-
-        self.count = configuration.bmIterationCount
-        if self.count <= 0:
-            self.count = 3
+        self.count = 3
 
         self.lldb_avg = None
         self.gdb_avg = None
index a7b97bb..51d57d4 100644 (file)
@@ -86,9 +86,6 @@ compilers = None    # Must be initialized after option parsing
 # just that.
 cflags_extras = ''
 
-# The benchmark iteration count, as specified by the '-y' option.
-bmIterationCount = -1
-
 # The filters (testclass.testmethod) used to admit tests into our test suite.
 filters = []
 
index 1a845c5..25c1ffa 100644 (file)
@@ -359,10 +359,6 @@ def parseOptionsAndInitTestdirs():
         configuration.verbose = 2
 
     # argparse makes sure we have a number
-    if args.y:
-        configuration.bmIterationCount = args.y
-
-    # argparse makes sure we have a number
     if args.sharp:
         configuration.count = args.sharp