diff options
author | Tom Rondeau | 2012-03-22 16:21:03 -0400 |
---|---|---|
committer | Tom Rondeau | 2012-03-22 16:21:03 -0400 |
commit | da09d2b000606b55f564bc6adaa945968d6c3e72 (patch) | |
tree | 1759e28f9ccfc54dece5472b9b78931ab8d8f0df /gnuradio-examples/python/volk_benchmark/volk_math.py | |
parent | 314916c9f36406205c6bd7c72da4f596224a5032 (diff) | |
download | gnuradio-da09d2b000606b55f564bc6adaa945968d6c3e72.tar.gz gnuradio-da09d2b000606b55f564bc6adaa945968d6c3e72.tar.bz2 gnuradio-da09d2b000606b55f564bc6adaa945968d6c3e72.zip |
volk: make both test cases look and function the same.
Diffstat (limited to 'gnuradio-examples/python/volk_benchmark/volk_math.py')
-rwxr-xr-x | gnuradio-examples/python/volk_benchmark/volk_math.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gnuradio-examples/python/volk_benchmark/volk_math.py b/gnuradio-examples/python/volk_benchmark/volk_math.py index 8b0081387..8bf9ed6f3 100755 --- a/gnuradio-examples/python/volk_benchmark/volk_math.py +++ b/gnuradio-examples/python/volk_benchmark/volk_math.py @@ -21,7 +21,7 @@ def multiply_const_ff(N): ###################################################################### def multiply_cc(N): - op = gr.multiply_cc() + op = gr.multiply_cc(1) tb = helper(N, op, gr.sizeof_gr_complex, gr.sizeof_gr_complex, 2, 1) return tb @@ -134,16 +134,15 @@ def main(): conn = create_connection(args.database) new_table(conn, label) - if not args.all: - func = avail_tests[args.test] - res = run_tests(func, N, iters) + if args.all: + tests = xrange(len(avail_tests)) + else: + tests = args.tests + + for test in tests: + res = run_tests(avail_tests[test], N, iters) if res is not None: replace_results(conn, label, N, iters, res) - else: - for f in avail_tests: - res = run_tests(f, N, iters) - if res is not None: - replace_results(conn, label, N, iters, res) if __name__ == "__main__": try: |