diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-25 19:48:54 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-25 21:32:43 -0700 |
commit | d239ec265a345fdfdc2f12d9ffa149bfd15ca4e9 (patch) | |
tree | 14f270c362936f071359b00418a21d3090803167 /tests/skinning_test_no_simd.cpp | |
parent | 46630aa446c6e984c5e3c745bf36cb7fa555c309 (diff) |
standardize benchmark inputs
Diffstat (limited to 'tests/skinning_test_no_simd.cpp')
-rw-r--r-- | tests/skinning_test_no_simd.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/skinning_test_no_simd.cpp b/tests/skinning_test_no_simd.cpp index 1df6e44c..34a82d6d 100644 --- a/tests/skinning_test_no_simd.cpp +++ b/tests/skinning_test_no_simd.cpp @@ -171,8 +171,15 @@ void calculateVerticesAndNormals_x87( int main (int argc, char*argv[]) { - const int N=atoi(argv[1]); - const int M=atoi(argv[2]); + int N, M; + int arg = argc > 1 ? argv[1][0] - '0' : 1; + switch(arg) { + case 0: N = 6600; M = 6500; break; + case 1: N = 9500; M = 10000; break; + case 2: N = 2*11000; M = 2*12000; break; + case 3: N = 3*10000; M = 3*10800; break; + default: printf("error: %d\\n", arg); return -1; + } Vertex *v = new Vertex[N]; Influence *i = new Influence[N]; |