From a373e34808d55d1775fd84a0e5e013455fed67e7 Mon Sep 17 00:00:00 2001
From: Josh Blum
Date: Tue, 30 Apr 2013 20:54:06 -0700
Subject: benchmarks: removed keep_m_in_n block from many rates

This block is optimized for laziness and not performance since it
returns before finishing its input based on whatever M is.

This means that m=1, n=1, this block produces 1000's of outputs per input buffer,
and its not really what I am looking to benchmark...

ironically, keep_m_in_n crappy implementation makes for big wins on GRAS
either due to lower scheduler overhead or locking contentions easier.

However, its crazy number of tiny outputs really rails on the
mailbox queue of the next block in the chain and causes
the caching allocators to get very exited.
I guess thats all fine since the block is meant to be lazy...
But I cant measure the effectiveness of a typical allocator situation.

Signing off...
---
 benchmark/tb_many_rate_changes.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'benchmark/tb_many_rate_changes.py')

diff --git a/benchmark/tb_many_rate_changes.py b/benchmark/tb_many_rate_changes.py
index e94179f..2930dd6 100644
--- a/benchmark/tb_many_rate_changes.py
+++ b/benchmark/tb_many_rate_changes.py
@@ -30,15 +30,13 @@ class many_rate_changing(gr.top_block):
 		self.gr_unpacked_to_packed_xx_0 = gr.unpacked_to_packed_bb(2, gr.GR_LSB_FIRST)
 		self.gr_packed_to_unpacked_xx_0 = gr.packed_to_unpacked_bb(2, gr.GR_MSB_FIRST)
 		self.gr_null_sink_0_2 = gr.null_sink(gr.sizeof_char*1)
-		self.blocks_keep_m_in_n_0 = blocks.keep_m_in_n(gr.sizeof_float, 3, 20, 0)
 		self.blocks_float_to_char_0 = blocks.float_to_char(1, 1)
 		self.blocks_char_to_float_0 = blocks.char_to_float(1, 1)
 
 		##################################################
 		# Connections
 		##################################################
-		self.connect((self.blocks_char_to_float_0, 0), (self.blocks_keep_m_in_n_0, 0))
-		self.connect((self.blocks_keep_m_in_n_0, 0), (self.blocks_float_to_char_0, 0))
+		self.connect((self.blocks_char_to_float_0, 0), (self.blocks_float_to_char_0, 0))
 		self.connect((self.blocks_float_to_char_0, 0), (self.gr_packed_to_unpacked_xx_0, 0))
 		self.connect((self.gr_unpacked_to_packed_xx_0, 0), (self.blocks_char_to_float_0, 0))
 		self.connect((self.random_source_x_0, 0), (self.gr_unpacked_to_packed_xx_0, 0))
-- 
cgit