Browse Source

Merge pull request #51 from Licenser/fix_run_tests

Fixed bug in run-tests that types were omitted.
TechEmpower 12 years ago
parent
commit
89ac669d66
1 changed files with 5 additions and 5 deletions
  1. 5 5
      run-tests.py

+ 5 - 5
run-tests.py

@@ -23,12 +23,12 @@ parser.add_argument('--type', choices=['all', 'json', 'db', 'query'], default='a
 parser.add_argument('-m', '--mode', choices=['benchmark', 'verify'], default='benchmark', help='verify mode will only start up the tests, curl the urls and shutdown')
 parser.add_argument('--list-tests', action='store_true', default=False, help='lists all the known tests that can run')
 parser.add_argument('--next-sort', action='store_true', default=False, help='displatys the next value that can be used as a sort value')
-parser.add_argument('--max-concurrency', default=256, help='the maximum concurrency that the tests will run at. The query tests will run at this concurrency')
-parser.add_argument('--max-queries', default=20, help='The maximum number of queries to run during the query test')
-parser.add_argument('--query-interval', default=5)
-parser.add_argument('--max-threads', default=8, help='The max number of threads to run weight at, this shoul dbe set to the number of cores for your system.')
+parser.add_argument('--max-concurrency', default=256, help='the maximum concurrency that the tests will run at. The query tests will run at this concurrency', type=int)
+parser.add_argument('--max-queries', default=20, help='The maximum number of queries to run during the query test', type=int)
+parser.add_argument('--query-interval', default=5, type=int)
+parser.add_argument('--max-threads', default=8, help='The max number of threads to run weight at, this shoul dbe set to the number of cores for your system.', type=int)
 parser.add_argument('--number-of-runs', default=100000, help='the number of requests to make per test run.')
-parser.add_argument('--starting-concurrency', default=8)
+parser.add_argument('--starting-concurrency', default=8, type=int)
 parser.add_argument('--sleep', type=int, default=60, help='the amount of time to sleep after starting each test to allow the server to start up.')
 parser.add_argument('--parse', help='Parses the results of the given timestamp and merges that with the latest results')
 parser.add_argument('--name', default="ec2", help='The name to give this test. Results will be placed in a folder using this name.')