aboutsummaryrefslogtreecommitdiff
path: root/tests/box2d
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-29 11:00:23 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-29 11:00:23 -0700
commitf06f3dc1282e7f79a7d86b93c96c31ad43259e9c (patch)
tree9b151fa67b7ef87ea172097246dcf7b04b27aa76 /tests/box2d
parent5ba1a0e94fdb1f230efa34bfe5e2725ff7abef39 (diff)
update benchmarks
Diffstat (limited to 'tests/box2d')
-rw-r--r--tests/box2d/Benchmark.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/box2d/Benchmark.cpp b/tests/box2d/Benchmark.cpp
index 56682674..6853a3dc 100644
--- a/tests/box2d/Benchmark.cpp
+++ b/tests/box2d/Benchmark.cpp
@@ -53,13 +53,14 @@ result_t measure(clock_t times[FRAMES]) {
}
int main(int argc, char **argv) {
- int arg = argc > 1 ? argv[1][0] - '0' : 2;
+ int arg = argc > 1 ? argv[1][0] - '0' : 3;
switch(arg) {
case 0: return 0; break;
- case 1: WARMUP = 32; FRAMES = 161; break;
- case 2: WARMUP = 64; FRAMES = 333; break;
- case 3: WARMUP = 5*64; FRAMES = 7*333; break;
- case 4: WARMUP = 10*64; FRAMES = 17*333; break;
+ case 1: WARMUP = 5; FRAMES = 35; break;
+ case 2: WARMUP = 32; FRAMES = 161; break;
+ case 3: WARMUP = 64; FRAMES = 333; break;
+ case 4: WARMUP = 5*64; FRAMES = 7*333; break;
+ case 5: WARMUP = 10*64; FRAMES = 17*333; break;
default: printf("error: %d\\n", arg); return -1;
}