diff options
author | Ciro Nishiguchi <ciro.nishiguchi@ni.com> | 2018-10-27 11:10:26 -0500 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-01-10 17:26:18 -0800 |
commit | fd3f5d011fb99304402cbf3c1e8c596478316119 (patch) | |
tree | 17d98a9879d7dff88227cbe53fab342119963675 /host/tests/device3_test.cpp | |
parent | e934e56ce2f8ca0c2f843577032f1a22bf938930 (diff) | |
download | uhd-fd3f5d011fb99304402cbf3c1e8c596478316119.tar.gz uhd-fd3f5d011fb99304402cbf3c1e8c596478316119.tar.bz2 uhd-fd3f5d011fb99304402cbf3c1e8c596478316119.zip |
tests: Add benchmark of streaming code paths
Add a benchmark of packet handlers and device3 flow control. Benchmarks
use mock transport objects.
Diffstat (limited to 'host/tests/device3_test.cpp')
-rw-r--r-- | host/tests/device3_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/tests/device3_test.cpp b/host/tests/device3_test.cpp index db613d06e..71b3225e1 100644 --- a/host/tests/device3_test.cpp +++ b/host/tests/device3_test.cpp @@ -34,10 +34,10 @@ uhd::both_xports_t make_mock_transport(const uhd::sid_t& tx_sid) { uhd::both_xports_t xports; xports.send_sid = tx_sid; xports.recv_sid = tx_sid.reversed(); - xports.send_buff_size = SEND_BUFF_SIZE; - xports.recv_buff_size = RECV_BUFF_SIZE; xports.send = boost::make_shared<mock_zero_copy>(if_packet_info_t::LINK_TYPE_CHDR); xports.recv = xports.send; + xports.send_buff_size = xports.send->get_send_frame_size(); + xports.recv_buff_size = xports.recv->get_recv_frame_size(); return xports; } |