diff options
author | Tom Rondeau | 2012-03-27 23:30:52 -0400 |
---|---|---|
committer | Tom Rondeau | 2012-03-27 23:30:52 -0400 |
commit | bd7b4a566da02a3e68857c7f5a6963a132a2f2d2 (patch) | |
tree | 771cccb04a46c1cd1139ad21fb99e2c445665a34 /gnuradio-examples/python/volk_benchmark/volk_math.py | |
parent | 16d63a572c8022766063d2d601e9a635f92871ce (diff) | |
parent | 1aecf53489a4fa76f6a818c170941faa1d02c43a (diff) | |
download | gnuradio-bd7b4a566da02a3e68857c7f5a6963a132a2f2d2.tar.gz gnuradio-bd7b4a566da02a3e68857c7f5a6963a132a2f2d2.tar.bz2 gnuradio-bd7b4a566da02a3e68857c7f5a6963a132a2f2d2.zip |
Merge branch 'master' into next
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: |