aboutsummaryrefslogtreecommitdiff
path: root/tests/bullet
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-26 19:01:09 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-26 19:01:09 -0700
commit1796e1798ec0664d937644308f016d65af7b216a (patch)
treee15d187f78d1e58a94b011a16c2e1d8c485dccdb /tests/bullet
parentedffeb890a8c972deb862c3b950ae2a5845d6c18 (diff)
update benchmarks to have 0 be just start up
Diffstat (limited to 'tests/bullet')
-rw-r--r--tests/bullet/Demos/Benchmarks/main.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/bullet/Demos/Benchmarks/main.cpp b/tests/bullet/Demos/Benchmarks/main.cpp
index 1d7b6a2a..b050308a 100644
--- a/tests/bullet/Demos/Benchmarks/main.cpp
+++ b/tests/bullet/Demos/Benchmarks/main.cpp
@@ -32,12 +32,13 @@ extern bool gDisableDeactivation;
int main(int argc, char **argv) {
int NUM_TESTS;
- int arg = argc > 1 ? argv[1][0] - '0' : 1;
+ int arg = argc > 1 ? argv[1][0] - '0' : 2;
switch(arg) {
- case 0: NUM_TESTS = 7; break;
- case 1: NUM_TESTS = 33; break;
- case 2: NUM_TESTS = 5*33; break;
- case 3: NUM_TESTS = 7*35; break;
+ case 0: return 0; break;
+ case 1: NUM_TESTS = 7; break;
+ case 2: NUM_TESTS = 33; break;
+ case 3: NUM_TESTS = 5*33; break;
+ case 4: NUM_TESTS = 7*35; break;
default: printf("error: %d\\n", arg); return -1;
}