summaryrefslogtreecommitdiff
path: root/benchmark/tb_grextras_delay.py
diff options
context:
space:
mode:
authorJosh Blum2013-01-31 11:56:57 -0800
committerJosh Blum2013-01-31 11:56:57 -0800
commit8242e504d5113a54010eb5863c01b0e0f4cedd74 (patch)
tree07a6476c2362584eae3ad224d051111261c06c47 /benchmark/tb_grextras_delay.py
parent61a86a752f2cc81f5db8bb4c0ce6e5c07768b0ba (diff)
downloadsandhi-8242e504d5113a54010eb5863c01b0e0f4cedd74.tar.gz
sandhi-8242e504d5113a54010eb5863c01b0e0f4cedd74.tar.bz2
sandhi-8242e504d5113a54010eb5863c01b0e0f4cedd74.zip
benchmark: added sched compare for 2 tests
Diffstat (limited to 'benchmark/tb_grextras_delay.py')
-rw-r--r--benchmark/tb_grextras_delay.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/benchmark/tb_grextras_delay.py b/benchmark/tb_grextras_delay.py
index 815ab3d..c24a440 100644
--- a/benchmark/tb_grextras_delay.py
+++ b/benchmark/tb_grextras_delay.py
@@ -1,5 +1,7 @@
-import gras
-import grextras
+try:
+ import gras
+ import grextras
+except ImportError: pass
import gnuradio
from gnuradio import gr
import sys
@@ -9,7 +11,7 @@ if __name__ == '__main__':
num = long(float(sys.argv[1]))
what = sys.argv[2]
- tb = gras.TopBlock()
+ tb = gr.top_block()
src0 = gr.null_source(8)
sink = gr.null_sink(8)
head = gr.head(8, num)